org.jasig.cas.ticket.support
Class ThrottledUseAndTimeoutExpirationPolicy
java.lang.Object
org.jasig.cas.ticket.support.ThrottledUseAndTimeoutExpirationPolicy
- All Implemented Interfaces:
- java.io.Serializable, ExpirationPolicy
public final class ThrottledUseAndTimeoutExpirationPolicy
- extends java.lang.Object
- implements ExpirationPolicy
Implementation of an expiration policy that adds the concept of saying that a
ticket can only be used once every X millseconds to prevent misconfigured
clients from consuming resources by doing constant redirects.
- Since:
- 3.0.5
- Version:
- $Revision: 48180 $ $Date: 2010-03-14 00:05:58 -0500 (Sun, 14 Mar 2010) $
- Author:
- Scott Battaglia
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ThrottledUseAndTimeoutExpirationPolicy
public ThrottledUseAndTimeoutExpirationPolicy()
setTimeInBetweenUsesInMilliSeconds
public void setTimeInBetweenUsesInMilliSeconds(long timeInBetweenUsesInMilliSeconds)
setTimeToKillInMilliSeconds
public void setTimeToKillInMilliSeconds(long timeToKillInMilliSeconds)
isExpired
public boolean isExpired(TicketState ticketState)
- Description copied from interface:
ExpirationPolicy
- Method to determine if a Ticket has expired or not, based on the policy.
- Specified by:
isExpired in interface ExpirationPolicy
- Parameters:
ticketState - The snapshot of the current ticket state
- Returns:
- true if the ticket is expired, false otherwise.
Copyright © 2004-2010 Java Architectures Special Interest Group. All Rights Reserved.