Class AbstractAttributeStatementValidator
- java.lang.Object
-
- se.litsec.opensaml.saml2.common.assertion.AbstractAttributeStatementValidator
-
- All Implemented Interfaces:
StatementValidator
public abstract class AbstractAttributeStatementValidator extends Object implements StatementValidator
Abstract validator forAttributeStatements.- Author:
- Martin Lindström (martin.lindstrom@litsec.se)
-
-
Constructor Summary
Constructors Constructor Description AbstractAttributeStatementValidator()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description QNamegetServicedStatement()ValidationResultvalidate(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.
-
-
-
Method Detail
-
getServicedStatement
public QName getServicedStatement()
- Specified by:
getServicedStatementin interfaceStatementValidator
-
validate
public ValidationResult validate(Statement statement, Assertion assertion, ValidationContext context) throws AssertionValidationException
Validates that all required attributes were received in theAttributeStatement.- Specified by:
validatein 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
-
-