Modifier and Type | Class and Description |
---|---|
static class |
BOOLEAN.Template
A Class for decoding
BOOLEAN values from their BER
encodings. |
Constructor and Description |
---|
BOOLEAN(boolean val)
Creates a
BOOLEAN with the given value. |
Modifier and Type | Method and Description |
---|---|
void |
encode(java.io.OutputStream ostream)
Write this value's DER encoding to an output stream using
its own base tag.
|
void |
encode(Tag implicitTag,
java.io.OutputStream ostream)
Write this value's DER encoding to an output stream using
an implicit tag.
|
Tag |
getTag()
Returns the base tag for this type, not counting any tags
that may be imposed on it by its context.
|
static BOOLEAN.Template |
getTemplate() |
boolean |
toBoolean() |
java.lang.String |
toString()
Returns "true" or "false".
|
public BOOLEAN(boolean val)
BOOLEAN
with the given value.val
- Boolean value.public Tag getTag()
ASN1Value
public void encode(java.io.OutputStream ostream) throws java.io.IOException
ASN1Value
public void encode(Tag implicitTag, java.io.OutputStream ostream) throws java.io.IOException
ASN1Value
public boolean toBoolean()
BOOLEAN
.public java.lang.String toString()
toString
in class java.lang.Object
public static BOOLEAN.Template getTemplate()