Class WebAuthState.Builder
java.lang.Object
com.inductiveautomation.ignition.gateway.auth.web.state.WebAuthState.Builder
- Enclosing class:
- WebAuthState
Builder for
WebAuthState
instances-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build theWebAuthState
getApp()
long
getExp()
getState()
boolean
Add a state param
-
Method Details
-
getApp
- Returns:
- the name of the app the user is logging into / logging out of
-
isSessionless
public boolean isSessionless()- Returns:
- whether the IdP should use sessionless mode
-
getState
- Returns:
- the randomly generated state value
-
getExp
public long getExp()- Returns:
- when the
WebAuthState
built by thisWebAuthState.Builder
will expire. represented as the number of seconds from the Java epoch of 1970-01-01T00:00:00Z
-
put
Add a state param- Parameters:
key
- the state param keyvalue
- the state param value- Returns:
- this builder
-
build
Build theWebAuthState
- Returns:
- the new
WebAuthState
- Throws:
IllegalArgumentException
- if the state or exp are null
-