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.Object
Builder forWebAuthState
instances
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WebAuthState
build()
Build theWebAuthState
long
getExp()
java.lang.String
getState()
WebAuthState.Builder
put(java.lang.String key, java.lang.Object value)
Add a state param
-
-
-
Method Detail
-
getState
@Nonnull public java.lang.String 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
@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
-
-