Class PasswordModifyResponseDecorator
- java.lang.Object
-
- org.apache.directory.api.ldap.codec.api.MessageDecorator<M>
-
- org.apache.directory.api.ldap.codec.decorators.ResponseDecorator<R>
-
- org.apache.directory.api.ldap.codec.decorators.ExtendedResponseDecorator<PasswordModifyResponse>
-
- org.apache.directory.api.ldap.extras.extended.ads_impl.pwdModify.PasswordModifyResponseDecorator
-
- All Implemented Interfaces:
Asn1Object
,Decorator<PasswordModifyResponse>
,PasswordModifyResponse
,ExtendedResponse
,Message
,Response
,ResultResponse
public class PasswordModifyResponseDecorator extends ExtendedResponseDecorator<PasswordModifyResponse> implements PasswordModifyResponse
A Decorator for PasswordModifyResponse extended response.- Author:
- Apache Directory Project
-
-
Field Summary
-
Fields inherited from interface org.apache.directory.api.ldap.extras.extended.pwdModify.PasswordModifyResponse
EXTENSION_OID
-
-
Constructor Summary
Constructors Constructor Description PasswordModifyResponseDecorator(LdapApiService codec, PasswordModifyResponse decoratedMessage)
Creates a new instance of PasswordModifyResponseDecorator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
getGenPassword()
Get the generated passwordString
getResponseName()
Overload the parent's getResponseName method, as the pwdModify response should not contain the responseName.byte[]
getResponseValue()
Gets the Extended response payloadvoid
setGenPassword(byte[] genPassword)
void
setResponseValue(byte[] responseValue)
sets the Extended response payload-
Methods inherited from class org.apache.directory.api.ldap.codec.decorators.ExtendedResponseDecorator
computeLength, encode, setResponseName
-
Methods inherited from class org.apache.directory.api.ldap.codec.decorators.ResponseDecorator
getLdapResult, setLdapResult
-
Methods inherited from class org.apache.directory.api.ldap.codec.api.MessageDecorator
addAllControls, addControl, get, getCodecService, getControl, getControls, getControlsLength, getCurrentControl, getDecorated, getDecorator, getMessageId, getMessageLength, getType, hasControl, put, removeControl, setControlsLength, setMessageId, setMessageLength, toString
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.directory.api.ldap.model.message.ExtendedResponse
setResponseName
-
Methods inherited from interface org.apache.directory.api.ldap.model.message.Message
addAllControls, addControl, get, getControl, getControls, getMessageId, getType, hasControl, put, removeControl, setMessageId
-
Methods inherited from interface org.apache.directory.api.ldap.model.message.ResultResponse
getLdapResult
-
-
-
-
Constructor Detail
-
PasswordModifyResponseDecorator
public PasswordModifyResponseDecorator(LdapApiService codec, PasswordModifyResponse decoratedMessage)
Creates a new instance of PasswordModifyResponseDecorator.- Parameters:
codec
- The LDAP service instancedecoratedMessage
- The decorated message
-
-
Method Detail
-
setResponseValue
public void setResponseValue(byte[] responseValue)
sets the Extended response payload- Overrides:
setResponseValue
in classExtendedResponseDecorator<PasswordModifyResponse>
- Parameters:
responseValue
- The extended payload
-
getResponseValue
public byte[] getResponseValue()
Gets the Extended response payload- Overrides:
getResponseValue
in classExtendedResponseDecorator<PasswordModifyResponse>
- Returns:
- The extended payload
-
getGenPassword
public byte[] getGenPassword()
Get the generated password- Specified by:
getGenPassword
in interfacePasswordModifyResponse
- Returns:
- The generated password or null
-
setGenPassword
public void setGenPassword(byte[] genPassword)
- Parameters:
genPassword
- the genPassword to set
-
getResponseName
public String getResponseName()
Overload the parent's getResponseName method, as the pwdModify response should not contain the responseName.- Specified by:
getResponseName
in interfaceExtendedResponse
- Overrides:
getResponseName
in classExtendedResponseDecorator<PasswordModifyResponse>
- Returns:
- the OID of the extended response type.
-
-