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

All Known Implementing Classes:
InMemoryReplayCache

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

Version:
$Rev: 589775 $, $Date: 2007-10-29 19:04:59 +0100 (Mo, 29 Okt 2007) $
Author:
Apache Directory Project

Method Summary
 boolean isReplay(javax.security.auth.kerberos.KerberosPrincipal serverPrincipal, javax.security.auth.kerberos.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(javax.security.auth.kerberos.KerberosPrincipal serverPrincipal, javax.security.auth.kerberos.KerberosPrincipal clientPrincipal, KerberosTime clientTime, int clientMicroSeconds)
          Saves the server principal, client principal, time, and microseconds to the replay cache.
 

Method Detail

isReplay

boolean isReplay(javax.security.auth.kerberos.KerberosPrincipal serverPrincipal,
                 javax.security.auth.kerberos.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(javax.security.auth.kerberos.KerberosPrincipal serverPrincipal,
          javax.security.auth.kerberos.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


Copyright © 2003-2009 Apache Software Foundation. All Rights Reserved.