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.extras.extended.pwdModify.PasswordModifyRequestImpl
-
- All Implemented Interfaces:
PasswordModifyRequest
,ExtendedRequest
,Message
,Request
,ResultResponseRequest
,SingleReplyRequest
public class PasswordModifyRequestImpl extends AbstractExtendedRequest 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 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()
PasswordModifyResponse
getResultResponse()
The result containing response for this request.byte[]
getUserIdentity()
void
setNewPassword(byte[] newPassword)
Set a new passwordvoid
setOldPassword(byte[] oldPassword)
Set the old passwordvoid
setUserIdentity(byte[] userIdentity)
Set the user identityString
toString()
Get a String representation of an Extended Request-
Methods inherited from class org.apache.directory.api.ldap.model.message.AbstractExtendedRequest
addAllControls, addControl, equals, getRequestName, getResponse, getResponseType, hashCode, removeControl, setMessageId, setRequestName, 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 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:
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
-
getResultResponse
public PasswordModifyResponse getResultResponse()
The result containing response for this request.- Specified by:
getResultResponse
in interfaceResultResponseRequest
- Specified by:
getResultResponse
in classAbstractExtendedRequest
- Returns:
- the result containing response for this request
-
toString
public String toString()
Description copied from class:AbstractExtendedRequest
Get a String representation of an Extended Request- Overrides:
toString
in classAbstractExtendedRequest
- Returns:
- an Extended Request String
- See Also:
Object.toString()
-
-