Class ValidationSupport
java.lang.Object
se.swedenconnect.opensaml.common.validation.ValidationSupport
Support methods and functions for validator implementations.
- Author:
- Martin Lindström (martin@idsec.se)
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classException class that should be used internally by validators to process errors. -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcheck(ValidationResult result) Checks if the result is VALID.static ValidationResultcheck(ValidationResult result, ValidationResult previous) Checks the result of a validation step that is part of a chain of steps.
-
Method Details
-
check
public static void check(ValidationResult result) throws ValidationSupport.ValidationResultException Checks if the result is VALID. If not aValidationResultExceptionis thrown.- Parameters:
result- the result to check- Throws:
ValidationSupport.ValidationResultException- for non-VALID results
-
check
public static ValidationResult check(ValidationResult result, ValidationResult previous) throws ValidationSupport.ValidationResultException Checks the result of a validation step that is part of a chain of steps. An INVALID result is thrown as aValidationResultException. An INDETERMINATE result does not stop the chain, but is remembered, so that the remaining steps are still run and the chain as a whole is reported as INDETERMINATE.- Parameters:
result- the result of the validation stepprevious- the combined result of the previous steps- Returns:
- the combined result, i.e., VALID or INDETERMINATE
- Throws:
ValidationSupport.ValidationResultException- for INVALID results
-