Class JdbcTokenRepository

java.lang.Object
com.codename1.backend.security.rememberme.JdbcTokenRepository
All Implemented Interfaces:
PersistentTokenRepository

public final class JdbcTokenRepository extends Object implements PersistentTokenRepository

Remembered sign-ins kept in the server's database, in the cn1_persistent_logins table of SecuritySchema, so that any process of a deployment recognizes a cookie any other issued.

http.rememberMe(remember -> remember.tokenRepository(new JdbcTokenRepository(dataSource)));

A token is replaced by one UPDATE that names the hash it expects to find, and counted as replaced only when that changed exactly one row.