org.opensaml.saml2.metadata.validator
Class RoleDescriptorSpecValidator<RoleDescriptorType extends RoleDescriptor>

java.lang.Object
  extended by org.opensaml.saml2.metadata.validator.RoleDescriptorSpecValidator<RoleDescriptorType>
All Implemented Interfaces:
Validator<RoleDescriptorType>
Direct Known Subclasses:
AttributeAuthorityDescriptorSpecValidator, AuthnAuthorityDescriptorSpecValidator, PDPDescriptorSpecValidator, SSODescriptorSpecValidator

public class RoleDescriptorSpecValidator<RoleDescriptorType extends RoleDescriptor>
extends java.lang.Object
implements Validator<RoleDescriptorType>

Checks RoleDescriptor for Spec compliance.


Constructor Summary
RoleDescriptorSpecValidator()
          Constructor
 
Method Summary
 void validate(RoleDescriptorType roleDescriptor)
          Checks to see if a XMLObject is valid.
protected  void validateProtocols(RoleDescriptor roleDescriptor)
          Checks that the SAML 2.0 protocol is present.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RoleDescriptorSpecValidator

public RoleDescriptorSpecValidator()
Constructor

Method Detail

validate

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

Specified by:
validate in interface Validator<RoleDescriptorType extends RoleDescriptor>
Parameters:
roleDescriptor - the XMLObject to validate
Throws:
ValidationException - thrown if the element is not valid

validateProtocols

protected void validateProtocols(RoleDescriptor roleDescriptor)
                          throws ValidationException
Checks that the SAML 2.0 protocol is present.

Parameters:
roleDescriptor -
Throws:
ValidationException