Class WebAuthState.Builder
- java.lang.Object
-
- com.inductiveautomation.ignition.gateway.auth.web.state.WebAuthState.Builder
-
- Enclosing class:
- WebAuthState
public static class WebAuthState.Builder extends java.lang.ObjectBuilder forWebAuthStateinstances
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WebAuthStatebuild()Build theWebAuthStatejava.lang.StringgetApp()longgetExp()java.lang.StringgetState()WebAuthState.Builderput(java.lang.String key, java.lang.Object value)Add a state param
-
-
-
Method Detail
-
getApp
public java.lang.String getApp()
- Returns:
- the name of the app the user is logging into / logging out of
-
getState
@Nonnull public java.lang.String getState()
- Returns:
- the randomly generated state value
-
getExp
public long getExp()
- Returns:
- when the
WebAuthStatebuilt by thisWebAuthState.Builderwill expire. represented as the number of seconds from the Java epoch of 1970-01-01T00:00:00Z
-
put
@Nonnull public WebAuthState.Builder put(@Nonnull java.lang.String key, @Nonnull java.lang.Object value)
Add a state param- Parameters:
key- the state param keyvalue- the state param value- Returns:
- this builder
-
build
@Nonnull public WebAuthState build()
Build theWebAuthState- Returns:
- the new
WebAuthState - Throws:
java.lang.IllegalArgumentException- if the state or exp are null
-
-