org.apache.directory.shared.ldap.codec
Interface ControlDecoder

All Known Implementing Classes:
EntryChangeControlDecoder, ManageDsaITControlDecoder, PSearchControlDecoder, SubEntryControlDecoder

public interface ControlDecoder

An interface for decoders of controls.

Author:
Apache Directory Project

Method Summary
 Asn1Object decode(byte[] controlBytes)
          Decodes raw ASN.1 encoded bytes into an Asn1Object for the control.
 java.lang.String getControlType()
          The control type this decoder decodes.
 

Method Detail

getControlType

java.lang.String getControlType()
The control type this decoder decodes.

Returns:
the control type (an OID string)

decode

Asn1Object decode(byte[] controlBytes)
                  throws DecoderException,
                         javax.naming.NamingException
Decodes raw ASN.1 encoded bytes into an Asn1Object for the control.

Parameters:
controlBytes - the encoded control bytes
Returns:
the decoded Asn1Object for the control
Throws:
DecoderException - if anything goes wrong
javax.naming.NamingException


Copyright © 2004-2012. All Rights Reserved.