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

public class UnrecoverableSaml2IdpException extends RuntimeException
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:
  • Constructor Details

    • UnrecoverableSaml2IdpException

      public UnrecoverableSaml2IdpException(UnrecoverableSaml2IdpError error, org.springframework.security.core.Authentication authn)
      Constructor.
      Parameters:
      error - the error
      authn - the current Authentication object - may be null
    • UnrecoverableSaml2IdpException

      public UnrecoverableSaml2IdpException(UnrecoverableSaml2IdpError error, String msg, org.springframework.security.core.Authentication authn)
      Constructor.
      Parameters:
      error - the error
      msg - the message
    • UnrecoverableSaml2IdpException

      public UnrecoverableSaml2IdpException(UnrecoverableSaml2IdpError error, Throwable cause, org.springframework.security.core.Authentication authn)
      Constructor.
      Parameters:
      error - the error
      cause - the cause of the error
    • UnrecoverableSaml2IdpException

      public UnrecoverableSaml2IdpException(UnrecoverableSaml2IdpError error, String msg, Throwable cause, org.springframework.security.core.Authentication authn)
      Constructor.
      Parameters:
      error - the error
      msg - the message
      cause - the cause of the error
  • Method Details

    • getError

      public UnrecoverableSaml2IdpError getError()
      Gets the specific error.
      Returns:
      the error
    • getAuthnRequestId

      public String getAuthnRequestId()
      Gets the ID for the AuthnRequest message that was processed when the error occurred.
      Returns:
      the ID (or null if not available)
    • getSpEntityId

      public String 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)