org.opensaml.xml.signature.validator
Class SPKIDataSchemaValidator

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

public class SPKIDataSchemaValidator
extends Object
implements Validator<SPKIData>

Checks SPKIData for Schema compliance.


Constructor Summary
SPKIDataSchemaValidator()
           
 
Method Summary
 void validate(SPKIData xmlObject)
          Checks to see if a XMLObject is valid.
protected  void validateChildrenNamespaces(SPKIData xmlObject)
          Validate that all children are either ones defined within the XML Signature schema, or are from another namespace.
protected  void validateChildrenPresence(SPKIData xmlObject)
          Validate that at least SPKISexp child is present.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SPKIDataSchemaValidator

public SPKIDataSchemaValidator()
Method Detail

validate

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

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

validateChildrenPresence

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

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

validateChildrenNamespaces

protected void validateChildrenNamespaces(SPKIData 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 © 1999-2013. All Rights Reserved.