public class PasswordModifyRequest extends AbstractRequest implements ExtendedRequest
PasswdModifyRequestValue ::= SEQUENCE {
userIdentity [0] OCTET STRING OPTIONAL
oldPasswd [1] OCTET STRING OPTIONAL
newPasswd [2] OCTET STRING OPTIONAL }
| Modifier and Type | Field and Description |
|---|---|
private Credential |
newPassword
Desired password.
|
static java.lang.String |
OID
OID of this extended request.
|
private Credential |
oldPassword
Current password.
|
private java.lang.String |
userIdentity
User to modify.
|
| Constructor and Description |
|---|
PasswordModifyRequest()
Default constructor.
|
PasswordModifyRequest(java.lang.String identity)
Creates a new password modify request.
|
PasswordModifyRequest(java.lang.String identity,
Credential oldPass,
Credential newPass)
Creates a new password modify request.
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
encode()
Provides the BER encoding of this request.
|
Credential |
getNewPassword()
Returns the new password.
|
java.lang.String |
getOID()
Returns the OID for this extended request.
|
Credential |
getOldPassword()
Returns the old password.
|
java.lang.String |
getUserIdentity()
Returns the user to modify.
|
void |
setNewPassword(Credential newPass)
Sets the new password.
|
void |
setOldPassword(Credential oldPass)
Sets the old password.
|
void |
setUserIdentity(java.lang.String identity)
Sets the user to modify.
|
java.lang.String |
toString() |
getControls, getIntermediateResponseHandlers, getReferralHandler, setControls, setIntermediateResponseHandlers, setReferralHandlerclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetIntermediateResponseHandlers, getReferralHandlergetControlspublic static final java.lang.String OID
private java.lang.String userIdentity
private Credential oldPassword
private Credential newPassword
public PasswordModifyRequest()
public PasswordModifyRequest(java.lang.String identity)
identity - to modifypublic PasswordModifyRequest(java.lang.String identity,
Credential oldPass,
Credential newPass)
identity - to modifyoldPass - current password for the dnnewPass - desired password for the dnpublic java.lang.String getUserIdentity()
public void setUserIdentity(java.lang.String identity)
identity - to modifypublic Credential getOldPassword()
public void setOldPassword(Credential oldPass)
oldPass - to verifypublic Credential getNewPassword()
public void setNewPassword(Credential newPass)
newPass - to setpublic byte[] encode()
ExtendedRequestencode in interface ExtendedRequestpublic java.lang.String getOID()
ExtendedRequestgetOID in interface ExtendedRequestpublic java.lang.String toString()
toString in class java.lang.Object