Interface CodecControl<E extends Control>

    • Method Detail

      • decode

        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
      • hasValue

        boolean hasValue()
        Checks to see if a value is set for this CodecControl.
        Returns:
        true, if this control has a value, false otherwise
      • getValue

        byte[] getValue()
        Gets the binary ASN.1 BER encoded representation of the control.
        Returns:
        The control's encoded value
      • setValue

        void setValue​(byte[] value)
        Set the Control's encoded control value.
        Parameters:
        value - The encoded control value to store.