Class AuthenticationRequiredException

All Implemented Interfaces:
Serializable

public final class AuthenticationRequiredException extends CredentialUnavailableException
The exception thrown to indicate that interactive authentication is required.
See Also:
  • Constructor Details

    • AuthenticationRequiredException

      public AuthenticationRequiredException(String message, TokenRequestContext request)
      Initializes a new instance of the AuthenticationRequiredException class.
      Parameters:
      message - The exception message.
      request - The details of the authentication request.
    • AuthenticationRequiredException

      public AuthenticationRequiredException(String message, TokenRequestContext request, Throwable cause)
      Initializes a new instance of the AuthenticationRequiredException class.
      Parameters:
      message - The exception message.
      request - The details of the authentication request.
      cause - The Throwable which caused the creation of this exception.
  • Method Details

    • getTokenRequestContext

      public TokenRequestContext getTokenRequestContext()
      Get the details of the authentication request which resulted in the authentication failure.
      Returns:
      the token request context.