|
For the latest news and information visit The GNU Crypto project |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object gnu.crypto.sasl.srp.ServerStore
The server-side implementation of the SRP security context store.
Method Summary | |
(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 java.lang.String |
getNewSessionID()
Returns a legible new session identifier. |
(package private) static ServerStore |
instance()
Returns the classloader Singleton. |
(package private) void |
invalidateSession(java.lang.String sid)
Removes all information related to the designated session ID. |
(package private) boolean |
isAlive(java.lang.String sid)
Returns a boolean flag indicating if the designated session is still alive or not. |
(package private) SecurityContext |
restoreSession(java.lang.String sid)
Updates the mapping between the designated session identifier and the designated server's SASL Security Context. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
static final ServerStore instance()
Returns the classloader Singleton.
static final java.lang.String getNewSessionID()
Returns a legible new session identifier.
boolean isAlive(java.lang.String 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.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.SecurityContext restoreSession(java.lang.String 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.
void invalidateSession(java.lang.String sid)
Removes all information related to the designated session ID.
sid
- the identifier of the seesion to invalidate.
|
For the latest news and information visit The GNU Crypto project |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |