org.apache.directory.server.kerberos.shared.replay
Class InMemoryReplayCache

java.lang.Object
  extended by org.apache.directory.server.kerberos.shared.replay.InMemoryReplayCache
All Implemented Interfaces:
ReplayCache

public class InMemoryReplayCache
extends java.lang.Object
implements 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: 562050 $, $Date: 2007-08-02 04:57:34 -0400 (Thu, 02 Aug 2007) $
Author:
Apache Directory Project

Constructor Summary
InMemoryReplayCache()
           
 
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.
 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

InMemoryReplayCache

public InMemoryReplayCache()
Method Detail

setClockSkew

public void setClockSkew(long clockSkew)
Sets the clock skew.

Parameters:
clockSkew -

isReplay

public boolean isReplay(javax.security.auth.kerberos.KerberosPrincipal serverPrincipal,
                        javax.security.auth.kerberos.KerberosPrincipal clientPrincipal,
                        KerberosTime clientTime,
                        int clientMicroSeconds)
Description copied from interface: ReplayCache
Returns whether a request is a replay, based on the server principal, client principal, time, and microseconds.

Specified by:
isReplay in interface ReplayCache
Returns:
true if the request is a replay.

save

public void save(javax.security.auth.kerberos.KerberosPrincipal serverPrincipal,
                 javax.security.auth.kerberos.KerberosPrincipal clientPrincipal,
                 KerberosTime clientTime,
                 int clientMicroSeconds)
Description copied from interface: ReplayCache
Saves the server principal, client principal, time, and microseconds to the replay cache.

Specified by:
save in interface ReplayCache


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