org.opensaml.common.binding.security
Class ReplayRuleFactory

java.lang.Object
  extended by org.opensaml.common.binding.security.ReplayRuleFactory
All Implemented Interfaces:
SecurityPolicyRuleFactory<javax.servlet.ServletRequest>

public class ReplayRuleFactory
extends java.lang.Object
implements SecurityPolicyRuleFactory<javax.servlet.ServletRequest>

Security policy rule factory implementation that generates rules which check for replay of SAML messages.


Nested Class Summary
 class ReplayRuleFactory.ReplayRule
          Security policy rule implementation which checks for replay of SAML messages.
 
Constructor Summary
ReplayRuleFactory()
           
 
Method Summary
 SecurityPolicyRule<javax.servlet.ServletRequest> createRuleInstance()
          Creates an instance of a policy rule.
 int getClockSkew()
          Get the clock skew.
 int getExpires()
          Get the message replay cache expiration, in seconds.
 ReplayCache getReplayCache()
          Get the message replay cache instance.
 void setClockSkew(int newClockSkew)
          Set the clock skew.
 void setExpires(int newExpires)
          Set the message replay cache expiration, in seconds.
 void setReplayCache(ReplayCache newReplayCache)
          Set the message replay cache instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReplayRuleFactory

public ReplayRuleFactory()
Method Detail

getClockSkew

public int getClockSkew()
Get the clock skew.

Returns:
the clock skew

setClockSkew

public void setClockSkew(int newClockSkew)
Set the clock skew.

Parameters:
newClockSkew - the clock skew

getExpires

public int getExpires()
Get the message replay cache expiration, in seconds.

Returns:
the expiration value

setExpires

public void setExpires(int newExpires)
Set the message replay cache expiration, in seconds.

Parameters:
newExpires - the new expiration value

getReplayCache

public ReplayCache getReplayCache()
Get the message replay cache instance.

Returns:
the message replay cache instance

setReplayCache

public void setReplayCache(ReplayCache newReplayCache)
Set the message replay cache instance.

Parameters:
newReplayCache - The replayCache to set.

createRuleInstance

public SecurityPolicyRule<javax.servlet.ServletRequest> createRuleInstance()
Creates an instance of a policy rule.

Specified by:
createRuleInstance in interface SecurityPolicyRuleFactory<javax.servlet.ServletRequest>
Returns:
an instance of a policy rule