org.mozilla.jss.asn1

Class BOOLEAN

Implemented Interfaces:
ASN1Value

public class BOOLEAN
extends java.lang.Object
implements ASN1Value

An ASN.1 BOOLEAN value.

Nested Class Summary

static class
BOOLEAN.Template
A Class for decoding BOOLEAN values from their BER encodings.

Field Summary

static Form
FORM
static Tag
TAG

Constructor Summary

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

Method Summary

void
encode(OutputStream ostream)
void
encode(Tag implicitTag, OutputStream ostream)
Tag
getTag()
static BOOLEAN.Template
getTemplate()
boolean
toBoolean()
Returns the boolean value of this BOOLEAN.
String
toString()
Returns "true" or "false".

Field Details

FORM

public static final Form FORM


TAG

public static final Tag TAG

Constructor Details

BOOLEAN

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

Method Details

encode

public void encode(OutputStream ostream)
            throws IOException
Specified by:
encode in interface ASN1Value


encode

public void encode(Tag implicitTag,
                   OutputStream ostream)
            throws IOException
Specified by:
encode in interface ASN1Value


getTag

public Tag getTag()
Specified by:
getTag in interface ASN1Value


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".