Class AbstractAttributeStatementValidator
java.lang.Object
se.swedenconnect.opensaml.saml2.assertion.validation.AbstractAttributeStatementValidator
- All Implemented Interfaces:
org.opensaml.saml.saml2.assertion.StatementValidator
public abstract class AbstractAttributeStatementValidator
extends Object
implements org.opensaml.saml.saml2.assertion.StatementValidator
Abstract validator for
AttributeStatement
s.- Author:
- Martin Lindström (martin@idsec.se)
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.opensaml.saml.common.assertion.ValidationResult
validate
(org.opensaml.saml.saml2.core.Statement statement, org.opensaml.saml.saml2.core.Assertion assertion, org.opensaml.saml.common.assertion.ValidationContext context) Validates that all required attributes were received in theAttributeStatement
.protected abstract org.opensaml.saml.common.assertion.ValidationResult
validateRequiredAttributes
(List<org.opensaml.saml.saml2.core.Attribute> attributes, org.opensaml.saml.saml2.core.AttributeStatement statement, org.opensaml.saml.saml2.core.Assertion assertion, org.opensaml.saml.common.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 interfaceorg.opensaml.saml.saml2.assertion.StatementValidator
-
validate
public org.opensaml.saml.common.assertion.ValidationResult validate(org.opensaml.saml.saml2.core.Statement statement, org.opensaml.saml.saml2.core.Assertion assertion, org.opensaml.saml.common.assertion.ValidationContext context) throws org.opensaml.saml.common.assertion.AssertionValidationException Validates that all required attributes were received in theAttributeStatement
.- Specified by:
validate
in interfaceorg.opensaml.saml.saml2.assertion.StatementValidator
- Throws:
org.opensaml.saml.common.assertion.AssertionValidationException
-
validateRequiredAttributes
protected abstract org.opensaml.saml.common.assertion.ValidationResult validateRequiredAttributes(List<org.opensaml.saml.saml2.core.Attribute> attributes, org.opensaml.saml.saml2.core.AttributeStatement statement, org.opensaml.saml.saml2.core.Assertion assertion, org.opensaml.saml.common.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
-