krb5.util.replaycache
Class ReplayCacheImpl

java.lang.Object
  extended by krb5.util.replaycache.ReplayCacheImpl
All Implemented Interfaces:
ReplayCacheInterface

public class ReplayCacheImpl
extends java.lang.Object
implements ReplayCacheInterface

Class Description : Implementation of the ReplayCacheInterface. The Replay cache is useful to both the AS and teh TGS, as well as for the Kerberos user, client and application server. It is defined in package krb5.util.replaycache <\i>.

Version:
1.1
Author:
Bojan Pajkovski

Constructor Summary
ReplayCacheImpl()
          Empty class constructor
 
Method Summary
 boolean found(PrincipalName sname, Realm srealm, KerberosTime pATimeStamp, java.lang.Integer pAUSec)
          Check whether a request is replayed
 void save(PrincipalName sname, Realm srealm, KerberosTime pATimeStamp, java.lang.Integer pAUSec)
          Save the request information in the replay cache
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReplayCacheImpl

public ReplayCacheImpl()
Empty class constructor

Method Detail

found

public boolean found(PrincipalName sname,
                     Realm srealm,
                     KerberosTime pATimeStamp,
                     java.lang.Integer pAUSec)
Check whether a request is replayed

Specified by:
found in interface ReplayCacheInterface
Parameters:
sname - Name of the last request sender
srealm - Realm of the last request sender
pATimeStamp - The last request authentication time (ms)
pAUSec - The value of the authentication time (ms)
Returns:
boolean

save

public void save(PrincipalName sname,
                 Realm srealm,
                 KerberosTime pATimeStamp,
                 java.lang.Integer pAUSec)
Save the request information in the replay cache

Specified by:
save in interface ReplayCacheInterface
Parameters:
sname - Name of the last request sender
srealm - Realm of the last request sender
pATimeStamp - The last request authentication time (ms)
pAUSec - The value of the authentication time (ms)