org.apache.asn1.der
Class DERBoolean

java.lang.Object
  extended by org.apache.asn1.der.DERObject
      extended by org.apache.asn1.der.DERBoolean
All Implemented Interfaces:
DEREncodable

public class DERBoolean
extends DERObject

DER Boolean object.


Field Summary
static DERBoolean FALSE
           
private static byte[] falseArray
           
static DERBoolean TRUE
           
private static byte[] trueArray
           
 
Fields inherited from class org.apache.asn1.der.DERObject
APPLICATION, BIT_STRING, BMP_STRING, BOOLEAN, CONSTRUCTED, ENUMERATED, EXTERNAL, GENERAL_STRING, GENERALIZED_TIME, GRAPHIC_STRING, IA5_STRING, INTEGER, NULL, NUMERIC_STRING, OBJECT_IDENTIFIER, OCTET_STRING, PRINTABLE_STRING, SEQUENCE, SET, T61_STRING, tag, TAGGED, TERMINATOR, UNIVERSAL_STRING, UTC_TIME, UTF8_STRING, value, VIDEOTEX_STRING, VISIBLE_STRING
 
Constructor Summary
DERBoolean(byte[] value)
          Basic DERObject constructor.
 
Method Summary
 boolean isTrue()
          Lazy accessor
static DERBoolean valueOf(boolean value)
          Static factory method, type-conversion operator.
 
Methods inherited from class org.apache.asn1.der.DERObject
encode, equals, getOctets, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

trueArray

private static final byte[] trueArray

falseArray

private static final byte[] falseArray

TRUE

public static final DERBoolean TRUE

FALSE

public static final DERBoolean FALSE
Constructor Detail

DERBoolean

public DERBoolean(byte[] value)
Basic DERObject constructor.

Method Detail

valueOf

public static DERBoolean valueOf(boolean value)
Static factory method, type-conversion operator.


isTrue

public boolean isTrue()
Lazy accessor

Returns:
boolean value


Copyright © 2005-2009 . All Rights Reserved.