|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.slamd.asn1.ASN1Element
com.sun.slamd.asn1.ASN1Boolean
This class defines an ASN.1 element that can hold a Boolean value (for storing values of either true or false).
| Field Summary | |
static byte |
BOOLEAN_FALSE
The value that will be used for Boolean values of false. |
static byte[] |
BOOLEAN_FALSE_ARRAY
The byte array that will be used as the "false" value for Boolean elements. |
static byte |
BOOLEAN_TRUE
The value that will be used for Boolean values of true. |
static byte[] |
BOOLEAN_TRUE_ARRAY
The byte array that will be used as the "true" value for Boolean elements. |
static ASN1Boolean |
FALSE_ELEMENT
The ASN.1 Boolean element with a value of "false". |
static ASN1Boolean |
TRUE_ELEMENT
The ASN.1 Boolean element with a value of "true". |
| Fields inherited from class com.sun.slamd.asn1.ASN1Element |
ASN1_BOOLEAN_TYPE, ASN1_ENUMERATED_TYPE, ASN1_INTEGER_TYPE, ASN1_NULL_TYPE, ASN1_OCTET_STRING_TYPE, ASN1_SEQUENCE_TYPE, ASN1_SET_TYPE, EMPTY_BYTES |
| Constructor Summary | |
ASN1Boolean(boolean booleanValue)
Creates a new ASN.1 Boolean element with the specified value. |
|
ASN1Boolean(byte type,
boolean booleanValue)
Creates a new ASN.1 Boolean element with the specified type and value. |
|
| Method Summary | |
static ASN1Boolean |
decodeAsBoolean(byte[] encodedValue)
Decodes the provided byte array as an ASN.1 Boolean element. |
byte[] |
encode()
Encodes this ASN.1 element into a byte array. |
boolean |
getBooleanValue()
Retrieves the Java boolean value associated with this ASN.1 Boolean element. |
| Methods inherited from class com.sun.slamd.asn1.ASN1Element |
byteArrayToInt, byteArrayToString, byteArrayToString, decode, decodeAsBoolean, decodeAsEnumerated, decodeAsEnumerated, decodeAsInteger, decodeAsInteger, decodeAsNull, decodeAsNull, decodeAsOctetString, decodeAsOctetString, decodeAsSequence, decodeAsSequence, decodeAsSet, decodeAsSet, decodeLength, encode, encodeLength, getBytes, getType, getTypeWithoutFlags, getValue, setType, setValue, toString, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final byte BOOLEAN_FALSE
public static final byte[] BOOLEAN_FALSE_ARRAY
public static final byte BOOLEAN_TRUE
public static final byte[] BOOLEAN_TRUE_ARRAY
public static final ASN1Boolean FALSE_ELEMENT
public static final ASN1Boolean TRUE_ELEMENT
| Constructor Detail |
public ASN1Boolean(boolean booleanValue)
booleanValue - The Java boolean value to use to create this ASN.1
Boolean element.
public ASN1Boolean(byte type,
boolean booleanValue)
type - The type to use for this ASN.1 Boolean element.booleanValue - The Java boolean value to use to create this ASN.1
Boolean element.| Method Detail |
public boolean getBooleanValue()
public byte[] encode()
encode in class ASN1Element
public static ASN1Boolean decodeAsBoolean(byte[] encodedValue)
throws ASN1Exception
encodedValue - The encoded byte array to decode as an ASN.1 Boolean
element.
ASN1Exception - If the provided byte array cannot be decoded as an
ASN.1 Boolean element.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||