@Immutable public final class State extends Identifier
DEFAULT_BYTE_LENGTH| Constructor and Description |
|---|
State()
Creates a new state with a randomly generated 256-bit (32-byte)
value, Base64URL-encoded.
|
State(int byteLength)
Creates a new state with a randomly generated value of the specified
byte length, Base64URL-encoded.
|
State(java.lang.String value)
Creates a new state with the specified value.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object object)
Overrides
Object.equals(). |
static State |
parse(java.lang.String s)
Parses a state from the specified string.
|
compareTo, getValue, hashCode, toJSONString, toStringpublic State(java.lang.String value)
value - The state value. Must not be null or empty
string.public State(int byteLength)
byteLength - The byte length of the value to generate. Must be
greater than one.public State()
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.