Interface ControlFactory<C extends Control>

    • Method Detail

      • getOid

        String getOid()
        Returns:
        The OID of the Control this factory creates.
      • encodeValue

        void encodeValue​(Asn1Buffer buffer,
                         Control control)
        Encode the value part of the control.
        Parameters:
        buffer - The buffer into which to put the encoded value
        control - The control to encode
      • decodeValue

        void decodeValue​(ControlContainer container,
                         Control control,
                         byte[] controlBytes)
                  throws DecoderException
        Decode a Control's value. It will feed the Control.
        Parameters:
        container - The Asn1Container containing the control to feed
        control - The control to feed
        controlBytes - The data to decode
        Throws:
        DecoderException - If the value can't be decoded
      • decodeValue

        void decodeValue​(Control control,
                         byte[] controlBytes)
                  throws DecoderException
        Decode a Control's value. It will feed the Control.
        Parameters:
        control - The control to feed
        controlBytes - The data to decode
        Throws:
        DecoderException - If the value can't be decoded