org.opensaml.saml2.core.validator
Class ConditionsSpecValidator

java.lang.Object
  extended by org.opensaml.saml2.core.validator.ConditionsSpecValidator
All Implemented Interfaces:
Validator<Conditions>

public class ConditionsSpecValidator
extends java.lang.Object
implements Validator<Conditions>

Checks the Conditions for Spec compliance.


Constructor Summary
ConditionsSpecValidator()
          Constructor
 
Method Summary
 void validate(Conditions conditions)
          Checks to see if a XMLObject is valid.
protected  void validateOneTimeUseCondition(Conditions conditions)
          Checks that there is at most one OneTimeUse condition.
protected  void validateProxyRestrictionCondition(Conditions conditions)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConditionsSpecValidator

public ConditionsSpecValidator()
Constructor

Method Detail

validate

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

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

validateOneTimeUseCondition

protected void validateOneTimeUseCondition(Conditions conditions)
                                    throws ValidationException
Checks that there is at most one OneTimeUse condition.

Parameters:
conditions -
Throws:
ValidationException

validateProxyRestrictionCondition

protected void validateProxyRestrictionCondition(Conditions conditions)
                                          throws ValidationException
Throws:
ValidationException