Class ContextType

    • Field Detail

      • derItem

        private final byte[] derItem
        Data to encode.
    • Constructor Detail

      • ContextType

        public ContextType​(int index,
                           byte[] item)
        Creates a new context type.
        Parameters:
        index - of this item in the context
        item - to encode
      • ContextType

        public ContextType​(int index,
                           String item)
        Creates a new context type.
        Parameters:
        index - of this item in the context
        item - to encode
      • ContextType

        public ContextType​(int index,
                           boolean item)
        Creates a new context type.
        Parameters:
        index - of this item in the context
        item - to encode
      • ContextType

        public ContextType​(int index,
                           BigInteger item)
        Creates a new context type.
        Parameters:
        index - of this item in the context
        item - to encode
    • Method Detail

      • encode

        public byte[] encode()
        Description copied from interface: DEREncoder
        Encode this object into its DER type.
        Specified by:
        encode in interface DEREncoder
        Returns:
        DER encoded object