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 aSaml2AuthenticationException
using the provided parameters.Saml2AuthenticationException
(Saml2Error error, String message) Constructs aSaml2AuthenticationException
using the provided parameters.Saml2AuthenticationException
(Saml2Error error, String message, Throwable cause) Constructs aSaml2AuthenticationException
using the provided parameters.Saml2AuthenticationException
(Saml2Error error, Throwable cause) Constructs aSaml2AuthenticationException
using the provided parameters.Deprecated.Saml2AuthenticationException
(Saml2Error error, String message) Deprecated.UseSaml2Error
constructor insteadSaml2AuthenticationException
(Saml2Error error, String message, Throwable cause) Deprecated.UseSaml2Error
constructor insteadSaml2AuthenticationException
(Saml2Error error, Throwable cause) Deprecated.UseSaml2Error
constructor instead -
Method Summary
Modifier and TypeMethodDescriptiongetError()
Deprecated.UsegetSaml2Error()
insteadGet the associatedSaml2Error
toString()
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Constructor Details
-
Saml2AuthenticationException
Constructs aSaml2AuthenticationException
using the provided parameters.- Parameters:
error
- theSAML 2.0 Error
-
Saml2AuthenticationException
Constructs aSaml2AuthenticationException
using the provided parameters.- Parameters:
error
- theSAML 2.0 Error
cause
- the root cause
-
Saml2AuthenticationException
Constructs aSaml2AuthenticationException
using the provided parameters.- Parameters:
error
- theSAML 2.0 Error
message
- the detail message
-
Saml2AuthenticationException
Constructs aSaml2AuthenticationException
using the provided parameters.- Parameters:
error
- theSAML 2.0 Error
message
- the detail messagecause
- the root cause
-
Saml2AuthenticationException
Deprecated.UseSaml2Error
constructor insteadConstructs aSaml2AuthenticationException
using the provided parameters.- Parameters:
error
- theSAML 2.0 Error
-
Saml2AuthenticationException
Deprecated.UseSaml2Error
constructor insteadConstructs aSaml2AuthenticationException
using the provided parameters.- Parameters:
error
- theSAML 2.0 Error
cause
- the root cause
-
Saml2AuthenticationException
Deprecated.UseSaml2Error
constructor insteadConstructs aSaml2AuthenticationException
using the provided parameters.- Parameters:
error
- theSAML 2.0 Error
message
- the detail message
-
Saml2AuthenticationException
Deprecated.UseSaml2Error
constructor insteadConstructs aSaml2AuthenticationException
using the provided parameters.- Parameters:
error
- theSAML 2.0 Error
message
- the detail messagecause
- the root cause
-
-
Method Details
-
getSaml2Error
Get the associatedSaml2Error
- Returns:
- the associated
Saml2Error
-
getError
Deprecated.UsegetSaml2Error()
insteadReturns theSAML 2.0 Error
.- Returns:
- the
Saml2Error
-
toString
-
Saml2Error
constructor instead