org.apache.directory.shared.ldap.extras.controls.ppolicy
Class PasswordPolicyDecorator

java.lang.Object
  extended by org.apache.directory.shared.asn1.AbstractAsn1Object
      extended by org.apache.directory.shared.ldap.codec.api.ControlDecorator<PasswordPolicy>
          extended by 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

Field Summary
 
Fields inherited from class org.apache.directory.shared.ldap.codec.api.ControlDecorator
value
 
Fields inherited from interface org.apache.directory.shared.ldap.extras.controls.ppolicy.PasswordPolicy
OID
 
Constructor Summary
PasswordPolicyDecorator(LdapApiService codec)
           
PasswordPolicyDecorator(LdapApiService codec, boolean hasResponse)
           
PasswordPolicyDecorator(LdapApiService codec, PasswordPolicy policy)
           
 
Method Summary
 int computeLength()
           
 Asn1Object decode(byte[] controlBytes)
          
 ByteBuffer encode(ByteBuffer buffer)
           
 PasswordPolicyResponse getResponse()
          
 boolean hasResponse()
          
 PasswordPolicyResponse setResponse(boolean hasResponse)
          
 void setResponse(PasswordPolicyResponse response)
          
 void setValue(byte[] value)
          
 String toString()
           
 
Methods inherited from class org.apache.directory.shared.ldap.codec.api.ControlDecorator
equals, getCodecService, getDecorated, getOid, getValue, hashCode, hasValue, isCritical, setCritical, setDecorated
 
Methods inherited from class org.apache.directory.shared.asn1.AbstractAsn1Object
addLength, getCurrentLength, getExpectedLength, getParent, getTlvId, setCurrentLength, setExpectedLength, setParent
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.directory.shared.ldap.model.message.Control
getOid, isCritical, setCritical
 

Constructor Detail

PasswordPolicyDecorator

public PasswordPolicyDecorator(LdapApiService codec)

PasswordPolicyDecorator

public PasswordPolicyDecorator(LdapApiService codec,
                               boolean hasResponse)

PasswordPolicyDecorator

public PasswordPolicyDecorator(LdapApiService codec,
                               PasswordPolicy policy)
Method Detail

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.