Enum Class Saml2ErrorStatus

java.lang.Object
java.lang.Enum<Saml2ErrorStatus>
se.swedenconnect.spring.saml.idp.error.Saml2ErrorStatus
All Implemented Interfaces:
Serializable, Comparable<Saml2ErrorStatus>, Constable

public enum Saml2ErrorStatus extends Enum<Saml2ErrorStatus>
An enum representing the different SAML error response messages that are handled in the system.
Author:
Martin Lindström
  • Enum Constant Details

    • AUTHN_FAILED

      public static final Saml2ErrorStatus AUTHN_FAILED
      User authentication failed.
    • CANCEL

      public static final Saml2ErrorStatus CANCEL
      User cancelled authentication.
    • SIGN_MESSAGE

      public static final Saml2ErrorStatus SIGN_MESSAGE
      SignMessage error. If the SignMessage is incorrectly constructed.
    • SIGN_MESSAGE_NOT_DISPLAYED

      public static final Saml2ErrorStatus SIGN_MESSAGE_NOT_DISPLAYED
      The SignMessage could not be displayed.
    • SIGN_MESSAGE_DECRYPT

      public static final Saml2ErrorStatus SIGN_MESSAGE_DECRYPT
      SignMessage error. If the SignMessage is incorrectly constructed.
    • INVALID_AUTHNREQUEST

      public static final Saml2ErrorStatus INVALID_AUTHNREQUEST
      Invalid AuthnRequest.
    • INVALID_NAMEID

      public static final Saml2ErrorStatus INVALID_NAMEID
      Invalid NameID policy given in AuthnRequest.
    • PASSIVE_AUTHN

      public static final Saml2ErrorStatus PASSIVE_AUTHN
      PassiveAuthn could not be applied.
    • NO_AUTHN_CONTEXT

      public static final Saml2ErrorStatus NO_AUTHN_CONTEXT
      Requested authentication context is not supported.
    • UNKNOWN_PRINCIPAL

      public static final Saml2ErrorStatus UNKNOWN_PRINCIPAL
      Unknown principal.
    • ENCRYPT_NOT_POSSIBLE

      public static final Saml2ErrorStatus ENCRYPT_NOT_POSSIBLE
      Missing key descriptor for encryption of assertions.
    • INVALID_USER_MESSAGE

      public static final Saml2ErrorStatus INVALID_USER_MESSAGE
      Invalid UserMessage extension.
  • Method Details

    • values

      public static Saml2ErrorStatus[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static Saml2ErrorStatus valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getStatusCode

      public String getStatusCode()
      Gets the main status code.
      Returns:
      the main status code
    • getSubStatusCode

      public String getSubStatusCode()
      Gets the subordinate status code
      Returns:
      the subordinate status code
    • getStatusMessageCode

      public String getStatusMessageCode()
      Gets the message code to use when resolving the status message against a MessageSource
      Returns:
      the message code
    • getDefaultStatusMessage

      public String getDefaultStatusMessage()
      Gets the status message to use if no text can be resolved using the statusMessageCode ß
      Returns:
      the default status message