org.opensaml.xml.encryption.validator
Class EncryptionMethodSchemaValidator

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

public class EncryptionMethodSchemaValidator
extends Object
implements Validator<EncryptionMethod>

Checks EncryptionMethod for Schema compliance.


Constructor Summary
EncryptionMethodSchemaValidator()
           
 
Method Summary
 void validate(EncryptionMethod xmlObject)
          Checks to see if a XMLObject is valid.
protected  void validateAlgorithm(EncryptionMethod xmlObject)
          Validate the algorithm URI.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EncryptionMethodSchemaValidator

public EncryptionMethodSchemaValidator()
Method Detail

validate

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

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

validateAlgorithm

protected void validateAlgorithm(EncryptionMethod xmlObject)
                          throws ValidationException
Validate the algorithm URI.

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


Copyright © 1999-2013. All Rights Reserved.