Class AuthChallengeRequest
- java.lang.Object
-
- com.inductiveautomation.perspective.gateway.api.AuthChallengeRequest
-
public class AuthChallengeRequest extends java.lang.Object
Immutable representation of an authentication challenge request
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AuthChallengeRequest.Builder
Provides a fluent-API (builder-style) pattern for creating newAuthChallengeRequest
objectsstatic class
AuthChallengeRequest.GsonAdapter
AJsonSerializer
andJsonDeserializer
implementation for serializing and de-serializingAuthChallengeRequest
objects to / from JSON using GSON APIs.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AuthChallengeRequest.Builder
builder(AuthChallengeRequest authChallengeRequest)
static AuthChallengeRequest.Builder
builder(java.lang.String client)
java.lang.String
getClient()
java.util.Optional<java.lang.Boolean>
getForceAuth()
java.util.Optional<FramingOption>
getFramingOption()
java.util.Optional<java.lang.String>
getIdp()
java.util.Optional<com.inductiveautomation.ignition.common.gson.JsonElement>
getPayload()
java.util.Optional<java.lang.Integer>
getTimeout()
java.lang.String
toString()
-
-
-
Method Detail
-
getClient
public java.lang.String getClient()
- Returns:
- the client identifier associated with this auth challenge request
-
getIdp
public java.util.Optional<java.lang.String> getIdp()
- Returns:
- an
Optional
containing the name of the IdP which will handle this auth challenge request, or an empty Optional of no IdP is specified
-
getForceAuth
public java.util.Optional<java.lang.Boolean> getForceAuth()
- Returns:
- an
Optional
containing aBoolean
indicating whether or not the user will be asked to re-enter their credentials at the IdP, even if they are already logged in. Returns an empty Optional if this property is not specified.
-
getTimeout
public java.util.Optional<java.lang.Integer> getTimeout()
- Returns:
- an
Optional
containing the number of minutes the system will wait in between the authentication request and the authentication response before timing out the request. Returns an empty Optional if the timeout is not specified.
-
getPayload
public java.util.Optional<com.inductiveautomation.ignition.common.gson.JsonElement> getPayload()
- Returns:
- an
Optional
containing an opaque payload represented as aJsonElement
, or an empty Optional if no payload was set
-
getFramingOption
public java.util.Optional<FramingOption> getFramingOption()
- Returns:
- an
Optional
containing theFramingOption
for this authentication challenge request, or an empty Optional if this property was not specified.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
builder
public static AuthChallengeRequest.Builder builder(java.lang.String client)
- Returns:
- a new
AuthChallengeRequest.Builder
instance
-
builder
public static AuthChallengeRequest.Builder builder(AuthChallengeRequest authChallengeRequest)
- Parameters:
authChallengeRequest
- theAuthChallengeRequest
whose properties will be used to initialize the newAuthChallengeRequest.Builder
instance returned from this method- Returns:
- a new
AuthChallengeRequest.Builder
instance with the properties set from the providedAuthChallengeRequest
-
-