Class Saml2AuthenticationException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.springframework.security.core.AuthenticationException
org.springframework.security.saml2.provider.service.authentication.Saml2AuthenticationException
All Implemented Interfaces:
Serializable

public class Saml2AuthenticationException extends AuthenticationException
This exception is thrown for all SAML 2.0 related Authentication errors.

There are a number of scenarios where an error may occur, for example:

  • The response or assertion request is missing or malformed
  • Missing or invalid subject
  • Missing or invalid signatures
  • The time period validation for the assertion fails
  • One of the assertion conditions was not met
  • Decryption failed
  • Unable to locate a subject identifier, commonly known as username
Since:
5.2
See Also:
  • Constructor Details

    • Saml2AuthenticationException

      public Saml2AuthenticationException(Saml2Error error)
      Constructs a Saml2AuthenticationException using the provided parameters.
      Parameters:
      error - the SAML 2.0 Error
    • Saml2AuthenticationException

      public Saml2AuthenticationException(Saml2Error error, Throwable cause)
      Constructs a Saml2AuthenticationException using the provided parameters.
      Parameters:
      error - the SAML 2.0 Error
      cause - the root cause
    • Saml2AuthenticationException

      public Saml2AuthenticationException(Saml2Error error, String message)
      Constructs a Saml2AuthenticationException using the provided parameters.
      Parameters:
      error - the SAML 2.0 Error
      message - the detail message
    • Saml2AuthenticationException

      public Saml2AuthenticationException(Saml2Error error, String message, Throwable cause)
      Constructs a Saml2AuthenticationException using the provided parameters.
      Parameters:
      error - the SAML 2.0 Error
      message - the detail message
      cause - the root cause
  • Method Details