Class ContextType

  • All Implemented Interfaces:
    DEREncoder

    public class ContextType
    extends AbstractDERType
    implements DEREncoder
    Converts context types to their DER encoded format.
    Author:
    Middleware Services
    • Constructor Summary

      Constructors 
      Constructor Description
      ContextType​(int index, boolean item)
      Creates a new context type.
      ContextType​(int index, byte[] item)
      Creates a new context type.
      ContextType​(int index, java.lang.String item)
      Creates a new context type.
      ContextType​(int index, java.math.BigInteger item)
      Creates a new context type.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      byte[] encode()
      Encode this object into it's DER type.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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,
                           java.lang.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,
                           java.math.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 it's DER type.
        Specified by:
        encode in interface DEREncoder
        Returns:
        DER encoded object