org.opensaml.xml.encryption.validator
Class CipherDataSchemaValidator

java.lang.Object
  extended by org.opensaml.xml.encryption.validator.CipherDataSchemaValidator
All Implemented Interfaces:
Validator<CipherData>

public class CipherDataSchemaValidator
extends Object
implements Validator<CipherData>

Checks CipherData for Schema compliance.


Constructor Summary
CipherDataSchemaValidator()
           
 
Method Summary
 void validate(CipherData xmlObject)
          Checks to see if a XMLObject is valid.
protected  void validateChildrenPresence(CipherData xmlObject)
          Validate that required children are present.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CipherDataSchemaValidator

public CipherDataSchemaValidator()
Method Detail

validate

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

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

validateChildrenPresence

protected void validateChildrenPresence(CipherData xmlObject)
                                 throws ValidationException
Validate that required children are present.

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


Copyright © 2006-2011 Internet2. All Rights Reserved.