Class Saml2Error
java.lang.Object
org.springframework.security.saml2.core.Saml2Error
- All Implemented Interfaces:
Serializable
A representation of an SAML 2.0 Error.
At a minimum, an error response will contain an error code. The commonly used error code are defined in this class or a new codes can be defined in the future as arbitrary strings.
- Since:
- 5.2
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionSaml2Error(String errorCode, @Nullable String description) Constructs aSaml2Errorusing the provided parameters. -
Method Summary
Modifier and TypeMethodDescriptionstatic Saml2ErrordecryptionError(@Nullable String description) Construct anSaml2ErrorCodes.DECRYPTION_ERRORerrorfinal @Nullable StringReturns the error description.final StringReturns the error code.static Saml2ErrorinternalValidationError(@Nullable String description) Construct anSaml2ErrorCodes.INTERNAL_VALIDATION_ERRORerrorstatic Saml2ErrorinvalidResponse(@Nullable String description) Construct anSaml2ErrorCodes.INVALID_RESPONSEerrorstatic Saml2ErrormalformedResponseData(@Nullable String description) Construct anSaml2ErrorCodes.MALFORMED_RESPONSE_DATAerrorstatic Saml2ErrorrelyingPartyRegistrationNotFound(@Nullable String description) Construct anSaml2ErrorCodes.RELYING_PARTY_REGISTRATION_NOT_FOUNDerrorstatic Saml2ErrorsubjectNotFound(@Nullable String description) Construct anSaml2ErrorCodes.SUBJECT_NOT_FOUNDerrortoString()
-
Constructor Details
-
Saml2Error
-
-
Method Details
-
invalidResponse
Construct anSaml2ErrorCodes.INVALID_RESPONSEerror- Parameters:
description- the error description- Returns:
- the resulting
Saml2Error - Since:
- 7.0
-
internalValidationError
Construct anSaml2ErrorCodes.INTERNAL_VALIDATION_ERRORerror- Parameters:
description- the error description- Returns:
- the resulting
Saml2Error - Since:
- 7.0
-
malformedResponseData
Construct anSaml2ErrorCodes.MALFORMED_RESPONSE_DATAerror- Parameters:
description- the error description- Returns:
- the resulting
Saml2Error - Since:
- 7.0
-
decryptionError
Construct anSaml2ErrorCodes.DECRYPTION_ERRORerror- Parameters:
description- the error description- Returns:
- the resulting
Saml2Error - Since:
- 7.0
-
relyingPartyRegistrationNotFound
Construct anSaml2ErrorCodes.RELYING_PARTY_REGISTRATION_NOT_FOUNDerror- Parameters:
description- the error description- Returns:
- the resulting
Saml2Error - Since:
- 7.0
-
subjectNotFound
Construct anSaml2ErrorCodes.SUBJECT_NOT_FOUNDerror- Parameters:
description- the error description- Returns:
- the resulting
Saml2Error - Since:
- 7.0
-
getErrorCode
-
getDescription
Returns the error description.- Returns:
- the error description
-
toString
-