Class ENUMERATED

All Implemented Interfaces:
Serializable, Comparable<BigInteger>, ASN1Value

public class ENUMERATED extends INTEGER
Represents an ASN.1 ENUMERATED value. This has the same interface as INTEGER
See Also:
  • Field Details

  • Constructor Details

    • ENUMERATED

      public ENUMERATED(long val)
      Creates a new ENUMERATED value from a long int.
      Parameters:
      val - Input value.
    • ENUMERATED

      ENUMERATED(byte[] valBytes)
  • Method Details

    • getTag

      public Tag getTag()
      Description copied from interface: ASN1Value
      Returns the base tag for this type, not counting any tags that may be imposed on it by its context.
      Specified by:
      getTag in interface ASN1Value
      Overrides:
      getTag in class INTEGER
      Returns:
      Base tag.
    • getValue

      public long getValue()
      Returns:
      The value as a long int.
    • getTemplate

      public static ASN1Template getTemplate()