Class PasswordModifyRequestImpl
- java.lang.Object
-
- org.apache.directory.api.ldap.model.message.AbstractMessage
-
- org.apache.directory.api.ldap.model.message.AbstractRequest
-
- org.apache.directory.api.ldap.model.message.AbstractExtendedRequest
-
- org.apache.directory.api.ldap.model.message.OpaqueExtendedRequest
-
- org.apache.directory.api.ldap.extras.extended.pwdModify.PasswordModifyRequestImpl
-
- All Implemented Interfaces:
PasswordModifyRequest,ExtendedRequest,Message,Request,ResultResponseRequest,SingleReplyRequest
public class PasswordModifyRequestImpl extends OpaqueExtendedRequest implements PasswordModifyRequest
The RFC 3062 PwdModify request :PasswdModifyRequestValue ::= SEQUENCE { userIdentity [0] OCTET STRING OPTIONAL oldPasswd [1] OCTET STRING OPTIONAL newPasswd [2] OCTET STRING OPTIONAL }- Author:
- Apache Directory Project
-
-
Field Summary
-
Fields inherited from class org.apache.directory.api.ldap.model.message.OpaqueExtendedRequest
response
-
Fields inherited from class org.apache.directory.api.ldap.model.message.AbstractExtendedRequest
oid
-
Fields inherited from class org.apache.directory.api.ldap.model.message.AbstractMessage
controls
-
Fields inherited from interface org.apache.directory.api.ldap.extras.extended.pwdModify.PasswordModifyRequest
EXTENSION_OID
-
-
Constructor Summary
Constructors Constructor Description PasswordModifyRequestImpl()Create a new instance of the PwdModifyRequest extended operationPasswordModifyRequestImpl(int messageId)Create a new instance of the PwdModifyRequest extended operation
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]getNewPassword()byte[]getOldPassword()PasswordModifyResponsegetResultResponse()The result containing response for this request.byte[]getUserIdentity()voidsetNewPassword(byte[] newPassword)Set a new passwordvoidsetOldPassword(byte[] oldPassword)Set the old passwordvoidsetUserIdentity(byte[] userIdentity)Set the user identityStringtoString()Get a String representation of an Extended Request-
Methods inherited from class org.apache.directory.api.ldap.model.message.OpaqueExtendedRequest
addAllControls, addControl, equals, getExtendedResponse, getRequestName, getRequestValue, getResponseType, hashCode, removeControl, setMessageId, setRequestName, setRequestValue
-
Methods inherited from class org.apache.directory.api.ldap.model.message.AbstractExtendedRequest
getResponse, setResponse
-
Methods inherited from class org.apache.directory.api.ldap.model.message.AbstractRequest
hasResponse
-
Methods inherited from class org.apache.directory.api.ldap.model.message.AbstractMessage
get, getControl, getControls, getMessageId, getType, hasControl, put, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, 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
-
PasswordModifyRequestImpl
public PasswordModifyRequestImpl()
Create a new instance of the PwdModifyRequest extended operation
-
PasswordModifyRequestImpl
public PasswordModifyRequestImpl(int messageId)
Create a new instance of the PwdModifyRequest extended operation- Parameters:
messageId- The message ID
-
-
Method Detail
-
getUserIdentity
public byte[] getUserIdentity()
- Specified by:
getUserIdentityin interfacePasswordModifyRequest- Returns:
- the userIdentity
-
setUserIdentity
public void setUserIdentity(byte[] userIdentity)
Description copied from interface:PasswordModifyRequestSet the user identity- Specified by:
setUserIdentityin interfacePasswordModifyRequest- Parameters:
userIdentity- the userIdentity to set
-
getOldPassword
public byte[] getOldPassword()
- Specified by:
getOldPasswordin interfacePasswordModifyRequest- Returns:
- the oldPassword
-
setOldPassword
public void setOldPassword(byte[] oldPassword)
Description copied from interface:PasswordModifyRequestSet the old password- Specified by:
setOldPasswordin interfacePasswordModifyRequest- Parameters:
oldPassword- the oldPassword to set
-
getNewPassword
public byte[] getNewPassword()
- Specified by:
getNewPasswordin interfacePasswordModifyRequest- Returns:
- the newPassword
-
setNewPassword
public void setNewPassword(byte[] newPassword)
Description copied from interface:PasswordModifyRequestSet a new password- Specified by:
setNewPasswordin interfacePasswordModifyRequest- Parameters:
newPassword- the newPassword to set
-
getResultResponse
public PasswordModifyResponse getResultResponse()
The result containing response for this request.- Specified by:
getResultResponsein interfaceResultResponseRequest- Overrides:
getResultResponsein classOpaqueExtendedRequest- Returns:
- the result containing response for this request
-
toString
public String toString()
Description copied from class:OpaqueExtendedRequestGet a String representation of an Extended Request- Overrides:
toStringin classOpaqueExtendedRequest- Returns:
- an Extended Request String
- See Also:
Object.toString()
-
-