|
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.ClientStore
The client-side implementation of the SRP security context store.
Method Summary | |
(package private) void |
cacheSession(java.lang.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(java.lang.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(java.lang.String uid)
Returns a boolean flag indicating if the designated client's session is still alive or not. |
(package private) SecurityContext |
restoreSession(java.lang.String uid)
Returns an SRP client's security context record mapped by that client's unique identifier. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
static final ClientStore instance()
Returns the classloader Singleton.
boolean isAlive(java.lang.String uid)
Returns a boolean flag indicating if the designated client's session is still alive or not.
uid
- the identifier of the client whose session to check.
true
if the designated client's session is still
alive. false
otherwise.void cacheSession(java.lang.String uid, int ttl, SecurityContext ctx)
Records a mapping between a client's unique identifier and its security context.
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.void invalidateSession(java.lang.String uid)
Removes the mapping between the designated SRP client unique identifier and the its session security context (and other timing information).
uid
- the identifier of the client whose session is to invalidate.SecurityContext restoreSession(java.lang.String uid)
Returns an SRP client's security context record mapped by that client's unique identifier.
uid
- the identifier of the client whose session is to restore.
|
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 |