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, String description) Constructs aSaml2Errorusing the provided parameters. -
Method Summary
Modifier and TypeMethodDescriptionstatic Saml2ErrordecryptionError(String description) Construct anSaml2ErrorCodes.DECRYPTION_ERRORerrorfinal StringReturns the error description.final StringReturns the error code.static Saml2ErrorinternalValidationError(String description) Construct anSaml2ErrorCodes.INTERNAL_VALIDATION_ERRORerrorstatic Saml2ErrorinvalidResponse(String description) Construct anSaml2ErrorCodes.INVALID_RESPONSEerrorstatic Saml2ErrormalformedResponseData(String description) Construct anSaml2ErrorCodes.MALFORMED_RESPONSE_DATAerrorstatic Saml2ErrorrelyingPartyRegistrationNotFound(String description) Construct anSaml2ErrorCodes.RELYING_PARTY_REGISTRATION_NOT_FOUNDerrorstatic Saml2ErrorsubjectNotFound(String description) Construct anSaml2ErrorCodes.SUBJECT_NOT_FOUNDerrortoString()
-
Constructor Details
-
Saml2Error
Constructs aSaml2Errorusing the provided parameters.- Parameters:
errorCode- the error codedescription- the error description
-
-
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
Returns the error code.- Returns:
- the error code
-
getDescription
Returns the error description.- Returns:
- the error description
-
toString
-