org.opensaml.saml2.metadata.validator
Class EntityDescriptorSpecValidator

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

public class EntityDescriptorSpecValidator
extends java.lang.Object
implements Validator<EntityDescriptor>

Checks EntityDescriptor for Spec compliance.


Constructor Summary
EntityDescriptorSpecValidator()
          Constructor
 
Method Summary
 void validate(EntityDescriptor entityDescriptor)
          Checks to see if a XMLObject is valid.
protected  void validateRoot(EntityDescriptor entityDescriptor)
          Checks that at least either Valid Until or Cache Duration is present when Entity Descriptor is root element.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EntityDescriptorSpecValidator

public EntityDescriptorSpecValidator()
Constructor

Method Detail

validate

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

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

validateRoot

protected void validateRoot(EntityDescriptor entityDescriptor)
                     throws ValidationException
Checks that at least either Valid Until or Cache Duration is present when Entity Descriptor is root element.

Parameters:
entityDescriptor -
Throws:
ValidationException