org.opensaml.saml1.core.validator
Class SubjectSchemaValidator

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

public class SubjectSchemaValidator
extends java.lang.Object
implements Validator<Subject>

Checks Subject for Schema compliance.


Constructor Summary
SubjectSchemaValidator()
           
 
Method Summary
 void validate(Subject subject)
          Checks to see if a XMLObject is valid.
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 ValidationException
Checks to see if a XMLObject is valid.

Specified by:
validate in interface Validator<Subject>
Parameters:
subject - the XMLObject to validate
Throws:
ValidationException - thrown if the element is not valid

validateNameIdentifierSubjectConfirmation

protected void validateNameIdentifierSubjectConfirmation(Subject subject)
                                                  throws ValidationException
Validates that the subject has either a name identifier or subject confirmation

Parameters:
subject - subject to validate
Throws:
ValidationException - thrown if the subject has neither a name identifier or subject confirmation