|
Bouncy Castle Cryptography 1.51 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.bouncycastle.asn1.ASN1Object
org.bouncycastle.asn1.ASN1Primitive
org.bouncycastle.asn1.ASN1Boolean
public class ASN1Boolean
Public facade of ASN.1 Boolean data.
Use following to place a new instance of ASN.1 Boolean in your dataset:
ASN1Boolean.getInstance(boolean)ASN1Boolean.getInstance(int)
| Field Summary | |
|---|---|
static ASN1Boolean |
FALSE
|
static ASN1Boolean |
TRUE
|
| Constructor Summary | |
|---|---|
ASN1Boolean(boolean value)
Deprecated. use getInstance(boolean) method. |
|
| Method Summary | |
|---|---|
protected boolean |
asn1Equals(ASN1Primitive o)
|
static ASN1Boolean |
getInstance(ASN1TaggedObject obj,
boolean explicit)
return a Boolean from a tagged object. |
static ASN1Boolean |
getInstance(boolean value)
return an ASN1Boolean from the passed in boolean. |
static ASN1Boolean |
getInstance(int value)
return an ASN1Boolean from the passed in value. |
static ASN1Boolean |
getInstance(java.lang.Object obj)
return a boolean from the passed in object. |
int |
hashCode()
|
boolean |
isTrue()
|
java.lang.String |
toString()
|
| 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, wait, wait, wait |
| Field Detail |
|---|
public static final ASN1Boolean FALSE
public static final ASN1Boolean TRUE
| Constructor Detail |
|---|
public ASN1Boolean(boolean value)
value - true or false.| Method Detail |
|---|
public static ASN1Boolean getInstance(java.lang.Object obj)
obj - an ASN1Boolean or an object that can be converted into one.
java.lang.IllegalArgumentException - if the object cannot be converted.public static ASN1Boolean getInstance(boolean value)
public static ASN1Boolean getInstance(int value)
public static ASN1Boolean getInstance(ASN1TaggedObject obj,
boolean explicit)
obj - the tagged object holding the object we wantexplicit - true if the object is meant to be explicitly
tagged false otherwise.
java.lang.IllegalArgumentException - if the tagged object cannot
be converted.public boolean isTrue()
protected boolean asn1Equals(ASN1Primitive o)
public int hashCode()
hashCode in class ASN1Primitivepublic java.lang.String toString()
toString in class java.lang.Object
|
Bouncy Castle Cryptography 1.51 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||