org.bouncycastle.asn1

Class DERBoolean

public class DERBoolean extends ASN1Object

Field Summary
static DERBooleanFALSE
static DERBooleanTRUE
Constructor Summary
DERBoolean(byte[] value)
DERBoolean(boolean value)
Method Summary
protected booleanasn1Equals(DERObject o)
static DERBooleangetInstance(Object obj)
return a boolean from the passed in object.
static DERBooleangetInstance(boolean value)
return a DERBoolean from the passed in boolean.
static DERBooleangetInstance(ASN1TaggedObject obj, boolean explicit)
return a Boolean from a tagged object.
inthashCode()
booleanisTrue()
StringtoString()

Field Detail

FALSE

public static final DERBoolean FALSE

TRUE

public static final DERBoolean TRUE

Constructor Detail

DERBoolean

public DERBoolean(byte[] value)

DERBoolean

public DERBoolean(boolean value)

Method Detail

asn1Equals

protected boolean asn1Equals(DERObject o)

getInstance

public static DERBoolean getInstance(Object obj)
return a boolean from the passed in object.

Throws: IllegalArgumentException if the object cannot be converted.

getInstance

public static DERBoolean getInstance(boolean value)
return a DERBoolean from the passed in boolean.

getInstance

public static DERBoolean getInstance(ASN1TaggedObject obj, boolean explicit)
return a Boolean 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.

hashCode

public int hashCode()

isTrue

public boolean isTrue()

toString

public String toString()