org.opensaml.saml2.core.validator
Class AuthnStatementSchemaValidator

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

public class AuthnStatementSchemaValidator
extends java.lang.Object
implements Validator<AuthnStatement>

Checks AuthnStatement for Schema compliance.


Constructor Summary
AuthnStatementSchemaValidator()
          Constructor
 
Method Summary
 void validate(AuthnStatement authnStatement)
          Checks to see if a XMLObject is valid.
protected  void validateAuthnContext(AuthnStatement authnStatement)
          Checks that the AuthnContext element is present.
protected  void validateAuthnInstant(AuthnStatement authnStatement)
          Checks that the AuthnInstant attribute is present.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AuthnStatementSchemaValidator

public AuthnStatementSchemaValidator()
Constructor

Method Detail

validate

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

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

validateAuthnInstant

protected void validateAuthnInstant(AuthnStatement authnStatement)
                             throws ValidationException
Checks that the AuthnInstant attribute is present.

Parameters:
authnStatement -
Throws:
ValidationException

validateAuthnContext

protected void validateAuthnContext(AuthnStatement authnStatement)
                             throws ValidationException
Checks that the AuthnContext element is present.

Parameters:
authnStatement -
Throws:
ValidationException