org.opensaml.common.binding.security
Class IssueInstantRule

java.lang.Object
  extended by org.opensaml.common.binding.security.IssueInstantRule
All Implemented Interfaces:
SecurityPolicyRule

public class IssueInstantRule
extends Object
implements SecurityPolicyRule

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


Field Summary
private  int clockSkew
          Clock skew - the number of seconds before a lower time bound, or after an upper time bound, to consider still acceptable.
private  int expires
          Number of seconds after a message issue instant after which the message is considered expired.
private  org.slf4j.Logger log
          Class logger.
private  boolean requiredRule
          Whether this rule is required to be met.
 
Constructor Summary
IssueInstantRule(int newClockSkew, int newExpires)
          Constructor.
 
Method Summary
 void evaluate(MessageContext messageContext)
          
 boolean isRequiredRule()
          Gets whether this rule is required to be met.
 void setRequiredRule(boolean required)
          Sets whether this rule is required to be met.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

private final org.slf4j.Logger log
Class logger.


clockSkew

private int clockSkew
Clock skew - the number of seconds before a lower time bound, or after an upper time bound, to consider still acceptable.


expires

private int expires
Number of seconds after a message issue instant after which the message is considered expired.


requiredRule

private boolean requiredRule
Whether this rule is required to be met.

Constructor Detail

IssueInstantRule

public IssueInstantRule(int newClockSkew,
                        int newExpires)
Constructor.

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

isRequiredRule

public boolean isRequiredRule()
Gets whether this rule is required to be met.

Returns:
whether this rule is required to be met

setRequiredRule

public void setRequiredRule(boolean required)
Sets whether this rule is required to be met.

Parameters:
required - whether this rule is required to be met

evaluate

public void evaluate(MessageContext messageContext)
              throws SecurityPolicyException

Specified by:
evaluate in interface SecurityPolicyRule
Throws:
SecurityPolicyException


Copyright © 1999-2012. All Rights Reserved.