org.jasig.cas.ticket.support
Class MultiTimeUseOrTimeoutExpirationPolicy

java.lang.Object
  extended byorg.jasig.cas.ticket.support.MultiTimeUseOrTimeoutExpirationPolicy
All Implemented Interfaces:
ExpirationPolicy, java.io.Serializable

public final class MultiTimeUseOrTimeoutExpirationPolicy
extends java.lang.Object
implements ExpirationPolicy

ExpirationPolicy that is based on certain number of uses of a ticket or a certain time period for a ticket to exist.

Since:
3.0
Version:
$Revision$ $Date$
Author:
Scott Battaglia
See Also:
Serialized Form

Constructor Summary
MultiTimeUseOrTimeoutExpirationPolicy(int numberOfUses, long timeToKillInMilliSeconds)
           
 
Method Summary
 boolean isExpired(Ticket ticket)
          Method to determine if a Ticket has expired or not, based on the policy.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultiTimeUseOrTimeoutExpirationPolicy

public MultiTimeUseOrTimeoutExpirationPolicy(int numberOfUses,
                                             long timeToKillInMilliSeconds)
Method Detail

isExpired

public boolean isExpired(Ticket ticket)
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:
ticket - The ticket to check.
Returns:
true if the ticket is expired, false otherwise.


Copyright © 2004-2005 Java Architectures Special Interest Group. All Rights Reserved.