com.ibm.security.krb5.internal.rcache
Class CacheTable
- java.lang.Object
java.util.Dictionary<K,V>
java.util.Hashtable
com.ibm.security.krb5.internal.rcache.CacheTable
All implemented interfaces:
java.io.Serializable, java.lang.Cloneable, java.util.Map
- public class CacheTable
- extends java.util.Hashtable
Version:
1.00 10 Jul 00
Author:
Yanni Zhang
See Also:
Constructor Summary
Constructor and Description |
---|
CacheTable()
|
Method Summary
Modifier and Type | Method and Description |
---|---|
|
get(AuthTime time,java.lang.String principal)
This method tests if replay cache keeps a record of the authenticator's
time stamp.
|
|
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
- public CacheTable()
Method Detail
put
- public void put(java.lang.String principal,
- AuthTime time)
Puts the client timestamp in replay cache.
Parameters:
principal
- the client's principal name. time
- authenticator timestamp. get
- public 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. 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.