@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(String value)
Creates a new state with the specified value.
|
public 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 Identifier
Copyright © 2016 Connect2id Ltd.. All Rights Reserved.