Class AuthChallengeRequest.Builder

  • Enclosing class:
    AuthChallengeRequest

    public static class AuthChallengeRequest.Builder
    extends java.lang.Object
    Provides a fluent-API (builder-style) pattern for creating new AuthChallengeRequest objects
    • Method Detail

      • setIdp

        public AuthChallengeRequest.Builder setIdp​(@Nullable
                                                   java.lang.String idp)
        Parameters:
        idp - the name of the IdP which should handle the authentication challenge request. set to null to use the project default IdP. defaults to null if not set.
        Returns:
        this AuthChallengeRequest.Builder
      • setForceAuth

        public AuthChallengeRequest.Builder setForceAuth​(@Nullable
                                                         java.lang.Boolean forceAuth)
        Parameters:
        forceAuth - whether the user should be required to re-enter their credentials at the IdP, even if they are already logged in. set to null to use the project default setting. defaults to null if not set.
        Returns:
        this AuthChallengeRequest.Builder
      • setTimeout

        public AuthChallengeRequest.Builder setTimeout​(@Nullable
                                                       java.lang.Integer timeout)
        Parameters:
        timeout - the number of minutes the system will wait in between the authentication request and the authentication response before timing out the request. set to null to use the default value of two minutes. defaults to null if not set.
        Returns:
        this AuthChallengeRequest.Builder
      • setPayload

        public AuthChallengeRequest.Builder setPayload​(@Nullable
                                                       com.inductiveautomation.ignition.common.gson.JsonElement payload)
        Parameters:
        payload - the opaque payload represented as a JsonElement. may be set to null if no payload is necessary. defaults to null if not set.
        Returns:
        this AuthChallengeRequest.Builder