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 
AttributeStatements.- Author:
- Martin Lindström (martin@idsec.se)
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvalidate(Statement statement, Assertion assertion, ValidationContext context) Validates that all required attributes were received in theAttributeStatement.protected abstract ValidationResultvalidateRequiredAttributes(List<Attribute> attributes, AttributeStatement statement, Assertion assertion, ValidationContext context) Validates that the attribute statement contains all attributes that we require.
- 
Constructor Details- 
AbstractAttributeStatementValidatorpublic AbstractAttributeStatementValidator()
 
- 
- 
Method Details- 
getServicedStatement- Specified by:
- getServicedStatementin interface- StatementValidator
 
- 
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:
- validatein interface- StatementValidator
- Throws:
- AssertionValidationException
 
- 
validateRequiredAttributesprotected 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 attributes
- statement- the attribute statement
- assertion- the assertion
- context- the validation context
- Returns:
- validation result
 
 
-