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 String |
OID
OID of this extended request.
|
private Credential |
oldPassword
Current password.
|
private String |
userIdentity
User to modify.
|
| Constructor and Description |
|---|
PasswordModifyRequest()
Default constructor.
|
PasswordModifyRequest(String identity)
Creates a new password modify request.
|
PasswordModifyRequest(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.
|
String |
getOID()
Returns the OID for this extended request.
|
Credential |
getOldPassword()
Returns the old password.
|
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(String identity)
Sets the user to modify.
|
String |
toString() |
getControls, getIntermediateResponseHandlers, getReferralHandler, setControls, setIntermediateResponseHandlers, setReferralHandlerclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetIntermediateResponseHandlers, getReferralHandlergetControlspublic static final String OID
private String userIdentity
private Credential oldPassword
private Credential newPassword
public PasswordModifyRequest()
public PasswordModifyRequest(String identity)
identity - to modifypublic PasswordModifyRequest(String identity, Credential oldPass, Credential newPass)
identity - to modifyoldPass - current password for the dnnewPass - desired password for the dnpublic String getUserIdentity()
public void setUserIdentity(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 String getOID()
ExtendedRequestgetOID in interface ExtendedRequestCopyright © 2003-2019 Virginia Tech. All Rights Reserved.