public class ReplayCacheImpl extends Object implements ReplayCache
Modifier and Type | Class and Description |
---|---|
static class |
ReplayCacheImpl.ReplayCacheEntry
A structure to hold an entry
|
Constructor and Description |
---|
ReplayCacheImpl(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.
|
public ReplayCacheImpl(long clockSkew)
clockSkew
- the allowed skew (milliseconds)public boolean isReplay(KerberosPrincipal serverPrincipal, KerberosPrincipal clientPrincipal, KerberosTime clientTime, int clientMicroSeconds)
isReplay
in interface ReplayCache
serverPrincipal
- 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 ReplayCache
serverPrincipal
- The server principalclientPrincipal
- The client principalclientTime
- The client timeclientMicroSeconds
- The client microsecondpublic void clear()
clear
in interface ReplayCache
Copyright © 2003–2020 The Apache Software Foundation. All rights reserved.