Class UnrecoverableSaml2IdpException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
se.swedenconnect.spring.saml.idp.error.UnrecoverableSaml2IdpException
- All Implemented Interfaces:
Serializable
Base class for unrecoverable SAML errors, i.e., such errors that can not be signalled back to the SAML SP.
- Author:
- Martin Lindström
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
DummyAuthentication
class that can be used if noAuthentication
object is available but the AuthnRequest ID and SP entityID are known. -
Constructor Summary
ConstructorDescriptionUnrecoverableSaml2IdpException
(UnrecoverableSaml2IdpError error, String msg, Throwable cause, org.springframework.security.core.Authentication authn) Constructor.UnrecoverableSaml2IdpException
(UnrecoverableSaml2IdpError error, String msg, org.springframework.security.core.Authentication authn) Constructor.UnrecoverableSaml2IdpException
(UnrecoverableSaml2IdpError error, Throwable cause, org.springframework.security.core.Authentication authn) Constructor.UnrecoverableSaml2IdpException
(UnrecoverableSaml2IdpError error, org.springframework.security.core.Authentication authn) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionGets the ID for theAuthnRequest
message that was processed when the error occurred.getError()
Gets the specific error.Gets the SAML entityID for the Service Provider that sent the request that was processed when the error occurred.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
UnrecoverableSaml2IdpException
public UnrecoverableSaml2IdpException(UnrecoverableSaml2IdpError error, org.springframework.security.core.Authentication authn) Constructor.- Parameters:
error
- the errorauthn
- the currentAuthentication
object - may benull
-
UnrecoverableSaml2IdpException
public UnrecoverableSaml2IdpException(UnrecoverableSaml2IdpError error, String msg, org.springframework.security.core.Authentication authn) Constructor.- Parameters:
error
- the errormsg
- the message
-
UnrecoverableSaml2IdpException
public UnrecoverableSaml2IdpException(UnrecoverableSaml2IdpError error, Throwable cause, org.springframework.security.core.Authentication authn) Constructor.- Parameters:
error
- the errorcause
- the cause of the error
-
UnrecoverableSaml2IdpException
public UnrecoverableSaml2IdpException(UnrecoverableSaml2IdpError error, String msg, Throwable cause, org.springframework.security.core.Authentication authn) Constructor.- Parameters:
error
- the errormsg
- the messagecause
- the cause of the error
-
-
Method Details
-
getError
Gets the specific error.- Returns:
- the error
-
getAuthnRequestId
Gets the ID for theAuthnRequest
message that was processed when the error occurred.- Returns:
- the ID (or
null
if not available)
-
getSpEntityId
Gets the SAML entityID for the Service Provider that sent the request that was processed when the error occurred.- Returns:
- the entityID (or
null
if not available)
-