org.bouncycastle.asn1

Class DEREnumerated

public class DEREnumerated extends ASN1Object

Constructor Summary
DEREnumerated(int value)
DEREnumerated(BigInteger value)
DEREnumerated(byte[] bytes)
Method Summary
static DEREnumeratedgetInstance(Object obj)
return an integer from the passed in object
static DEREnumeratedgetInstance(ASN1TaggedObject obj, boolean explicit)
return an Enumerated from a tagged object.
BigIntegergetValue()
inthashCode()

Constructor Detail

DEREnumerated

public DEREnumerated(int value)

DEREnumerated

public DEREnumerated(BigInteger value)

DEREnumerated

public DEREnumerated(byte[] bytes)

Method Detail

getInstance

public static DEREnumerated getInstance(Object obj)
return an integer from the passed in object

Throws: 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 want explicit true if the object is meant to be explicitly tagged false otherwise.

Throws: IllegalArgumentException if the tagged object cannot be converted.

getValue

public BigInteger getValue()

hashCode

public int hashCode()