Class PasswordModifyRequestDecorator
- java.lang.Object
-
- org.apache.directory.api.ldap.codec.api.MessageDecorator<M>
-
- org.apache.directory.api.ldap.codec.decorators.RequestDecorator<M>
-
- org.apache.directory.api.ldap.codec.decorators.ResultResponseRequestDecorator<M>
-
- org.apache.directory.api.ldap.codec.decorators.SingleReplyRequestDecorator<Q>
-
- org.apache.directory.api.ldap.codec.decorators.ExtendedRequestDecorator<PasswordModifyRequest>
-
- org.apache.directory.api.ldap.extras.extended.ads_impl.pwdModify.PasswordModifyRequestDecorator
-
- All Implemented Interfaces:
Asn1Object
,Decorator<PasswordModifyRequest>
,PasswordModifyRequest
,AbandonableRequest
,ExtendedRequest
,Message
,Request
,ResultResponseRequest
,SingleReplyRequest
public class PasswordModifyRequestDecorator extends ExtendedRequestDecorator<PasswordModifyRequest> implements PasswordModifyRequest
A Decorator for PasswordModifyRequest extended request.- Author:
- Apache Directory Project
-
-
Field Summary
-
Fields inherited from interface org.apache.directory.api.ldap.extras.extended.pwdModify.PasswordModifyRequest
EXTENSION_OID
-
-
Constructor Summary
Constructors Constructor Description PasswordModifyRequestDecorator(LdapApiService codec, PasswordModifyRequest decoratedMessage)
Create a new decorator instance
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
getNewPassword()
byte[]
getOldPassword()
byte[]
getRequestValue()
Gets the Extended request payloadPasswordModifyResponse
getResultResponse()
If called for the first time, this method creates a result containing response object for this request.byte[]
getUserIdentity()
void
setNewPassword(byte[] newPassword)
Set a new passwordvoid
setOldPassword(byte[] oldPassword)
Set the old passwordvoid
setRequestValue(byte[] requestValue)
sets the Extended request payloadvoid
setUserIdentity(byte[] userIdentity)
Set the user identity-
Methods inherited from class org.apache.directory.api.ldap.codec.decorators.ExtendedRequestDecorator
addAllControls, addControl, computeLength, encode, getRequestName, removeControl, setMessageId, setRequestName
-
Methods inherited from class org.apache.directory.api.ldap.codec.decorators.SingleReplyRequestDecorator
abandon, addAbandonListener, getResponseType, isAbandoned
-
Methods inherited from class org.apache.directory.api.ldap.codec.decorators.ResultResponseRequestDecorator
hasResponse
-
Methods inherited from class org.apache.directory.api.ldap.codec.api.MessageDecorator
get, getCodecService, getControl, getControls, getControlsLength, getCurrentControl, getDecorated, getDecorator, getMessageId, getMessageLength, getType, hasControl, put, setControlsLength, 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.ExtendedRequest
addAllControls, addControl, getRequestName, removeControl, setMessageId, setRequestName
-
Methods inherited from interface org.apache.directory.api.ldap.model.message.Message
get, getControl, getControls, getMessageId, getType, hasControl, put
-
Methods inherited from interface org.apache.directory.api.ldap.model.message.Request
hasResponse
-
Methods inherited from interface org.apache.directory.api.ldap.model.message.SingleReplyRequest
getResponseType
-
-
-
-
Constructor Detail
-
PasswordModifyRequestDecorator
public PasswordModifyRequestDecorator(LdapApiService codec, PasswordModifyRequest decoratedMessage)
Create a new decorator instance- Parameters:
codec
- The codec servicedecoratedMessage
- The decorated PwdModifyRequest
-
-
Method Detail
-
setRequestValue
public void setRequestValue(byte[] requestValue)
sets the Extended request payload- Overrides:
setRequestValue
in classExtendedRequestDecorator<PasswordModifyRequest>
- Parameters:
requestValue
- The extended payload
-
getRequestValue
public byte[] getRequestValue()
Gets the Extended request payload- Overrides:
getRequestValue
in classExtendedRequestDecorator<PasswordModifyRequest>
- Returns:
- The extended payload
-
getResultResponse
public PasswordModifyResponse getResultResponse()
If called for the first time, this method creates a result containing response object for this request.- Specified by:
getResultResponse
in interfaceResultResponseRequest
- Overrides:
getResultResponse
in classResultResponseRequestDecorator<PasswordModifyRequest>
- Returns:
- a result containing response with defaults and the messageId set in response to this specific request
-
getUserIdentity
public byte[] getUserIdentity()
- Specified by:
getUserIdentity
in interfacePasswordModifyRequest
- Returns:
- the userIdentity
-
setUserIdentity
public void setUserIdentity(byte[] userIdentity)
Description copied from interface:PasswordModifyRequest
Set the user identity- Specified by:
setUserIdentity
in interfacePasswordModifyRequest
- Parameters:
userIdentity
- the userIdentity to set
-
getOldPassword
public byte[] getOldPassword()
- Specified by:
getOldPassword
in interfacePasswordModifyRequest
- Returns:
- the oldPassword
-
setOldPassword
public void setOldPassword(byte[] oldPassword)
Description copied from interface:PasswordModifyRequest
Set the old password- Specified by:
setOldPassword
in interfacePasswordModifyRequest
- Parameters:
oldPassword
- the oldPassword to set
-
getNewPassword
public byte[] getNewPassword()
- Specified by:
getNewPassword
in interfacePasswordModifyRequest
- Returns:
- the newPassword
-
setNewPassword
public void setNewPassword(byte[] newPassword)
Description copied from interface:PasswordModifyRequest
Set a new password- Specified by:
setNewPassword
in interfacePasswordModifyRequest
- Parameters:
newPassword
- the newPassword to set
-
-