org.opensaml.saml2.metadata.validator
Class EncryptionMethodSchemaValidator

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

public class EncryptionMethodSchemaValidator
extends java.lang.Object
implements Validator<EncryptionMethod>

Checks EncryptionMethod for Schema compliance.


Constructor Summary
EncryptionMethodSchemaValidator()
          Constructor.
 
Method Summary
 void validate(EncryptionMethod encMethod)
          Checks to see if a XMLObject is valid.
protected  void validateAlgorithm(EncryptionMethod encMethod)
          Checks that Algorithm URI attribute is present and not empty.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EncryptionMethodSchemaValidator

public EncryptionMethodSchemaValidator()
Constructor.

Method Detail

validate

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

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

validateAlgorithm

protected void validateAlgorithm(EncryptionMethod encMethod)
                          throws ValidationException
Checks that Algorithm URI attribute is present and not empty.

Parameters:
encMethod - the encryption method to validate
Throws:
ValidationException - thrown if Algorithm attribute is missing or empty