@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 and 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(java.lang.String value)
Creates a new client identifier with the specified value.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object object)
Overrides
Object.equals(). |
compareTo, getValue, hashCode, toJSONString, toStringpublic ClientID(java.lang.String value)
value - The client identifier value. Must not be null
or empty string.public ClientID(int byteLength)
byteLength - The byte length of the value to generate. Must be
greater than one.public ClientID()
public boolean equals(java.lang.Object object)
IdentifierObject.equals().equals in class Identifierobject - The object to compare to.true if the objects have the same value, otherwise
false.Copyright © 2014 Connect2id Ltd.. All Rights Reserved.