| FRAMES NO FRAMES | |||||||
| |||||||
| SUMMARY: IMPORT | CONSTANT | MEMBER | ACTION | DETAIL: IMPORT | CONSTANT | MEMBER | ACTION | ||||||
| Action summary | |
|---|---|
string | add(string user)
Add a new cache entry for a user and return the token. Should be called after authenticating the user via another means. |
string | check(string token)
Check whether a token is a valid session. If valid, refreshes the timestamp on the cache entry. |
string | checkHeader(string header)
Check whether an Authorization headers contains a valid token. If valid, refreshes the timestamp on the cache entry. |
com.apamax.authentication.SessionCache | static create(integer timeoutSecs, integer maxSessionLengthSecs)
Create a SesseionCache object. |
void | destroy()
Stop the background garbage collection listener. Must be called before discarding the last reference to the SessionCache. |
void | expireAll(string user)
Remove all cache entries for a given user. |
| Action detail |
|---|
string add(string user)Add a new cache entry for a user and return the token. Should be called after authenticating the user via another means.
string check(string token)Check whether a token is a valid session. If valid, refreshes the timestamp on the cache entry.
string checkHeader(string header)Check whether an Authorization headers contains a valid token. If valid, refreshes the timestamp on the cache entry.
com.apamax.authentication.SessionCache static create(integer timeoutSecs, integer maxSessionLengthSecs)Create a SesseionCache object.
void destroy()Stop the background garbage collection listener. Must be called before discarding the last reference to the SessionCache.
void expireAll(string user)Remove all cache entries for a given user.
| FRAMES NO FRAMES | |||||||
| |||||||
| SUMMARY: IMPORT | CONSTANT | MEMBER | ACTION | DETAIL: IMPORT | CONSTANT | MEMBER | ACTION | ||||||