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, org.apache.directory.api.ldap.model.message.ExtendedRequest, org.apache.directory.api.ldap.model.message.Message, org.apache.directory.api.ldap.model.message.Request, org.apache.directory.api.ldap.model.message.ResultResponseRequest, org.apache.directory.api.ldap.model.message.SingleReplyRequest

public class PasswordModifyRequestImpl extends org.apache.directory.api.ldap.model.message.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 PasswordModifyRequest

    EXTENSION_OID
  • Constructor Summary

    Constructors
    Constructor
    Description
    Create a new instance of the PwdModifyRequest extended operation
    Create a new instance of the PwdModifyRequest extended operation
  • Method Summary

    Modifier and Type
    Method
    Description
    byte[]
    Get the new password
    byte[]
    Get the previous password
    byte[]
    Get the user identioty
    void
    setNewPassword(byte[] newPassword)
    Set a new password
    void
    setOldPassword(byte[] oldPassword)
    Set the old password
    void
    setUserIdentity(byte[] userIdentity)
    Set the user identity
     

    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 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 Details

    • 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 Details

    • getUserIdentity

      public byte[] getUserIdentity()
      Get the user identioty
      Specified by:
      getUserIdentity in interface PasswordModifyRequest
      Returns:
      the userIdentity
    • setUserIdentity

      public void setUserIdentity(byte[] userIdentity)
      Description copied from interface: PasswordModifyRequest
      Set the user identity
      Specified by:
      setUserIdentity in interface PasswordModifyRequest
      Parameters:
      userIdentity - the userIdentity to set
    • getOldPassword

      public byte[] getOldPassword()
      Get the previous password
      Specified by:
      getOldPassword in interface PasswordModifyRequest
      Returns:
      the oldPassword
    • setOldPassword

      public void setOldPassword(byte[] oldPassword)
      Description copied from interface: PasswordModifyRequest
      Set the old password
      Specified by:
      setOldPassword in interface PasswordModifyRequest
      Parameters:
      oldPassword - the oldPassword to set
    • getNewPassword

      public byte[] getNewPassword()
      Get the new password
      Specified by:
      getNewPassword in interface PasswordModifyRequest
      Returns:
      the newPassword
    • setNewPassword

      public void setNewPassword(byte[] newPassword)
      Description copied from interface: PasswordModifyRequest
      Set a new password
      Specified by:
      setNewPassword in interface PasswordModifyRequest
      Parameters:
      newPassword - the newPassword to set
    • getResultResponse

      public PasswordModifyResponse getResultResponse()
      Specified by:
      getResultResponse in interface org.apache.directory.api.ldap.model.message.ResultResponseRequest
      Overrides:
      getResultResponse in class org.apache.directory.api.ldap.model.message.OpaqueExtendedRequest
    • toString

      public String toString()
      Overrides:
      toString in class org.apache.directory.api.ldap.model.message.OpaqueExtendedRequest
      See Also: