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

java.lang.Object
  extended by org.apache.directory.server.kerberos.shared.replay.ReplayCacheImpl.ReplayCacheEntry
All Implemented Interfaces:
Serializable
Enclosing class:
ReplayCacheImpl

public class ReplayCacheImpl.ReplayCacheEntry
extends Object
implements Serializable

A structure to hold an entry

See Also:
Serialized Form

Constructor Summary
ReplayCacheImpl.ReplayCacheEntry(KerberosPrincipal serverPrincipal, KerberosPrincipal clientPrincipal, KerberosTime clientTime, int clientMicroSeconds)
          Creates a new instance of ReplayCacheEntry.
 
Method Summary
 boolean equals(ReplayCacheImpl.ReplayCacheEntry that)
          Returns whether this ReplayCacheImpl.ReplayCacheEntry is equal to another ReplayCacheImpl.ReplayCacheEntry.
 boolean isOutsideClockSkew(long clockSkew)
          Returns whether this ReplayCacheImpl.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

ReplayCacheImpl.ReplayCacheEntry

public ReplayCacheImpl.ReplayCacheEntry(KerberosPrincipal serverPrincipal,
                                        KerberosPrincipal clientPrincipal,
                                        KerberosTime clientTime,
                                        int clientMicroSeconds)
Creates a new instance of ReplayCacheEntry.

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

equals

public boolean equals(ReplayCacheImpl.ReplayCacheEntry that)
Returns whether this ReplayCacheImpl.ReplayCacheEntry is equal to another ReplayCacheImpl.ReplayCacheEntry. ReplayCacheImpl.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 ReplayCacheImpl.ReplayCacheEntry is older than a given time.

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


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