org.opensaml.saml2.metadata.validator
Class EncryptionMethodSchemaValidator

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

public class EncryptionMethodSchemaValidator
extends Object
implements org.opensaml.xml.validation.Validator<EncryptionMethod>

Checks EncryptionMethod for Schema compliance.


Constructor Summary
EncryptionMethodSchemaValidator()
          Constructor.
 
Method Summary
 void validate(EncryptionMethod encMethod)
          
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 org.opensaml.xml.validation.ValidationException

Specified by:
validate in interface org.opensaml.xml.validation.Validator<EncryptionMethod>
Throws:
org.opensaml.xml.validation.ValidationException

validateAlgorithm

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

Parameters:
encMethod - the encryption method to validate
Throws:
org.opensaml.xml.validation.ValidationException - thrown if Algorithm attribute is missing or empty


Copyright © 2006-2010 Internet2. All Rights Reserved.