public static class SessionToken.CookieID extends Object implements SessionToken
SessionToken.CookieID, SessionToken.HeaderID, SessionToken.SignedCookie
ID_SIZE, RND, SID
Constructor and Description |
---|
CookieID(Cookie cookie)
Creates a Cookie ID.
|
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
@Nullable public String findToken(@Nonnull Context ctx)
SessionToken
findToken
in interface SessionToken
ctx
- Web context.null
.public void saveToken(@Nonnull Context ctx, @Nonnull String token)
SessionToken
saveToken
in interface SessionToken
ctx
- Web context.token
- Token/data to save.public void deleteToken(@Nonnull Context ctx, @Nonnull String token)
SessionToken
deleteToken
in interface SessionToken
ctx
- Web context.token
- Token/data to delete.Copyright © 2019. All rights reserved.