Class WebAuthState
java.lang.Object
com.inductiveautomation.ignition.gateway.auth.web.state.WebAuthState
Wraps state which will carry over from the initial federation request to the federation response. Includes a
 random state String, an expiration time for the state, and a map of state params.
- 
Nested Class SummaryNested Classes
- 
Method SummaryModifier and TypeMethodDescriptionstatic WebAuthState.BuilderFactory method for creating newWebAuthState.Builderinstancesstatic WebAuthState.BuilderFactory method for creating newWebAuthState.Builderinstanceslongexp()<T> Optional<T>Fetch a state paramstate()
- 
Method Details- 
state- Returns:
- the random state string
 
- 
exppublic long exp()- Returns:
- return the expiration time of this state in millis since the unix epoch
 
- 
getFetch a state param- Parameters:
- key- the desired state param key
- clazz- the type of the state param value
- Returns:
- an Optionalcontaining the state param value associated with the given key or an empty Optional if no param exists for the given key
- Throws:
- ClassCastException- if the param value cannot be cast to the type of the given class
- See Also:
 
- 
builder@Nonnull public static WebAuthState.Builder builder(@Nonnull String app, @Nullable URI errorRedirectUri) Factory method for creating newWebAuthState.Builderinstances- Parameters:
- app- the name of the app the user is logging into / logging out of
- errorRedirectUri- an optional- URIto redirect the user if there is an error handling the web auth response. a value of null means there is no error redirect- URIset.
- Returns:
- a new WebAuthState.Builder
 
- 
builder@Nonnull public static WebAuthState.Builder builder(@Nonnull String app, @Nullable Boolean sessionless, @Nullable URI errorRedirectUri) Factory method for creating newWebAuthState.Builderinstances- Parameters:
- app- the name of the app the user is logging into / logging out of
- sessionless- whether the IdP should use sessionless mode
- errorRedirectUri- an optional- URIto redirect the user if there is an error handling the web auth response. a value of null means there is no error redirect- URIset.
- Returns:
- a new WebAuthState.Builder
 
 
-