|
||||||||||
| 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.UuidType
public class UuidType
Converts UUIDs to and from their DER encoded format. See RFC 4122.
| Constructor Summary | |
|---|---|
UuidType(DERTag tag,
UUID item)
Creates a new uuid type. |
|
UuidType(UUID item)
Creates a new uuid type. |
|
| Method Summary | |
|---|---|
static UUID |
decode(ByteBuffer encoded)
Converts bytes in the buffer to a uuid by reading from the current position to the limit. |
byte[] |
encode()
Encode this object into it's DER type. |
static byte[] |
toBytes(UUID uuid)
Converts the supplied uuid 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 UuidType(UUID item)
item - to DER encode
public UuidType(DERTag tag,
UUID 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 UUID decode(ByteBuffer encoded)
encoded - buffer containing DER-encoded data where the buffer is
positioned at the start of uuid bytes and the limit is set beyond the last
byte of uuid data.
public static byte[] toBytes(UUID uuid)
uuid - to convert
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||