public class PasswordModifyResponseDecorator
extends org.apache.directory.api.ldap.codec.decorators.ExtendedResponseDecorator<org.apache.directory.api.ldap.extras.extended.pwdModify.PasswordModifyResponse>
implements org.apache.directory.api.ldap.extras.extended.pwdModify.PasswordModifyResponse
| Modifier and Type | Field and Description |
|---|---|
private static org.slf4j.Logger |
LOG |
private org.apache.directory.api.ldap.extras.extended.pwdModify.PasswordModifyResponse |
passwordModifyResponse |
private int |
responseLength
stores the length of the response
|
| Constructor and Description |
|---|
PasswordModifyResponseDecorator(org.apache.directory.api.ldap.codec.api.LdapApiService codec,
org.apache.directory.api.ldap.extras.extended.pwdModify.PasswordModifyResponse decoratedMessage)
Creates a new instance of PasswordModifyResponseDecorator.
|
| Modifier and Type | Method and Description |
|---|---|
(package private) int |
computeLengthInternal()
Compute the PasswordModifyResponse extended operation length
|
(package private) ByteBuffer |
encodeInternal()
Encodes the PasswordModifyResponse extended operation.
|
byte[] |
getGenPassword() |
String |
getResponseName()
Overload the parent's getResponseName method, as the pwdModify response should not
contain the responseName.
|
byte[] |
getResponseValue() |
void |
setGenPassword(byte[] genPassword) |
void |
setResponseValue(byte[] responseValue) |
computeLength, encode, setResponseNamegetLdapResult, setLdapResultaddAllControls, addControl, get, getCodecService, getControl, getControls, getControlsLength, getCurrentControl, getDecorated, getDecorator, getMessageId, getMessageLength, getType, hasControl, put, removeControl, setControlsLength, setMessageId, setMessageLength, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitsetResponseNameprivate static final org.slf4j.Logger LOG
private org.apache.directory.api.ldap.extras.extended.pwdModify.PasswordModifyResponse passwordModifyResponse
private int responseLength
public PasswordModifyResponseDecorator(org.apache.directory.api.ldap.codec.api.LdapApiService codec,
org.apache.directory.api.ldap.extras.extended.pwdModify.PasswordModifyResponse decoratedMessage)
codec - The LDAP service instancedecoratedMessage - The decorated messagepublic void setResponseValue(byte[] responseValue)
setResponseValue in class org.apache.directory.api.ldap.codec.decorators.ExtendedResponseDecorator<org.apache.directory.api.ldap.extras.extended.pwdModify.PasswordModifyResponse>public byte[] getResponseValue()
getResponseValue in class org.apache.directory.api.ldap.codec.decorators.ExtendedResponseDecorator<org.apache.directory.api.ldap.extras.extended.pwdModify.PasswordModifyResponse>public byte[] getGenPassword()
getGenPassword in interface org.apache.directory.api.ldap.extras.extended.pwdModify.PasswordModifyResponsepublic void setGenPassword(byte[] genPassword)
genPassword - the genPassword to setpublic String getResponseName()
getResponseName in interface org.apache.directory.api.ldap.model.message.ExtendedResponsegetResponseName in class org.apache.directory.api.ldap.codec.decorators.ExtendedResponseDecorator<org.apache.directory.api.ldap.extras.extended.pwdModify.PasswordModifyResponse>int computeLengthInternal()
0x30 L1 | [+-- 0x80 L2 genPassword]
ByteBuffer encodeInternal()
org.apache.directory.api.asn1.EncoderException - If anything goes wrong.Copyright © 2003–2018 The Apache Software Foundation. All rights reserved.