org.bouncycastle.asn1

Class DERInteger

public class DERInteger extends ASN1Object

Constructor Summary
DERInteger(int value)
DERInteger(BigInteger value)
DERInteger(byte[] bytes)
Method Summary
static DERIntegergetInstance(Object obj)
return an integer from the passed in object
static DERIntegergetInstance(ASN1TaggedObject obj, boolean explicit)
return an Integer from a tagged object.
BigIntegergetPositiveValue()
in some cases positive values get crammed into a space, that's not quite big enough...
BigIntegergetValue()
inthashCode()
StringtoString()

Constructor Detail

DERInteger

public DERInteger(int value)

DERInteger

public DERInteger(BigInteger value)

DERInteger

public DERInteger(byte[] bytes)

Method Detail

getInstance

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

Throws: IllegalArgumentException if the object cannot be converted.

getInstance

public static DERInteger getInstance(ASN1TaggedObject obj, boolean explicit)
return an Integer 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.

getPositiveValue

public BigInteger getPositiveValue()
in some cases positive values get crammed into a space, that's not quite big enough...

getValue

public BigInteger getValue()

hashCode

public int hashCode()

toString

public String toString()