Package org.mozilla.jss.asn1
Class ENUMERATED
java.lang.Object
java.lang.Number
java.math.BigInteger
org.mozilla.jss.asn1.INTEGER
org.mozilla.jss.asn1.ENUMERATED
- All Implemented Interfaces:
Serializable,Comparable<BigInteger>,ASN1Value
Represents an ASN.1
ENUMERATED value. This has the same
interface as INTEGER- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA template for decoding ENUMERATED values from their BER encodings. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final longstatic final Tagprivate static final ENUMERATED.TemplateFields inherited from class java.math.BigInteger
ONE, TEN, TWO, ZERO -
Constructor Summary
ConstructorsConstructorDescriptionENUMERATED(byte[] valBytes) ENUMERATED(long val) Creates a new ENUMERATED value from a long int. -
Method Summary
Modifier and TypeMethodDescriptiongetTag()Returns the base tag for this type, not counting any tags that may be imposed on it by its context.static ASN1TemplatelonggetValue()Methods inherited from class org.mozilla.jss.asn1.INTEGER
encode, encode, encode, getContentLength, mainMethods 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, xorMethods inherited from class java.lang.Number
byteValue, shortValue
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
TAG
-
templateInstance
-
-
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
Description copied from interface:ASN1ValueReturns the base tag for this type, not counting any tags that may be imposed on it by its context. -
getValue
public long getValue()- Returns:
- The value as a long int.
-
getTemplate
-