Enum Class UnrecoverableSaml2IdpError
java.lang.Object
java.lang.Enum<UnrecoverableSaml2IdpError>
se.swedenconnect.spring.saml.idp.error.UnrecoverableSaml2IdpError
- All Implemented Interfaces:
Serializable
,Comparable<UnrecoverableSaml2IdpError>
,Constable
An enum representing unrecoverable SAML errors, i.e., such errors that can not be signalled back to the SAML SP.
- 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 ConstantDescriptionUsed if destination endpoint information does not match the actual endpoint on which the message was received.Failure to decodeAuthnRequest
.Internal error.The AssertionConsumerService indicated in the AuthnRequest is not registered in the Service Provider metadata.Bad format on AuthnRequest.Validation of signature on authentication request failed.For session related errors.If timestamp checks fails.Error reported if signed authentication requests are required, but a signature is missing from a received authentication request.For replay (attacks) of authentication requests.The sender of anAuthnRequest
message could not be found in SAML metadata. -
Method Summary
Modifier and TypeMethodDescriptionGets the textual representation of the error.Gets the message code representing the error.static UnrecoverableSaml2IdpError
Returns the enum constant of this class with the specified name.static UnrecoverableSaml2IdpError[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INTERNAL
Internal error. -
UNKNOWN_PEER
The sender of anAuthnRequest
message could not be found in SAML metadata. -
REPLAY_DETECTED
For replay (attacks) of authentication requests. -
MESSAGE_TOO_OLD
If timestamp checks fails. -
INVALID_ASSERTION_CONSUMER_SERVICE
The AssertionConsumerService indicated in the AuthnRequest is not registered in the Service Provider metadata. -
MISSING_AUTHNREQUEST_SIGNATURE
Error reported if signed authentication requests are required, but a signature is missing from a received authentication request. -
INVALID_AUTHNREQUEST_SIGNATURE
Validation of signature on authentication request failed. -
INVALID_AUTHNREQUEST_FORMAT
Bad format on AuthnRequest. -
FAILED_DECODE
Failure to decodeAuthnRequest
. -
ENDPOINT_CHECK_FAILURE
Used if destination endpoint information does not match the actual endpoint on which the message was received. -
INVALID_SESSION
For session related errors.
-
-
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
-
getMessageCode
Gets the message code representing the error. This code may be used when mapping to aMessageSource
.- Returns:
- the message code
-
getDescription
Gets the textual representation of the error. May be used in logs.- Returns:
- the textual representation of the error
-