public class MultipleSessionToken extends Object implements SessionToken
SessionToken.CookieID, SessionToken.HeaderID, SessionToken.SignedCookie
ID_SIZE, RND, SID
Constructor and Description |
---|
MultipleSessionToken(SessionToken... sessionToken) |
Modifier and Type | Method and Description |
---|---|
void |
deleteToken(Context ctx,
String token)
Delete session ID in the web context.
|
String |
findToken(Context ctx)
Find session ID.
|
void |
saveToken(Context ctx,
String token)
Save session ID in the web context.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
combine, cookieId, header, newToken, signedCookie
public MultipleSessionToken(SessionToken... sessionToken)
public String findToken(Context ctx)
SessionToken
findToken
in interface SessionToken
ctx
- Web context.null
.public void saveToken(Context ctx, String token)
SessionToken
saveToken
in interface SessionToken
ctx
- Web context.token
- Token/data to save.public void deleteToken(Context ctx, String token)
SessionToken
deleteToken
in interface SessionToken
ctx
- Web context.token
- Token/data to delete.Copyright © 2023. All rights reserved.