sun.security.mule.krb5.internal.rcache
Class ReplayCache
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.AbstractSequentialList<E>
java.util.LinkedList<AuthTime>
sun.security.mule.krb5.internal.rcache.ReplayCache
- All Implemented Interfaces:
- Serializable, Cloneable, Iterable<AuthTime>, Collection<AuthTime>, Deque<AuthTime>, List<AuthTime>, Queue<AuthTime>
public class ReplayCache
- extends LinkedList<AuthTime>
This class provides an efficient caching mechanism to store the timestamp of client authenticators.
The cache minimizes the memory usage by doing self-cleanup of expired items in the cache.
- Author:
- Yanni Zhang
- See Also:
- Serialized Form
|
Method Summary |
void |
put(AuthTime t,
long currentTime)
Puts the authenticator timestamp into the cache in descending order. |
| Methods inherited from class java.util.LinkedList |
add, add, addAll, addAll, addFirst, addLast, clear, clone, contains, descendingIterator, element, get, getFirst, getLast, indexOf, lastIndexOf, listIterator, offer, offerFirst, offerLast, peek, peekFirst, peekLast, poll, pollFirst, pollLast, pop, push, remove, remove, remove, removeFirst, removeFirstOccurrence, removeLast, removeLastOccurrence, set, size, toArray, toArray |
ReplayCache
public ReplayCache(String p,
CacheTable ct,
Config kerberosConfigs)
- Constructs a ReplayCache for a client principal in specified
CacheTable.
- Parameters:
p - client principal name.ct - CacheTable.
put
public void put(AuthTime t,
long currentTime)
- Puts the authenticator timestamp into the cache in descending order.
- Parameters:
t - AuthTime
Copyright © 2013. All Rights Reserved.