org.bouncycastle.asn1
Class DEREnumerated
java.lang.Object
org.bouncycastle.asn1.ASN1Object
org.bouncycastle.asn1.ASN1Primitive
org.bouncycastle.asn1.DEREnumerated
- All Implemented Interfaces:
- ASN1Encodable
- Direct Known Subclasses:
- ASN1Enumerated
public class DEREnumerated
- extends ASN1Primitive
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
DEREnumerated
public DEREnumerated(int value)
DEREnumerated
public DEREnumerated(java.math.BigInteger value)
DEREnumerated
public DEREnumerated(byte[] bytes)
getInstance
public static ASN1Enumerated getInstance(java.lang.Object obj)
- return an integer from the passed in object
- Throws:
java.lang.IllegalArgumentException
- if the object cannot be converted.
getInstance
public static DEREnumerated getInstance(ASN1TaggedObject obj,
boolean explicit)
- return an Enumerated from a tagged object.
- Parameters:
obj
- the tagged object holding the object we wantexplicit
- true if the object is meant to be explicitly
tagged false otherwise.
- Throws:
java.lang.IllegalArgumentException
- if the tagged object cannot
be converted.
getValue
public java.math.BigInteger getValue()
hashCode
public int hashCode()
- Specified by:
hashCode
in class ASN1Primitive