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 |
---|---|
static String |
OID
OID of this extended request.
|
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, setReferralHandler
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getIntermediateResponseHandlers, getReferralHandler
getControls
public static final String OID
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()
ExtendedRequest
encode
in interface ExtendedRequest
public String getOID()
ExtendedRequest
getOID
in interface ExtendedRequest
Copyright © 2023. All rights reserved.