Bouncy Castle Cryptography 1.50

org.bouncycastle.asn1
Class DEREnumerated

java.lang.Object
  extended by org.bouncycastle.asn1.ASN1Object
      extended by org.bouncycastle.asn1.ASN1Primitive
          extended by org.bouncycastle.asn1.DEREnumerated
All Implemented Interfaces:
ASN1Encodable
Direct Known Subclasses:
ASN1Enumerated

public class DEREnumerated
extends ASN1Primitive

Use ASN1Enumerated instead of this.


Constructor Summary
DEREnumerated(java.math.BigInteger value)
          Deprecated. use ASN1Enumerated
DEREnumerated(byte[] bytes)
          Deprecated. use ASN1Enumerated
DEREnumerated(int value)
          Deprecated. use ASN1Enumerated
 
Method Summary
static ASN1Enumerated getInstance(ASN1TaggedObject obj, boolean explicit)
          return an Enumerated from a tagged object.
static ASN1Enumerated getInstance(java.lang.Object obj)
          return an integer from the passed in object
 java.math.BigInteger getValue()
           
 int hashCode()
           
 
Methods inherited from class org.bouncycastle.asn1.ASN1Primitive
equals, fromByteArray, toASN1Primitive
 
Methods inherited from class org.bouncycastle.asn1.ASN1Object
getEncoded, getEncoded, hasEncodedTagValue, toASN1Object
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DEREnumerated

public DEREnumerated(int value)
Deprecated. use ASN1Enumerated


DEREnumerated

public DEREnumerated(java.math.BigInteger value)
Deprecated. use ASN1Enumerated


DEREnumerated

public DEREnumerated(byte[] bytes)
Deprecated. use ASN1Enumerated

Method Detail

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 ASN1Enumerated 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:
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

Bouncy Castle Cryptography 1.50