You are currently viewing a snapshot of www.mozilla.org taken on April 21, 2008. Most of this content is highly out of date (some pages haven't been updated since the project began in 1998) and exists for historical purposes only. If there are any pages on this archive site that you think should be added back to www.mozilla.org, please file a bug.




org.mozilla.jss.asn1
Class ENUMERATED

java.lang.Object
  extended by java.lang.Number
      extended by java.math.BigInteger
          extended by org.mozilla.jss.asn1.INTEGER
              extended by org.mozilla.jss.asn1.ENUMERATED
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<java.math.BigInteger>, ASN1Value

public class ENUMERATED
extends INTEGER
implements ASN1Value

Represents an ASN.1 ENUMERATED value. This has the same interface as INTEGER

See Also:
Serialized Form

Nested Class Summary
static class ENUMERATED.Template
          A template for decoding ENUMERATED values from their BER encodings.
 
Field Summary
static Tag TAG
           
 
Fields inherited from class org.mozilla.jss.asn1.INTEGER
FORM
 
Fields inherited from class java.math.BigInteger
ONE, TEN, ZERO
 
Constructor Summary
ENUMERATED(long val)
          Creates a new ENUMERATED value from a long.
 
Method Summary
 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()
          Returns the value as a long.
 
Methods inherited from class org.mozilla.jss.asn1.INTEGER
encode, encode, encode, getContentLength, main
 
Methods inherited from class java.math.BigInteger
abs, add, and, andNot, bitCount, bitLength, clearBit, compareTo, divide, divideAndRemainder, doubleValue, equals, flipBit, floatValue, gcd, getLowestSetBit, hashCode, intValue, isProbablePrime, longValue, max, min, mod, modInverse, modPow, multiply, negate, nextProbablePrime, not, or, pow, probablePrime, remainder, setBit, shiftLeft, shiftRight, signum, 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
 
Methods inherited from interface org.mozilla.jss.asn1.ASN1Value
encode, encode
 

Field Detail

TAG

public static final Tag TAG
Constructor Detail

ENUMERATED

public ENUMERATED(long val)
Creates a new ENUMERATED value from a long.

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

getValue

public long getValue()
Returns the value as a long.


getTemplate

public static ASN1Template getTemplate()