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 AttributeStatements.
Author:
Martin Lindström (martin@idsec.se)
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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)
    Validates that all required attributes were received in the AttributeStatement.
    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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • AbstractAttributeStatementValidator

      public AbstractAttributeStatementValidator()
  • Method Details

    • getServicedStatement

      public QName getServicedStatement()
      Specified by:
      getServicedStatement in interface org.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 the AttributeStatement.
      Specified by:
      validate in interface org.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 attributes
      statement - the attribute statement
      assertion - the assertion
      context - the validation context
      Returns:
      validation result