|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.directory.server.kerberos.shared.replay.ReplayCacheImpl
public class ReplayCacheImpl
"The replay cache will store at least the server name, along with the client name, time, and microsecond fields from the recently-seen authenticators, and if a matching tuple is found, the KRB_AP_ERR_REPEAT error is returned." We will store the entries in Ehacache instance
| Nested Class Summary | |
|---|---|
class |
ReplayCacheImpl.ReplayCacheEntry
A structure to hold an entry |
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ReplayCacheImpl(net.sf.ehcache.Cache cache)
public ReplayCacheImpl(net.sf.ehcache.Cache cache,
long clockSkew)
clockSkew - the allowed skew (milliseconds)| Method Detail |
|---|
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 microsecond
public 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 ReplayCache
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||