Class AuthChallengeRequest
- java.lang.Object
-
- com.inductiveautomation.perspective.gateway.api.AuthChallengeRequest
-
public class AuthChallengeRequest extends java.lang.ObjectImmutable representation of an authentication challenge request
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAuthChallengeRequest.BuilderProvides a fluent-API (builder-style) pattern for creating newAuthChallengeRequestobjectsstatic classAuthChallengeRequest.GsonAdapterAJsonSerializerandJsonDeserializerimplementation for serializing and de-serializingAuthChallengeRequestobjects to / from JSON using GSON APIs.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AuthChallengeRequest.Builderbuilder(AuthChallengeRequest authChallengeRequest)static AuthChallengeRequest.Builderbuilder(java.lang.String client)java.lang.StringgetClient()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.StringtoString()
-
-
-
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
Optionalcontaining 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
Optionalcontaining aBooleanindicating 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
Optionalcontaining 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
Optionalcontaining an opaque payload represented as aJsonElement, or an empty Optional if no payload was set
-
getFramingOption
public java.util.Optional<FramingOption> getFramingOption()
- Returns:
- an
Optionalcontaining theFramingOptionfor this authentication challenge request, or an empty Optional if this property was not specified.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
builder
public static AuthChallengeRequest.Builder builder(java.lang.String client)
- Returns:
- a new
AuthChallengeRequest.Builderinstance
-
builder
public static AuthChallengeRequest.Builder builder(AuthChallengeRequest authChallengeRequest)
- Parameters:
authChallengeRequest- theAuthChallengeRequestwhose properties will be used to initialize the newAuthChallengeRequest.Builderinstance returned from this method- Returns:
- a new
AuthChallengeRequest.Builderinstance with the properties set from the providedAuthChallengeRequest
-
-