org.mozilla.jss.asn1

Class BOOLEAN

public class BOOLEAN extends Object implements ASN1Value

An ASN.1 BOOLEAN value.
Nested Class Summary
static classBOOLEAN.Template
A Class for decoding BOOLEAN values from their BER encodings.
Field Summary
static FormFORM
static TagTAG
Constructor Summary
BOOLEAN(boolean val)
Creates a BOOLEAN with the given value.
Method Summary
voidencode(OutputStream ostream)
voidencode(Tag implicitTag, OutputStream ostream)
TaggetTag()
static BOOLEAN.TemplategetTemplate()
booleantoBoolean()
Returns the boolean value of this BOOLEAN.
StringtoString()
Returns "true" or "false".

Field Detail

FORM

public static final Form FORM

TAG

public static final Tag TAG

Constructor Detail

BOOLEAN

public BOOLEAN(boolean val)
Creates a BOOLEAN with the given value.

Method Detail

encode

public void encode(OutputStream ostream)

encode

public void encode(Tag implicitTag, OutputStream ostream)

getTag

public Tag getTag()

getTemplate

public static BOOLEAN.Template getTemplate()

toBoolean

public boolean toBoolean()
Returns the boolean value of this BOOLEAN.

toString

public String toString()
Returns "true" or "false".