Class Saml2LogoutValidatorResult
- java.lang.Object
-
- org.springframework.security.saml2.provider.service.authentication.logout.Saml2LogoutValidatorResult
-
public final class Saml2LogoutValidatorResult extends java.lang.ObjectA result emitted from a SAML 2.0 Logout validation attempt- Since:
- 5.6
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSaml2LogoutValidatorResult.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Collection<Saml2Error>getErrors()Return error details regarding the validation attemptbooleanhasErrors()Say whether this result indicates successstatic Saml2LogoutValidatorResultsuccess()Construct a successfulSaml2LogoutValidatorResultstatic Saml2LogoutValidatorResult.BuilderwithErrors(Saml2Error... errors)Construct aSaml2LogoutValidatorResult.Builder, starting with the givenerrors.
-
-
-
Method Detail
-
hasErrors
public boolean hasErrors()
Say whether this result indicates success- Returns:
- whether this result has errors
-
getErrors
public java.util.Collection<Saml2Error> getErrors()
Return error details regarding the validation attempt- Returns:
- the collection of results in this result, if any; returns an empty list otherwise
-
success
public static Saml2LogoutValidatorResult success()
Construct a successfulSaml2LogoutValidatorResult- Returns:
- an
Saml2LogoutValidatorResultwith no errors
-
withErrors
public static Saml2LogoutValidatorResult.Builder withErrors(Saml2Error... errors)
Construct aSaml2LogoutValidatorResult.Builder, starting with the givenerrors. Note that a result with no errors is considered a success.- Parameters:
errors-- Returns:
-
-