public class PasswordPolicyDecorator
extends org.apache.directory.api.ldap.codec.api.ControlDecorator<org.apache.directory.api.ldap.extras.controls.ppolicy.PasswordPolicy>
implements org.apache.directory.api.ldap.extras.controls.ppolicy.PasswordPolicy
| Constructor and Description |
|---|
PasswordPolicyDecorator(org.apache.directory.api.ldap.codec.api.LdapApiService codec) |
PasswordPolicyDecorator(org.apache.directory.api.ldap.codec.api.LdapApiService codec,
boolean hasResponse) |
PasswordPolicyDecorator(org.apache.directory.api.ldap.codec.api.LdapApiService codec,
org.apache.directory.api.ldap.extras.controls.ppolicy.PasswordPolicy policy) |
| Modifier and Type | Method and Description |
|---|---|
int |
computeLength() |
org.apache.directory.api.asn1.Asn1Object |
decode(byte[] controlBytes) |
ByteBuffer |
encode(ByteBuffer buffer) |
org.apache.directory.api.ldap.extras.controls.ppolicy.PasswordPolicyResponse |
getResponse() |
boolean |
hasResponse() |
org.apache.directory.api.ldap.extras.controls.ppolicy.PasswordPolicyResponse |
setResponse(boolean hasResponse) |
void |
setResponse(org.apache.directory.api.ldap.extras.controls.ppolicy.PasswordPolicyResponse response) |
void |
setValue(byte[] value) |
String |
toString() |
equals, getCodecService, getDecorated, getOid, getValue, hashCode, hasValue, isCritical, setCritical, setDecoratedaddLength, getCurrentLength, getExpectedLength, getParent, getTlvId, setCurrentLength, setExpectedLength, setParentpublic PasswordPolicyDecorator(org.apache.directory.api.ldap.codec.api.LdapApiService codec)
public PasswordPolicyDecorator(org.apache.directory.api.ldap.codec.api.LdapApiService codec,
boolean hasResponse)
public PasswordPolicyDecorator(org.apache.directory.api.ldap.codec.api.LdapApiService codec,
org.apache.directory.api.ldap.extras.controls.ppolicy.PasswordPolicy policy)
public void setValue(byte[] value)
setValue in interface org.apache.directory.api.ldap.codec.api.CodecControl<org.apache.directory.api.ldap.extras.controls.ppolicy.PasswordPolicy>setValue in class org.apache.directory.api.ldap.codec.api.ControlDecorator<org.apache.directory.api.ldap.extras.controls.ppolicy.PasswordPolicy>public int computeLength()
computeLength in interface org.apache.directory.api.asn1.Asn1ObjectcomputeLength in interface org.apache.directory.api.ldap.codec.api.Decorator<org.apache.directory.api.ldap.extras.controls.ppolicy.PasswordPolicy>computeLength in class org.apache.directory.api.ldap.codec.api.ControlDecorator<org.apache.directory.api.ldap.extras.controls.ppolicy.PasswordPolicy>public ByteBuffer encode(ByteBuffer buffer) throws org.apache.directory.api.asn1.EncoderException
encode in interface org.apache.directory.api.asn1.Asn1Objectencode in interface org.apache.directory.api.ldap.codec.api.Decorator<org.apache.directory.api.ldap.extras.controls.ppolicy.PasswordPolicy>encode in class org.apache.directory.api.asn1.AbstractAsn1Objectorg.apache.directory.api.asn1.EncoderExceptionpublic String toString()
toString in class org.apache.directory.api.ldap.codec.api.ControlDecorator<org.apache.directory.api.ldap.extras.controls.ppolicy.PasswordPolicy>public org.apache.directory.api.asn1.Asn1Object decode(byte[] controlBytes)
throws org.apache.directory.api.asn1.DecoderException
decode in interface org.apache.directory.api.ldap.codec.api.CodecControl<org.apache.directory.api.ldap.extras.controls.ppolicy.PasswordPolicy>org.apache.directory.api.asn1.DecoderExceptionpublic boolean hasResponse()
hasResponse in interface org.apache.directory.api.ldap.extras.controls.ppolicy.PasswordPolicypublic void setResponse(org.apache.directory.api.ldap.extras.controls.ppolicy.PasswordPolicyResponse response)
setResponse in interface org.apache.directory.api.ldap.extras.controls.ppolicy.PasswordPolicypublic org.apache.directory.api.ldap.extras.controls.ppolicy.PasswordPolicyResponse setResponse(boolean hasResponse)
setResponse in interface org.apache.directory.api.ldap.extras.controls.ppolicy.PasswordPolicypublic org.apache.directory.api.ldap.extras.controls.ppolicy.PasswordPolicyResponse getResponse()
getResponse in interface org.apache.directory.api.ldap.extras.controls.ppolicy.PasswordPolicyCopyright © 2003-2014 The Apache Software Foundation. All Rights Reserved.