public class PasswordModifyRequestDecorator extends ExtendedRequestDecorator<PasswordModifyRequest> implements PasswordModifyRequest
| Modifier and Type | Field and Description |
|---|---|
private static org.slf4j.Logger |
LOG |
private PasswordModifyRequest |
passwordModifyRequest
The internal PasswordModifyRequest
|
private int |
requestLength
stores the length of the request
|
requestValuemessageLengthEXTENSION_OID| Constructor and Description |
|---|
PasswordModifyRequestDecorator(LdapApiService codec,
PasswordModifyRequest decoratedMessage)
Create a new decorator instance
|
| Modifier and Type | Method and Description |
|---|---|
(package private) int |
computeLengthInternal()
Compute the PasswordModifyRequest extended operation length
|
(package private) java.nio.ByteBuffer |
encodeInternal()
Encodes the PasswordModifyRequest extended operation.
|
byte[] |
getNewPassword() |
byte[] |
getOldPassword() |
byte[] |
getRequestValue() |
PasswordModifyResponse |
getResultResponse()
If called for the first time, this method creates a result containing
response object for this request.
|
byte[] |
getUserIdentity() |
void |
setNewPassword(byte[] newPassword)
Set a new password
|
void |
setOldPassword(byte[] oldPassword)
Set the old password
|
void |
setRequestValue(byte[] requestValue) |
void |
setUserIdentity(byte[] userIdentity)
Set the user identity
|
addAllControls, addControl, computeLength, encode, getRequestName, removeControl, setMessageId, setRequestNameabandon, addAbandonListener, getResponseType, isAbandonedhasResponseget, getCodecService, getControl, getControls, getControlsLength, getCurrentControl, getDecorated, getDecorator, getMessageId, getMessageLength, getType, hasControl, put, setControlsLength, setMessageLength, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddAllControls, addControl, getRequestName, removeControl, setMessageId, setRequestNamegetResponseTypehasResponseget, getControl, getControls, getMessageId, getType, hasControl, putprivate static final org.slf4j.Logger LOG
private PasswordModifyRequest passwordModifyRequest
private int requestLength
public PasswordModifyRequestDecorator(LdapApiService codec, PasswordModifyRequest decoratedMessage)
codec - The codec servicedecoratedMessage - The decorated PwdModifyRequestpublic void setRequestValue(byte[] requestValue)
setRequestValue in class ExtendedRequestDecorator<PasswordModifyRequest>public byte[] getRequestValue()
getRequestValue in class ExtendedRequestDecorator<PasswordModifyRequest>public PasswordModifyResponse getResultResponse()
getResultResponse in interface ResultResponseRequestgetResultResponse in class ResultResponseRequestDecorator<PasswordModifyRequest>public byte[] getUserIdentity()
getUserIdentity in interface PasswordModifyRequestpublic void setUserIdentity(byte[] userIdentity)
PasswordModifyRequestsetUserIdentity in interface PasswordModifyRequestuserIdentity - the userIdentity to setpublic byte[] getOldPassword()
getOldPassword in interface PasswordModifyRequestpublic void setOldPassword(byte[] oldPassword)
PasswordModifyRequestsetOldPassword in interface PasswordModifyRequestoldPassword - the oldPassword to setpublic byte[] getNewPassword()
getNewPassword in interface PasswordModifyRequestpublic void setNewPassword(byte[] newPassword)
PasswordModifyRequestsetNewPassword in interface PasswordModifyRequestnewPassword - the newPassword to setint computeLengthInternal()
0x30 L1 | [+-- 0x80 L2 userIdentity] [+-- 0x81 L3 oldPassword] [+-- 0x82 L4 newPassword]
java.nio.ByteBuffer encodeInternal()
throws EncoderException
EncoderException - If anything goes wrong.