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

java.lang.Object
  extended by java.util.Dictionary<K,V>
      extended by java.util.Hashtable<String,ReplayCache>
          extended by sun.security.mule.krb5.internal.rcache.CacheTable
All Implemented Interfaces:
Serializable, Cloneable, Map<String,ReplayCache>

public class CacheTable
extends Hashtable<String,ReplayCache>

This class implements Hashtable to store the replay caches.

Author:
Yanni Zhang
See Also:
Serialized Form

Constructor Summary
CacheTable()
           
 
Method Summary
 Object get(AuthTime time, String principal)
          This method tests if replay cache keeps a record of the authenticator's time stamp.
 void put(String principal, AuthTime time, long currTime)
          Puts the client timestamp in replay cache.
 
Methods inherited from class java.util.Hashtable
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, rehash, remove, size, toString, values
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CacheTable

public CacheTable()
Method Detail

put

public void put(String principal,
                AuthTime time,
                long currTime)
Puts the client timestamp in replay cache.


get

public Object get(AuthTime time,
                  String principal)
This method tests if replay cache keeps a record of the authenticator's time stamp. If there is a record (replay attack detected), the server should reject the client request.

Returns:
null if no record found, else return an AuthTime object.


Copyright © 2013. All Rights Reserved.