Class PersistentRememberMeToken
java.lang.Object
com.codename1.backend.security.rememberme.PersistentRememberMeToken
One remembered sign-in, as the server keeps it: whose it is, the series the
cookie names, the hash of the token the cookie must carry next, and when it
was last used.
-
Constructor Summary
ConstructorsConstructorDescriptionPersistentRememberMeToken(String username, String series, String tokenHash, long lastUsed) PersistentRememberMeToken(String username, String series, String tokenHash, long lastUsed, String previousTokenHash) Includes the token replaced atlastUsed, for a bounded concurrent-use grace.PersistentRememberMeToken(String username, String series, String tokenHash, long lastUsed, String previousTokenHash, String userAgent, String ipAddress) A token with the device it was issued to, for a "signed-in devices" page. -
Method Summary
Modifier and TypeMethodDescriptionThe client address the series was issued to, or null when it was not recorded.longThe hash replaced atgetLastUsed(), or null before the first rotation.TheUser-Agentthe series was issued to, or null when it was not recorded.
-
Constructor Details
-
PersistentRememberMeToken
-
PersistentRememberMeToken
-
PersistentRememberMeToken
public PersistentRememberMeToken(String username, String series, String tokenHash, long lastUsed, String previousTokenHash, String userAgent, String ipAddress) A token with the device it was issued to, for a "signed-in devices" page.
Parameters
userAgent: theUser-Agentof the sign-in, or nullipAddress: the client address of the sign-in, or null
-
-
Method Details
-
getUsername
-
getSeries
-
getTokenHash
-
getLastUsed
public long getLastUsed() -
getPreviousTokenHash
The hash replaced atgetLastUsed(), or null before the first rotation. -
getUserAgent
TheUser-Agentthe series was issued to, or null when it was not recorded. -
getIpAddress
The client address the series was issued to, or null when it was not recorded. It is the address at sign-in; the series may since be used from another.
-