org.opensaml.common.binding.security
Class IssueInstantRuleFactory.IssueInstantRule

java.lang.Object
  extended by org.opensaml.common.binding.security.IssueInstantRuleFactory.IssueInstantRule
All Implemented Interfaces:
SecurityPolicyRule<javax.servlet.ServletRequest>
Enclosing class:
IssueInstantRuleFactory

public class IssueInstantRuleFactory.IssueInstantRule
extends java.lang.Object
implements SecurityPolicyRule<javax.servlet.ServletRequest>

Security policy rule implementation that which checks for validity of SAML message issue instant date and time.


Constructor Summary
IssueInstantRuleFactory.IssueInstantRule(int newClockSkew, int newExpires)
          Constructor.
 
Method Summary
 void evaluate(javax.servlet.ServletRequest request, XMLObject message, SecurityPolicyContext context)
          Evaluates the rule against the given request and message.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IssueInstantRuleFactory.IssueInstantRule

public IssueInstantRuleFactory.IssueInstantRule(int newClockSkew,
                                                int newExpires)
Constructor.

Parameters:
newClockSkew - the new clock skew value
newExpires - the new expiration value
Method Detail

evaluate

public void evaluate(javax.servlet.ServletRequest request,
                     XMLObject message,
                     SecurityPolicyContext context)
              throws SecurityPolicyException
Evaluates the rule against the given request and message.

Specified by:
evaluate in interface SecurityPolicyRule<javax.servlet.ServletRequest>
Parameters:
request - the protocol request
message - the incoming message
context - the security policy context to use for evaluation and storage of related state info
Throws:
SecurityPolicyException - thrown if the request/message do not meet the requirements of this rule