org.opensaml.saml2.core.validator
Class AttributeQuerySchemaValidator

java.lang.Object
  extended by org.opensaml.saml2.core.validator.RequestAbstractTypeSchemaValidator<SubjectQueryType>
      extended by org.opensaml.saml2.core.validator.SubjectQuerySchemaValidator<AttributeQuery>
          extended by org.opensaml.saml2.core.validator.AttributeQuerySchemaValidator
All Implemented Interfaces:
Validator<AttributeQuery>

public class AttributeQuerySchemaValidator
extends SubjectQuerySchemaValidator<AttributeQuery>

Checks AttributeQuery for Schema compliance.


Constructor Summary
AttributeQuerySchemaValidator()
          Constructor.
 
Method Summary
 void validate(AttributeQuery query)
          
protected  void validateUniqueAttributeIdentifiers(AttributeQuery query)
          Checks that all the attributes have a unique Name/NameFormat pair.
 
Methods inherited from class org.opensaml.saml2.core.validator.SubjectQuerySchemaValidator
validateSubject
 
Methods inherited from class org.opensaml.saml2.core.validator.RequestAbstractTypeSchemaValidator
validateID, validateIssueInstant, validateVersion
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttributeQuerySchemaValidator

public AttributeQuerySchemaValidator()
Constructor.

Method Detail

validate

public void validate(AttributeQuery query)
              throws ValidationException

Specified by:
validate in interface Validator<AttributeQuery>
Overrides:
validate in class SubjectQuerySchemaValidator<AttributeQuery>
Throws:
ValidationException

validateUniqueAttributeIdentifiers

protected void validateUniqueAttributeIdentifiers(AttributeQuery query)
                                           throws ValidationException
Checks that all the attributes have a unique Name/NameFormat pair.

Parameters:
query - the attribute query to validate
Throws:
ValidationException - thrown if more than on Name/NameFormat pair is found in the list of attributes in this query


Copyright © 1999-2013. All Rights Reserved.