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 Object
implements 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 ValidationException

Specified by:
validate in interface Validator<EncryptionMethod>
Throws:
ValidationException

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


Copyright © 1999-2013. All Rights Reserved.