public class OpenIdState extends Object implements Serializable
This is used in the authentication mechanism to both help prevent CSRF and to pass data to the callback page.
| Constructor and Description |
|---|
OpenIdState()
Creates a new instance with a random UUID as the state.
|
OpenIdState(String state)
Creates a new instance set the state to what is in the constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
static Optional<OpenIdState> |
from(String state)
Factory method which creates an
OpenIdState if the
state provided is not NULL or empty. |
String |
getValue()
Gets the state
|
int |
hashCode() |
public OpenIdState()
public OpenIdState(String state)
This can be used so that the callback page knows the originating page,
but is not used by the
OpenIdAuthenticationMechanism by
default
state - the state to encapsulatepublic static Optional<OpenIdState> from(String state)
OpenIdState if the
state provided is not NULL or empty.state - the state to create an OpenIdState fromOpenIdState if the state provided is not NULL or emptypublic String getValue()
Copyright © 2019. All rights reserved.