Class AbstractAttributeStatementValidator
java.lang.Object
se.swedenconnect.opensaml.saml2.assertion.validation.AbstractAttributeStatementValidator
- All Implemented Interfaces:
StatementValidator
public abstract class AbstractAttributeStatementValidator
extends Object
implements StatementValidator
Abstract validator for
AttributeStatement
s.- Author:
- Martin Lindström (martin@idsec.se)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvalidate
(Statement statement, Assertion assertion, ValidationContext context) Validates that all required attributes were received in theAttributeStatement
.protected abstract ValidationResult
validateRequiredAttributes
(List<Attribute> attributes, AttributeStatement statement, Assertion assertion, ValidationContext context) Validates that the attribute statement contains all attributes that we require.
-
Constructor Details
-
AbstractAttributeStatementValidator
public AbstractAttributeStatementValidator()
-
-
Method Details
-
getServicedStatement
- Specified by:
getServicedStatement
in interfaceStatementValidator
-
validate
@Nonnull public ValidationResult validate(@Nonnull Statement statement, @Nonnull Assertion assertion, @Nonnull ValidationContext context) throws AssertionValidationException Validates that all required attributes were received in theAttributeStatement
.- Specified by:
validate
in interfaceStatementValidator
- Throws:
AssertionValidationException
-
validateRequiredAttributes
protected abstract ValidationResult validateRequiredAttributes(List<Attribute> attributes, AttributeStatement statement, Assertion assertion, ValidationContext context) Validates that the attribute statement contains all attributes that we require.- Parameters:
attributes
- the attributesstatement
- the attribute statementassertion
- the assertioncontext
- the validation context- Returns:
- validation result
-