Class AuthenticationRequestOptions

java.lang.Object
net.shibboleth.idp.authn.duo.AuthenticationRequestOptions

@NotThreadSafe public class AuthenticationRequestOptions extends Object
The set of authentication request options to supply to the Duo OpenID Provider.
Since:
2.4.0
  • Field Details

    • username

      @Nullable private String username
      Username being authenticated.
    • state

      @Nullable private String state
      OIDC state parameter.
    • nonce

      @Nullable private String nonce
      OIDC nonce parameter.
    • prompt

      @Nullable private String prompt
      OIDC prompt parameter.
    • maxAge

      @Nullable private Duration maxAge
      OIDC max_age parameter in seconds. Is an Integer value in Duo.
    • redirectURIOverride

      @Nullable private String redirectURIOverride
      Optional redirect URI override to use.
  • Constructor Details

    • AuthenticationRequestOptions

      public AuthenticationRequestOptions()
  • Method Details

    • getUsername

      @Nullable public String getUsername()
      Get the username.
      Returns:
      username
    • setUsername

      public AuthenticationRequestOptions setUsername(@Nullable String value)
      Set the username.
      Parameters:
      value - username
      Returns:
      this options
    • getState

      @Nullable public String getState()
      Get the state.
      Returns:
      state
    • setState

      @Nonnull public AuthenticationRequestOptions setState(@Nullable String value)
      Set the state.
      Parameters:
      value - state
      Returns:
      this options
    • getNonce

      @Nullable public String getNonce()
      Get the nonce.
      Returns:
      nonce
    • setNonce

      @Nonnull public AuthenticationRequestOptions setNonce(@Nullable String value)
      Set the nonce.
      Parameters:
      value - nonce
      Returns:
      this options
    • getPrompt

      @Nullable public String getPrompt()
      Get the prompt parameter.
      Returns:
      prompt
    • setPrompt

      @Nonnull public AuthenticationRequestOptions setPrompt(@Nullable String value)
      Set the prompt parameter.
      Parameters:
      value - prompt
      Returns:
      this options
    • getMaxAge

      @Nullable public Duration getMaxAge()
      Get the maximum authentication age in seconds.
      Returns:
      max_age
    • setMaxAge

      @Nonnull public AuthenticationRequestOptions setMaxAge(@Nullable Duration value)
      Set the maximum authentication age in seconds.
      Parameters:
      value - max_age
      Returns:
      this options
    • getRedirectURIOverride

      @Nullable public String getRedirectURIOverride()
      Get the override redirect URI.
      Returns:
      the override redirect URI.
    • setRedirectURIOverride

      @Nonnull public AuthenticationRequestOptions setRedirectURIOverride(@Nullable String override)
      Set the override redirect URI.
      Parameters:
      override - the override redirect URI.
      Returns:
      this options.
    • toString

      public String toString()
      Overrides:
      toString in class Object