Class BasicControlDecorator

    • Constructor Detail

      • BasicControlDecorator

        public BasicControlDecorator​(LdapApiService codec,
                                     Control control)
        Creates a new instance of BasicControlDecorator, decorating a Control.
        Parameters:
        codec - The LDAP codec service.
        control - The Control to decorate.
    • Method Detail

      • decode

        public Asn1Object decode​(byte[] controlBytes)
                          throws DecoderException
        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
      • computeLength

        public int computeLength()
        Compute the object length, which is the sum of all inner length.
        Returns:
        The object's computed length