@SessionScoped public class OAuth2State 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 |
|---|
OAuth2State()
Creates a new instance with a random UUID as the state.
|
OAuth2State(String state)
Creates a new instance set the state to what is in the constructor.
|
public OAuth2State()
public OAuth2State(String state)
This can be used so that the callback page knows the originating page,
but is not used by the OAuth2AuthenticationMechanism by default
state - public String getState()
Copyright © 2019. All rights reserved.