|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ldaptive.asn1.AbstractDERType
org.ldaptive.asn1.BooleanType
public class BooleanType
Converts booleans to and from their DER encoded format.
| Constructor Summary | |
|---|---|
BooleanType(boolean item)
Creates a new boolean type. |
|
BooleanType(DERTag tag,
boolean item)
Creates a new boolean type. |
|
| Method Summary | |
|---|---|
static boolean |
decode(ByteBuffer encoded)
Converts bytes in the buffer to a boolean by reading from the current position to the limit. |
byte[] |
encode()
Encode this object into it's DER type. |
static byte[] |
toBytes(boolean b)
Converts the supplied boolean to a byte array. |
| Methods inherited from class org.ldaptive.asn1.AbstractDERType |
|---|
encode, readBuffer |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BooleanType(boolean item)
item - to DER encode
public BooleanType(DERTag tag,
boolean item)
tag - der tag associated with this typeitem - to DER encode
IllegalArgumentException - if the der tag is constructed| Method Detail |
|---|
public byte[] encode()
encode in interface DEREncoderpublic static boolean decode(ByteBuffer encoded)
encoded - buffer containing DER-encoded data where the buffer is
positioned at the start of boolean bytes and the limit is set beyond the
last byte of integer data.
public static byte[] toBytes(boolean b)
b - to convert
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||