Serializable, Comparable<Identifier>, net.minidev.json.JSONAware@Immutable public final class State extends Identifier
DEFAULT_BYTE_LENGTH| Constructor | 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(String value) |
Creates a new state with the specified value.
|
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
equals(Object object) |
|
static State |
parse(String s) |
Parses a state from the specified string.
|
compareTo, getValue, hashCode, toJSONString, toStringpublic State(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(Object object)
equals in class IdentifierCopyright © 2018 Connect2id Ltd.. All rights reserved.