org.opensaml.saml2.metadata.validator
Class EncryptionMethodSchemaValidator
java.lang.Object
org.opensaml.saml2.metadata.validator.EncryptionMethodSchemaValidator
- All Implemented Interfaces:
- Validator<EncryptionMethod>
public class EncryptionMethodSchemaValidator
- extends Object
- implements Validator<EncryptionMethod>
Checks EncryptionMethod
for Schema compliance.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EncryptionMethodSchemaValidator
public EncryptionMethodSchemaValidator()
- Constructor.
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.