public class ReplayCacheImpl extends Object implements ReplayCache
| Modifier and Type | Class and Description |
|---|---|
class |
ReplayCacheImpl.ReplayCacheEntry
A structure to hold an entry
|
| Constructor and Description |
|---|
ReplayCacheImpl(net.sf.ehcache.Cache cache)
Creates a new instance of InMemoryReplayCache.
|
ReplayCacheImpl(net.sf.ehcache.Cache cache,
long clockSkew)
Creates a new instance of InMemoryReplayCache.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
removes all the elements present in the cache
|
boolean |
isReplay(KerberosPrincipal serverPrincipal,
KerberosPrincipal clientPrincipal,
KerberosTime clientTime,
int clientMicroSeconds)
Check if an entry is a replay or not.
|
void |
save(KerberosPrincipal serverPrincipal,
KerberosPrincipal clientPrincipal,
KerberosTime clientTime,
int clientMicroSeconds)
Add a new entry into the cache.
|
void |
setClockSkew(long clockSkew)
Sets the clock skew.
|
public ReplayCacheImpl(net.sf.ehcache.Cache cache)
public ReplayCacheImpl(net.sf.ehcache.Cache cache,
long clockSkew)
clockSkew - the allowed skew (milliseconds)public void setClockSkew(long clockSkew)
clockSkew - public boolean isReplay(KerberosPrincipal serverPrincipal, KerberosPrincipal clientPrincipal, KerberosTime clientTime, int clientMicroSeconds)
isReplay in interface ReplayCacheserverPrincipal - The server principalclientPrincipal - The client principalclientTime - The client timeclientMicroSeconds - The client microsecondpublic void save(KerberosPrincipal serverPrincipal, KerberosPrincipal clientPrincipal, KerberosTime clientTime, int clientMicroSeconds)
save in interface ReplayCacheserverPrincipal - The server principalclientPrincipal - The client principalclientTime - The client timeclientMicroSeconds - The client microsecondpublic void clear()
clear in interface ReplayCacheCopyright © 2003–2014 The Apache Software Foundation. All rights reserved.