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
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 Summary
ConstructorsConstructorDescriptionConstructs aSaml2AuthenticationExceptionusing the provided parameters.Saml2AuthenticationException(Saml2Error error, String message) Constructs aSaml2AuthenticationExceptionusing the provided parameters.Saml2AuthenticationException(Saml2Error error, String message, Throwable cause) Constructs aSaml2AuthenticationExceptionusing the provided parameters.Saml2AuthenticationException(Saml2Error error, Throwable cause) Constructs aSaml2AuthenticationExceptionusing the provided parameters. -
Method Summary
Methods inherited from class org.springframework.security.core.AuthenticationException
getAuthenticationRequest, setAuthenticationRequestMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Constructor Details
-
Saml2AuthenticationException
Constructs aSaml2AuthenticationExceptionusing the provided parameters.- Parameters:
error- theSAML 2.0 Error
-
Saml2AuthenticationException
Constructs aSaml2AuthenticationExceptionusing the provided parameters.- Parameters:
error- theSAML 2.0 Errorcause- the root cause
-
Saml2AuthenticationException
Constructs aSaml2AuthenticationExceptionusing the provided parameters.- Parameters:
error- theSAML 2.0 Errormessage- the detail message
-
Saml2AuthenticationException
Constructs aSaml2AuthenticationExceptionusing the provided parameters.- Parameters:
error- theSAML 2.0 Errormessage- the detail messagecause- the root cause
-
-
Method Details
-
getSaml2Error
Get the associatedSaml2Error- Returns:
- the associated
Saml2Error
-
toString
-