org.opensaml.saml2.metadata.validator
Class KeyDescriptorSchemaValidator

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

public class KeyDescriptorSchemaValidator
extends Object
implements Validator<KeyDescriptor>

Checks KeyDescriptor for Schema compliance.


Constructor Summary
KeyDescriptorSchemaValidator()
          Constructor.
 
Method Summary
 void validate(KeyDescriptor keyDescriptor)
          
protected  void validateKeyInfo(KeyDescriptor keyDescriptor)
          Checks that KeyInfo is present.
protected  void validateUse(KeyDescriptor keyDescriptor)
          Checks that use attribute has only one of allowed values.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KeyDescriptorSchemaValidator

public KeyDescriptorSchemaValidator()
Constructor.

Method Detail

validate

public void validate(KeyDescriptor keyDescriptor)
              throws ValidationException

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

validateKeyInfo

protected void validateKeyInfo(KeyDescriptor keyDescriptor)
                        throws ValidationException
Checks that KeyInfo is present.

Parameters:
keyDescriptor - the key descriptor to validate
Throws:
ValidationException - thrown if KeyInfo is not present

validateUse

protected void validateUse(KeyDescriptor keyDescriptor)
                    throws ValidationException
Checks that use attribute has only one of allowed values.

Parameters:
keyDescriptor - the key descriptor to validate
Throws:
ValidationException - throw in use attribute does not have a legal value


Copyright © 1999-2013. All Rights Reserved.