org.opensaml.saml1.core.validator
Class SubjectSchemaValidator

java.lang.Object
  extended by org.opensaml.saml1.core.validator.SubjectSchemaValidator
All Implemented Interfaces:
org.opensaml.xml.validation.Validator<Subject>

public class SubjectSchemaValidator
extends Object
implements org.opensaml.xml.validation.Validator<Subject>

Checks Subject for Schema compliance.


Constructor Summary
SubjectSchemaValidator()
           
 
Method Summary
 void validate(Subject subject)
          
protected  void validateNameIdentifierSubjectConfirmation(Subject subject)
          Validates that the subject has either a name identifier or subject confirmation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SubjectSchemaValidator

public SubjectSchemaValidator()
Method Detail

validate

public void validate(Subject subject)
              throws org.opensaml.xml.validation.ValidationException

Specified by:
validate in interface org.opensaml.xml.validation.Validator<Subject>
Throws:
org.opensaml.xml.validation.ValidationException

validateNameIdentifierSubjectConfirmation

protected void validateNameIdentifierSubjectConfirmation(Subject subject)
                                                  throws org.opensaml.xml.validation.ValidationException
Validates that the subject has either a name identifier or subject confirmation

Parameters:
subject - subject to validate
Throws:
org.opensaml.xml.validation.ValidationException - thrown if the subject has neither a name identifier or subject confirmation


Copyright © 2006-2013 Internet2. All Rights Reserved.