Class Saml2ResponseValidatorResult
java.lang.Object
org.springframework.security.saml2.core.Saml2ResponseValidatorResult
A result emitted from a SAML 2.0 Response validation attempt
- Since:
- 5.4
-
Method Summary
Modifier and TypeMethodDescriptionconcat(Saml2Error error) Return a newSaml2ResponseValidatorResultthat contains both the givenSaml2Errorand the errors from the resultconcat(Saml2ResponseValidatorResult result) Return a newSaml2ResponseValidatorResultthat contains the errors from the givenSaml2ResponseValidatorResultas well as this result.static Saml2ResponseValidatorResultfailure(Collection<Saml2Error> errors) Construct a failureSaml2ResponseValidatorResultwith the provided detailstatic Saml2ResponseValidatorResultfailure(Saml2Error... errors) Construct a failureSaml2ResponseValidatorResultwith the provided detailReturn error details regarding the validation attemptbooleanSay whether this result indicates successstatic Saml2ResponseValidatorResultsuccess()Construct a successfulSaml2ResponseValidatorResult
-
Method Details
-
hasErrors
public boolean hasErrors()Say whether this result indicates success- Returns:
- whether this result has errors
-
getErrors
Return error details regarding the validation attempt- Returns:
- the collection of results in this result, if any; returns an empty list otherwise
-
concat
Return a newSaml2ResponseValidatorResultthat contains both the givenSaml2Errorand the errors from the result- Parameters:
error- theSaml2Errorto append- Returns:
- a new
Saml2ResponseValidatorResultfor further reporting
-
concat
Return a newSaml2ResponseValidatorResultthat contains the errors from the givenSaml2ResponseValidatorResultas well as this result.- Parameters:
result- theSaml2ResponseValidatorResultto merge with this one- Returns:
- a new
Saml2ResponseValidatorResultfor further reporting
-
success
Construct a successfulSaml2ResponseValidatorResult- Returns:
- an
Saml2ResponseValidatorResultwith no errors
-
failure
Construct a failureSaml2ResponseValidatorResultwith the provided detail- Parameters:
errors- the list of errors- Returns:
- an
Saml2ResponseValidatorResultwith the errors specified
-
failure
Construct a failureSaml2ResponseValidatorResultwith the provided detail- Parameters:
errors- the list of errors- Returns:
- an
Saml2ResponseValidatorResultwith the errors specified
-