gnu.crypto.sasl.srp
Class ServerStore
java.lang.Object
gnu.crypto.sasl.srp.ServerStore
public class ServerStore
extends java.lang.Object
The server-side implementation of the SRP security context store.
Version:
(package private) void | cacheSession(int ttl, SecurityContext ctx) - Records a mapping between a session identifier and the Security Context
of the designated SRP server mechanism instance.
|
(package private) static byte[] | getNewSessionID() - Returns a legible new session identifier.
|
(package private) static ServerStore | instance() - Returns the classloader Singleton.
|
(package private) void | invalidateSession(byte[] sid) - Removes all information related to the designated session ID.
|
(package private) boolean | isAlive(byte[] sid) - Returns a boolean flag indicating if the designated session is still
alive or not.
|
(package private) SecurityContext | restoreSession(byte[] sid) - Updates the mapping between the designated session identifier and the
designated server's SASL Security Context.
|
cacheSession
(package private) void cacheSession(int ttl,
SecurityContext ctx)
Records a mapping between a session identifier and the Security Context
of the designated SRP server mechanism instance.
ttl
- the session's Time-To-Live indicator (in seconds).ctx
- the server's security context.
getNewSessionID
(package private) static final byte[] getNewSessionID()
Returns a legible new session identifier.
- a new session identifier.
instance
(package private) static final ServerStore instance()
Returns the classloader Singleton.
- the classloader Singleton instance.
invalidateSession
(package private) void invalidateSession(byte[] sid)
Removes all information related to the designated session ID.
sid
- the identifier of the seesion to invalidate.
isAlive
(package private) boolean isAlive(byte[] sid)
Returns a boolean flag indicating if the designated session is still
alive or not.
sid
- the identifier of the session to check.
true
if the designated session is still alive.
false
otherwise.
restoreSession
(package private) SecurityContext restoreSession(byte[] sid)
Updates the mapping between the designated session identifier and the
designated server's SASL Security Context. In the process, computes
and return the underlying mechanism server's evidence that shall be
returned to the client in a session re-use exchange.
sid
- the identifier of the session to restore.
- an SRP server's security context.
Copyright © 2001, 2002, 2003
Free Software Foundation,
Inc. All Rights Reserved.