|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opends.server.protocols.asn1.ASN1Element
org.opends.server.protocols.asn1.ASN1Boolean
@PublicAPI(stability=UNCOMMITTED,
mayInstantiate=true,
mayExtend=false,
mayInvoke=true)
public final class ASN1BooleanThis class defines the data structures and methods to use when interacting with ASN.1 Boolean elements.
| Constructor Summary | |
|---|---|
ASN1Boolean(boolean booleanValue)
Creates a new ASN.1 Boolean element with the default type and the provided value. |
|
ASN1Boolean(byte type,
boolean booleanValue)
Creates a new ASN.1 Boolean element with the specified type and value. |
|
| Method Summary | |
|---|---|
boolean |
booleanValue()
Retrieves the boolean value for this ASN.1 Boolean element. |
static ASN1Boolean |
decodeAsBoolean(ASN1Element element)
Decodes the provided ASN.1 element as a Boolean element. |
static ASN1Boolean |
decodeAsBoolean(byte[] encodedElement)
Decodes the provided byte array as an ASN.1 Boolean element. |
void |
setValue(boolean booleanValue)
Specifies the boolean value for this ASN.1 Boolean element. |
void |
setValue(byte[] value)
Specifies the value for this ASN.1 Boolean element. |
void |
toString(java.lang.StringBuilder buffer)
Appends a string representation of this ASN.1 Boolean element to the provided buffer. |
void |
toString(java.lang.StringBuilder buffer,
int indent)
Appends a string representation of this protocol element to the provided buffer. |
| Methods inherited from class org.opends.server.protocols.asn1.ASN1Element |
|---|
decode, decode, decodeAsBoolean, decodeAsEnumerated, decodeAsInteger, decodeAsLong, decodeAsNull, decodeAsOctetString, decodeAsSequence, decodeAsSet, decodeElements, encode, encodeLength, encodeLongValue, encodeValue, encodeValue, encodeValue, equals, equalsElement, equalsIgnoreType, equalsIgnoreType, getProtocolElementName, getType, hashCode, isApplicationSpecific, isConstructed, isContextSpecific, isPrimitive, isPrivate, isUniversal, setType, setValueInternal, toString, value |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ASN1Boolean(boolean booleanValue)
booleanValue - The value for this ASN.1 Boolean element.
public ASN1Boolean(byte type,
boolean booleanValue)
type - The BER type for this ASN.1 Boolean element.booleanValue - The value for this ASN.1 Boolean element.| Method Detail |
|---|
public boolean booleanValue()
public void setValue(boolean booleanValue)
booleanValue - The boolean value for this ASN.1 Boolean element.
public void setValue(byte[] value)
throws ASN1Exception
setValue in class ASN1Elementvalue - The encoded value for this ASN.1 Boolean element.
ASN1Exception - If the provided array is null or does not contain
a single byte.
public static ASN1Boolean decodeAsBoolean(ASN1Element element)
throws ASN1Exception
element - The ASN.1 element to decode as a Boolean element.
ASN1Exception - If the provided ASN.1 element cannot be decoded as
a Boolean element.
public static ASN1Boolean decodeAsBoolean(byte[] encodedElement)
throws ASN1Exception
encodedElement - The 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.public void toString(java.lang.StringBuilder buffer)
toString in interface ProtocolElementtoString in class ASN1Elementbuffer - The buffer to which the information should be appended.
public void toString(java.lang.StringBuilder buffer,
int indent)
toString in interface ProtocolElementtoString in class ASN1Elementbuffer - The buffer into which the string representation should be
written.indent - The number of spaces that should be used to indent the
resulting string representation.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||