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
| Modifier and Type | Field and Description |
|---|---|
private static org.apache.directory.api.asn1.ber.Asn1Decoder |
DECODER
An instance of this decoder
|
private int |
ppolicySeqLength |
private int |
warningLength |
| Constructor and Description |
|---|
PasswordPolicyDecorator(org.apache.directory.api.ldap.codec.api.LdapApiService codec)
Creates a new instance of PasswordPolicyDecorator.
|
PasswordPolicyDecorator(org.apache.directory.api.ldap.codec.api.LdapApiService codec,
boolean hasResponse)
Creates a new instance of PasswordPolicyDecorator.
|
PasswordPolicyDecorator(org.apache.directory.api.ldap.codec.api.LdapApiService codec,
org.apache.directory.api.ldap.extras.controls.ppolicy.PasswordPolicy policy)
Creates a new instance of PasswordPolicyDecorator.
|
| 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, setDecoratedprivate static final org.apache.directory.api.asn1.ber.Asn1Decoder DECODER
private int ppolicySeqLength
private int warningLength
public PasswordPolicyDecorator(org.apache.directory.api.ldap.codec.api.LdapApiService codec)
codec - The LDAP Service to usepublic PasswordPolicyDecorator(org.apache.directory.api.ldap.codec.api.LdapApiService codec,
boolean hasResponse)
codec - The LDAP Service to usehasResponse - The hasResponse flagpublic PasswordPolicyDecorator(org.apache.directory.api.ldap.codec.api.LdapApiService codec,
org.apache.directory.api.ldap.extras.controls.ppolicy.PasswordPolicy policy)
codec - The LDAP Service to usepolicy - The asswordPolicy to usepublic 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.Asn1Objectpublic ByteBuffer encode(ByteBuffer buffer) throws org.apache.directory.api.asn1.EncoderException
encode in interface org.apache.directory.api.asn1.Asn1Objectorg.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–2018 The Apache Software Foundation. All rights reserved.