org.apache.directory.shared.ldap.extras.controls.ppolicy
Class PasswordPolicyDecorator
java.lang.Object
org.apache.directory.shared.asn1.AbstractAsn1Object
org.apache.directory.shared.ldap.codec.api.ControlDecorator<PasswordPolicy>
org.apache.directory.shared.ldap.extras.controls.ppolicy.PasswordPolicyDecorator
- All Implemented Interfaces:
- Asn1Object, CodecControl<PasswordPolicy>, Decorator<PasswordPolicy>, PasswordPolicy, Control
public class PasswordPolicyDecorator
- extends ControlDecorator<PasswordPolicy>
- implements PasswordPolicy
PasswordPolicy decorator.
- Author:
- Apache Directory Project
| Fields inherited from interface org.apache.directory.shared.ldap.extras.controls.ppolicy.PasswordPolicy |
OID |
PasswordPolicyDecorator
public PasswordPolicyDecorator(LdapApiService codec)
PasswordPolicyDecorator
public PasswordPolicyDecorator(LdapApiService codec,
boolean hasResponse)
PasswordPolicyDecorator
public PasswordPolicyDecorator(LdapApiService codec,
PasswordPolicy policy)
setValue
public void setValue(byte[] value)
-
- Specified by:
setValue in interface CodecControl<PasswordPolicy>- Overrides:
setValue in class ControlDecorator<PasswordPolicy>
computeLength
public int computeLength()
- Specified by:
computeLength in interface Asn1Object- Specified by:
computeLength in interface Decorator<PasswordPolicy>- Overrides:
computeLength in class ControlDecorator<PasswordPolicy>
encode
public ByteBuffer encode(ByteBuffer buffer)
throws EncoderException
- Specified by:
encode in interface Asn1Object- Specified by:
encode in interface Decorator<PasswordPolicy>- Overrides:
encode in class AbstractAsn1Object
- Throws:
EncoderException
toString
public String toString()
- Overrides:
toString in class ControlDecorator<PasswordPolicy>
decode
public Asn1Object decode(byte[] controlBytes)
throws DecoderException
-
- Specified by:
decode in interface CodecControl<PasswordPolicy>
- Throws:
DecoderException
hasResponse
public boolean hasResponse()
-
- Specified by:
hasResponse in interface PasswordPolicy
setResponse
public void setResponse(PasswordPolicyResponse response)
-
- Specified by:
setResponse in interface PasswordPolicy
setResponse
public PasswordPolicyResponse setResponse(boolean hasResponse)
-
- Specified by:
setResponse in interface PasswordPolicy
getResponse
public PasswordPolicyResponse getResponse()
-
- Specified by:
getResponse in interface PasswordPolicy
Copyright © 2003-2011 The Apache Software Foundation. All Rights Reserved.