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

java.lang.Object
  extended by org.apache.directory.server.kerberos.shared.replay.InMemoryReplayCache.ReplayCacheEntry
Enclosing class:
InMemoryReplayCache

public class InMemoryReplayCache.ReplayCacheEntry
extends java.lang.Object

A structure to hold an entry


Constructor Summary
InMemoryReplayCache.ReplayCacheEntry(javax.security.auth.kerberos.KerberosPrincipal serverPrincipal, javax.security.auth.kerberos.KerberosPrincipal clientPrincipal, KerberosTime clientTime, int clientMicroSeconds)
          Creates a new instance of ReplayCacheEntry.
 
Method Summary
 boolean equals(InMemoryReplayCache.ReplayCacheEntry that)
          Returns whether this InMemoryReplayCache.ReplayCacheEntry is equal to another InMemoryReplayCache.ReplayCacheEntry.
 boolean isOutsideClockSkew(long clockSkew)
          Returns whether this InMemoryReplayCache.ReplayCacheEntry is older than a given time.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InMemoryReplayCache.ReplayCacheEntry

public InMemoryReplayCache.ReplayCacheEntry(javax.security.auth.kerberos.KerberosPrincipal serverPrincipal,
                                            javax.security.auth.kerberos.KerberosPrincipal clientPrincipal,
                                            KerberosTime clientTime,
                                            int clientMicroSeconds)
Creates a new instance of ReplayCacheEntry.

Parameters:
serverPrincipal -
clientPrincipal -
clientTime -
clientMicroSeconds -
Method Detail

equals

public boolean equals(InMemoryReplayCache.ReplayCacheEntry that)
Returns whether this InMemoryReplayCache.ReplayCacheEntry is equal to another InMemoryReplayCache.ReplayCacheEntry. InMemoryReplayCache.ReplayCacheEntry's are equal when the server name, client name, client time, and the client microseconds are equal.

Parameters:
that -
Returns:
true if the ReplayCacheEntry's are equal.

isOutsideClockSkew

public boolean isOutsideClockSkew(long clockSkew)
Returns whether this InMemoryReplayCache.ReplayCacheEntry is older than a given time.

Parameters:
clockSkew -
Returns:
true if the InMemoryReplayCache.ReplayCacheEntry's client time is outside the clock skew time.


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