sun.security.mule.krb5.internal.rcache
Class CacheTable
java.lang.Object
java.util.Dictionary<K,V>
java.util.Hashtable<String,ReplayCache>
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
|
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 |
CacheTable
public CacheTable()
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.