Enum Class Saml2ErrorStatus
- All Implemented Interfaces:
Serializable
,Comparable<Saml2ErrorStatus>
,Constable
An enum representing the different SAML error response messages that are handled in the system.
- Author:
- Martin Lindström
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionUser authentication failed.User cancelled authentication.Missing key descriptor for encryption of assertions.Invalid AuthnRequest.Invalid NameID policy given in AuthnRequest.Invalid UserMessage extension.Requested authentication context is not supported.SP is not allowed by to IdP policy.PassiveAuthn could not be applied.SignMessage error.SignMessage error.The SignMessage could not be displayed.Unknown principal. -
Method Summary
Modifier and TypeMethodDescriptionGets the status message to use if no text can be resolved using thestatusMessageCode
ßGets the main status code.Gets the message code to use when resolving the status message against aMessageSource
Gets the subordinate status codestatic Saml2ErrorStatus
Returns the enum constant of this class with the specified name.static Saml2ErrorStatus[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
AUTHN_FAILED
User authentication failed. -
CANCEL
User cancelled authentication. -
SIGN_MESSAGE
SignMessage error. If theSignMessage
is incorrectly constructed. -
SIGN_MESSAGE_NOT_DISPLAYED
The SignMessage could not be displayed. -
SIGN_MESSAGE_DECRYPT
SignMessage error. If theSignMessage
is incorrectly constructed. -
INVALID_AUTHNREQUEST
Invalid AuthnRequest. -
INVALID_NAMEID
Invalid NameID policy given in AuthnRequest. -
PASSIVE_AUTHN
PassiveAuthn could not be applied. -
NO_AUTHN_CONTEXT
Requested authentication context is not supported. -
UNKNOWN_PRINCIPAL
Unknown principal. -
ENCRYPT_NOT_POSSIBLE
Missing key descriptor for encryption of assertions. -
INVALID_USER_MESSAGE
Invalid UserMessage extension. -
NOT_AUTHORIZED
SP is not allowed by to IdP policy.
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-
getStatusCode
Gets the main status code.- Returns:
- the main status code
-
getSubStatusCode
Gets the subordinate status code- Returns:
- the subordinate status code
-
getStatusMessageCode
Gets the message code to use when resolving the status message against aMessageSource
- Returns:
- the message code
-
getDefaultStatusMessage
Gets the status message to use if no text can be resolved using thestatusMessageCode
ß- Returns:
- the default status message
-