org.apache.directory.server.kerberos.shared.replay
Interface ReplayCache

All Known Implementing Classes:
ReplayCacheImpl

public interface ReplayCache

"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."

Author:
Apache Directory Project

Method Summary
 void clear()
          removes all the elements present in the cache
 boolean isReplay(KerberosPrincipal serverPrincipal, KerberosPrincipal clientPrincipal, KerberosTime clientTime, int clientMicroSeconds)
          Returns whether a request is a replay, based on the server principal, client principal, time, and microseconds.
 void save(KerberosPrincipal serverPrincipal, KerberosPrincipal clientPrincipal, KerberosTime clientTime, int clientMicroSeconds)
          Saves the server principal, client principal, time, and microseconds to the replay cache.
 

Method Detail

isReplay

boolean isReplay(KerberosPrincipal serverPrincipal,
                 KerberosPrincipal clientPrincipal,
                 KerberosTime clientTime,
                 int clientMicroSeconds)
Returns whether a request is a replay, based on the server principal, client principal, time, and microseconds.

Parameters:
serverPrincipal - The server principal
clientPrincipal - The client principal
clientTime - The client time
clientMicroSeconds - The client microsecond
Returns:
true if the request is a replay.

save

void save(KerberosPrincipal serverPrincipal,
          KerberosPrincipal clientPrincipal,
          KerberosTime clientTime,
          int clientMicroSeconds)
Saves the server principal, client principal, time, and microseconds to the replay cache.

Parameters:
serverPrincipal - The server principal
clientPrincipal - The client principal
clientTime - The client time
clientMicroSeconds - The client microsecond

clear

void clear()
removes all the elements present in the cache



Copyright © 2003-2012 The Apache Software Foundation. All Rights Reserved.