gnu.crypto.sasl.srp

Class ClientStore


public class ClientStore
extends java.lang.Object

The client-side implementation of the SRP security context store.

Version:
$Revision: 1.3 $

Method Summary

(package private) void
cacheSession(String uid, int ttl, SecurityContext ctx)
Records a mapping between a client's unique identifier and its security context.
(package private) static ClientStore
instance()
Returns the classloader Singleton.
(package private) void
invalidateSession(String uid)
Removes the mapping between the designated SRP client unique identifier and the its session security context (and other timing information).
(package private) boolean
isAlive(String uid)
Returns a boolean flag indicating if the designated client's session is still alive or not.
(package private) SecurityContext
restoreSession(String uid)
Returns an SRP client's security context record mapped by that client's unique identifier.

Method Details

cacheSession

(package private)  void cacheSession(String uid,
                                     int ttl,
                                     SecurityContext ctx)
Records a mapping between a client's unique identifier and its security context.

Parameters:
uid - the unique identifier of the SRP client for which the session is to be cached.
ttl - the session's Time-To-Live indicator (in seconds).
ctx - the client's security context.


instance

(package private) static final ClientStore instance()
Returns the classloader Singleton.

Returns:
the classloader Singleton instance.


invalidateSession

(package private)  void invalidateSession(String uid)
Removes the mapping between the designated SRP client unique identifier and the its session security context (and other timing information).

Parameters:
uid - the identifier of the client whose session is to invalidate.


isAlive

(package private)  boolean isAlive(String uid)
Returns a boolean flag indicating if the designated client's session is still alive or not.

Parameters:
uid - the identifier of the client whose session to check.

Returns:
true if the designated client's session is still alive. false otherwise.


restoreSession

(package private)  SecurityContext restoreSession(String uid)
Returns an SRP client's security context record mapped by that client's unique identifier.

Parameters:
uid - the identifier of the client whose session is to restore.

Returns:
the SRP client's security context.


Copyright © 2001, 2002, 2003 Free Software Foundation, Inc. All Rights Reserved.