sun.security.mule.krb5.internal.rcache
Class ReplayCache

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by java.util.AbstractSequentialList<E>
              extended by java.util.LinkedList<AuthTime>
                  extended by 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

Field Summary
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
ReplayCache(String p, CacheTable ct, Config kerberosConfigs)
          Constructs a ReplayCache for a client principal in specified CacheTable.
 
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
 
Methods inherited from class java.util.AbstractSequentialList
iterator
 
Methods inherited from class java.util.AbstractList
equals, hashCode, listIterator, removeRange, subList
 
Methods inherited from class java.util.AbstractCollection
containsAll, isEmpty, removeAll, retainAll, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
containsAll, equals, hashCode, isEmpty, iterator, listIterator, removeAll, retainAll, subList
 
Methods inherited from interface java.util.Deque
iterator
 

Constructor Detail

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.
Method Detail

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.