org.opensaml.xml.signature.validator
Class X509DataSchemaValidator

java.lang.Object
  extended by org.opensaml.xml.signature.validator.X509DataSchemaValidator
All Implemented Interfaces:
Validator<X509Data>

public class X509DataSchemaValidator
extends java.lang.Object
implements Validator<X509Data>

Checks X509Data for Schema compliance.


Constructor Summary
X509DataSchemaValidator()
           
 
Method Summary
protected static java.util.Set<javax.xml.namespace.QName> getValidDSChildNames()
          Get the QNames corresponding to the valid children defined in the XML Signature namespace.
 void validate(X509Data xmlObject)
          Checks to see if a XMLObject is valid.
protected  void validateChildrenNamespaces(X509Data xmlObject)
          Validate that all children are either ones defined within the XML Signature schema, or are from another namespace.
protected  void validateChildrenPresence(X509Data xmlObject)
          Validate that at least child is present.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

X509DataSchemaValidator

public X509DataSchemaValidator()
Method Detail

validate

public void validate(X509Data xmlObject)
              throws ValidationException
Checks to see if a XMLObject is valid.

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

getValidDSChildNames

protected static java.util.Set<javax.xml.namespace.QName> getValidDSChildNames()
Get the QNames corresponding to the valid children defined in the XML Signature namespace.

Returns:
list of valid child QNames

validateChildrenPresence

protected void validateChildrenPresence(X509Data xmlObject)
                                 throws ValidationException
Validate that at least child is present.

Parameters:
xmlObject - the object to validate
Throws:
ValidationException - thrown if the object is invalid

validateChildrenNamespaces

protected void validateChildrenNamespaces(X509Data xmlObject)
                                   throws ValidationException
Validate that all children are either ones defined within the XML Signature schema, or are from another namespace.

Parameters:
xmlObject - the object to validate
Throws:
ValidationException - thrown if the object is invalid


Copyright © 2006-2010 Internet2. All Rights Reserved.