com.ibm.security.krb5.internal.rcache

Class CacheTable

  1. java.lang.Object
  2. extended byjava.util.Dictionary<K,V>
  3. extended byjava.util.Hashtable
  4. extended bycom.ibm.security.krb5.internal.rcache.CacheTable
All implemented interfaces:
java.io.Serializable, java.lang.Cloneable, java.util.Map

  1. public class CacheTable
  2. extends java.util.Hashtable
This class implements Hashtable to store the replay caches.
Version:
1.00 10 Jul 00
Author:
Yanni Zhang
See Also:
Serialized Form

Constructor Summary

Constructor and Description
CacheTable()

Method Summary

Modifier and Type Method and Description
  1. java.lang.Object
get(AuthTime time,java.lang.String principal)
This method tests if replay cache keeps a record of the authenticator's time stamp.
  1. void
put(java.lang.String principal,AuthTime time)
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

  1. public CacheTable()

Method Detail

put

  1. public void put(java.lang.String principal,
  2. AuthTime time)
Puts the client timestamp in replay cache.
Parameters:
principal - the client's principal name.
time - authenticator timestamp.

get

  1. public java.lang.Object get(AuthTime time,
  2. java.lang.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.
Parameters:
time - authenticator timestamp.
principal - the client's principal name.
Returns:
null if no record found, else return an AuthTime object.