Serializable, Comparable<Identifier>, net.minidev.json.JSONAware@Immutable public final class ClientID extends Identifier
Example of a client identifier created from string:
ClientID clientID = new ClientID("client-12345678");
Related specifications:
DEFAULT_BYTE_LENGTH| Constructor | Description |
|---|---|
ClientID() |
Creates a new client identifier with a randomly generated 256-bit
(32-byte) value, Base64URL-encoded.
|
ClientID(int byteLength) |
Creates a new client identifier with a randomly generated value of
the specified byte length, Base64URL-encoded.
|
ClientID(Identifier value) |
Creates a new client identifier with the specified value.
|
ClientID(String value) |
Creates a new client identifier with the specified value.
|
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
equals(Object object) |
compareTo, getValue, hashCode, toJSONString, toStringpublic ClientID(String value)
value - The client identifier value. Must not be null
or empty string.public ClientID(Identifier value)
value - The value. Must not be null.public ClientID(int byteLength)
byteLength - The byte length of the value to generate. Must be
greater than one.public ClientID()
public boolean equals(Object object)
equals in class IdentifierCopyright © 2018 Connect2id Ltd.. All rights reserved.