Class ENUMERATED

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<java.math.BigInteger>, ASN1Value

    public class ENUMERATED
    extends INTEGER
    Represents an ASN.1 ENUMERATED value. This has the same interface as INTEGER
    See Also:
    Serialized Form
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  ENUMERATED.Template
      A template for decoding ENUMERATED values from their BER encodings.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static Tag TAG  
      • Fields inherited from class org.mozilla.jss.asn1.INTEGER

        FORM
      • Fields inherited from class java.math.BigInteger

        ONE, TEN, TWO, ZERO
    • Constructor Summary

      Constructors 
      Constructor Description
      ENUMERATED​(long val)
      Creates a new ENUMERATED value from a long int.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Tag getTag()
      Returns the base tag for this type, not counting any tags that may be imposed on it by its context.
      static ASN1Template getTemplate()  
      long getValue()  
      • Methods inherited from class java.math.BigInteger

        abs, add, and, andNot, bitCount, bitLength, byteValueExact, clearBit, compareTo, divide, divideAndRemainder, doubleValue, equals, flipBit, floatValue, gcd, getLowestSetBit, hashCode, intValue, intValueExact, isProbablePrime, longValue, longValueExact, max, min, mod, modInverse, modPow, multiply, negate, nextProbablePrime, not, or, pow, probablePrime, remainder, setBit, shiftLeft, shiftRight, shortValueExact, signum, sqrt, sqrtAndRemainder, subtract, testBit, toByteArray, toString, toString, valueOf, xor
      • Methods inherited from class java.lang.Number

        byteValue, shortValue
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • TAG

        public static final Tag TAG
    • Constructor Detail

      • ENUMERATED

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

      • 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.