Class AbstractReadOctetString<C extends Asn1Container>

    • Constructor Detail

      • AbstractReadOctetString

        public AbstractReadOctetString​(String name)
        Instantiates a new AbstractReadInteger action.
        Parameters:
        name - the action's name
      • AbstractReadOctetString

        public AbstractReadOctetString​(String name,
                                       boolean canBeNull)
        Instantiates a new AbstractReadInteger action.
        Parameters:
        name - the action's name
        canBeNull - Tells if the byte array can be null or not
    • Method Detail

      • setOctetString

        protected abstract void setOctetString​(byte[] value,
                                               C container)
        Sets the OCTET STRING value to the appropriate field of ASN.1 object present in the container
        Parameters:
        value - the OCTET STRING value
        container - the ASN.1 object's container
      • action

        public final void action​(C container)
                          throws DecoderException
        The action to be executed.
        Parameters:
        container - The container which stores the current data
        Throws:
        DecoderException - Thrown if something went wrong.