com.ibm.security.krb5.internal.rcache

Class ReplayCache

  1. java.lang.Object
  2. extended byjava.util.AbstractCollection<E>
  3. extended byjava.util.AbstractList<E>
  4. extended byjava.util.AbstractSequentialList<E>
  5. extended byjava.util.LinkedList
  6. extended bycom.ibm.security.krb5.internal.rcache.ReplayCache
All implemented interfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Iterable, java.util.Collection, java.util.Deque, java.util.List, java.util.Queue

  1. public class ReplayCache
  2. extends java.util.LinkedList
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.
Version:
1.00 10 Jul 00
Author:
Yanni Zhang
See Also:
Serialized Form

Field Summary

Fields inherited from class java.util.AbstractList
modCount

Constructor Summary

Constructor and Description
ReplayCache(java.lang.String p,CacheTable ct)
Constructs a ReplayCache for a client principal in specified CacheTable.

Method Summary

Modifier and Type Method and Description
  1. void
printList()
  1. void
put(AuthTime t)
Puts the authenticator timestamp into the cache in decending 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

Constructor Detail

ReplayCache

  1. public ReplayCache(java.lang.String p,
  2. CacheTable ct)
Constructs a ReplayCache for a client principal in specified CacheTable.
Parameters:
p - client principal name.
ct - CacheTable.

Method Detail

put

  1. public void put(AuthTime t)
Puts the authenticator timestamp into the cache in decending order.
Parameters:
t - AuthTime

printList

  1. public void printList()