public class PasswordModifyRequestDecorator
extends org.apache.directory.api.ldap.codec.decorators.ExtendedRequestDecorator<org.apache.directory.api.ldap.extras.extended.pwdModify.PasswordModifyRequest>
implements org.apache.directory.api.ldap.extras.extended.pwdModify.PasswordModifyRequest
| Modifier and Type | Field and Description |
|---|---|
private static org.slf4j.Logger |
LOG |
private org.apache.directory.api.ldap.extras.extended.pwdModify.PasswordModifyRequest |
passwordModifyRequest
The internal PasswordModifyRequest
|
private int |
requestLength
stores the length of the request
|
| Constructor and Description |
|---|
PasswordModifyRequestDecorator(org.apache.directory.api.ldap.codec.api.LdapApiService codec,
org.apache.directory.api.ldap.extras.extended.pwdModify.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) ByteBuffer |
encodeInternal()
Encodes the PasswordModifyRequest extended operation.
|
byte[] |
getNewPassword() |
byte[] |
getOldPassword() |
byte[] |
getRequestValue() |
org.apache.directory.api.ldap.extras.extended.pwdModify.PasswordModifyResponse |
getResultResponse() |
byte[] |
getUserIdentity() |
void |
setNewPassword(byte[] newPassword) |
void |
setOldPassword(byte[] oldPassword) |
void |
setRequestValue(byte[] requestValue) |
void |
setUserIdentity(byte[] userIdentity) |
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, setRequestNameprivate static final org.slf4j.Logger LOG
private org.apache.directory.api.ldap.extras.extended.pwdModify.PasswordModifyRequest passwordModifyRequest
private int requestLength
public PasswordModifyRequestDecorator(org.apache.directory.api.ldap.codec.api.LdapApiService codec,
org.apache.directory.api.ldap.extras.extended.pwdModify.PasswordModifyRequest decoratedMessage)
codec - The codec servicedecoratedMessage - The decorated PwdModifyRequestpublic void setRequestValue(byte[] requestValue)
setRequestValue in class org.apache.directory.api.ldap.codec.decorators.ExtendedRequestDecorator<org.apache.directory.api.ldap.extras.extended.pwdModify.PasswordModifyRequest>public byte[] getRequestValue()
getRequestValue in class org.apache.directory.api.ldap.codec.decorators.ExtendedRequestDecorator<org.apache.directory.api.ldap.extras.extended.pwdModify.PasswordModifyRequest>public org.apache.directory.api.ldap.extras.extended.pwdModify.PasswordModifyResponse getResultResponse()
getResultResponse in interface org.apache.directory.api.ldap.model.message.ResultResponseRequestgetResultResponse in class org.apache.directory.api.ldap.codec.decorators.ResultResponseRequestDecorator<org.apache.directory.api.ldap.extras.extended.pwdModify.PasswordModifyRequest>public byte[] getUserIdentity()
getUserIdentity in interface org.apache.directory.api.ldap.extras.extended.pwdModify.PasswordModifyRequestpublic void setUserIdentity(byte[] userIdentity)
setUserIdentity in interface org.apache.directory.api.ldap.extras.extended.pwdModify.PasswordModifyRequestuserIdentity - the userIdentity to setpublic byte[] getOldPassword()
getOldPassword in interface org.apache.directory.api.ldap.extras.extended.pwdModify.PasswordModifyRequestpublic void setOldPassword(byte[] oldPassword)
setOldPassword in interface org.apache.directory.api.ldap.extras.extended.pwdModify.PasswordModifyRequestoldPassword - the oldPassword to setpublic byte[] getNewPassword()
getNewPassword in interface org.apache.directory.api.ldap.extras.extended.pwdModify.PasswordModifyRequestpublic void setNewPassword(byte[] newPassword)
setNewPassword in interface org.apache.directory.api.ldap.extras.extended.pwdModify.PasswordModifyRequestnewPassword - the newPassword to setint computeLengthInternal()
0x30 L1 | [+-- 0x80 L2 userIdentity] [+-- 0x81 L3 oldPassword] [+-- 0x82 L4 newPassword]
ByteBuffer encodeInternal()
org.apache.directory.api.asn1.EncoderException - If anything goes wrong.Copyright © 2003–2018 The Apache Software Foundation. All rights reserved.