|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.dao.support.DaoSupport org.springframework.jdbc.core.support.JdbcDaoSupport org.springframework.security.web.authentication.rememberme.JdbcTokenRepositoryImpl
public class JdbcTokenRepositoryImpl
JDBC based persistent login token repository implementation.
Field Summary | |
---|---|
static String |
CREATE_TABLE_SQL
Default SQL for creating the database table to store the tokens |
static String |
DEF_INSERT_TOKEN_SQL
The default SQL used by createNewToken |
static String |
DEF_REMOVE_USER_TOKENS_SQL
The default SQL used by removeUserTokens |
static String |
DEF_TOKEN_BY_SERIES_SQL
The default SQL used by the getTokenBySeries query |
static String |
DEF_UPDATE_TOKEN_SQL
The default SQL used by updateToken |
Fields inherited from class org.springframework.dao.support.DaoSupport |
---|
logger |
Constructor Summary | |
---|---|
JdbcTokenRepositoryImpl()
|
Method Summary | |
---|---|
void |
createNewToken(PersistentRememberMeToken token)
|
PersistentRememberMeToken |
getTokenForSeries(String seriesId)
Loads the token data for the supplied series identifier. |
protected void |
initDao()
|
void |
removeUserTokens(String username)
|
void |
setCreateTableOnStartup(boolean createTableOnStartup)
Intended for convenience in debugging. |
void |
updateToken(String series,
String tokenValue,
Date lastUsed)
|
Methods inherited from class org.springframework.jdbc.core.support.JdbcDaoSupport |
---|
checkDaoConfig, createJdbcTemplate, getConnection, getDataSource, getExceptionTranslator, getJdbcTemplate, initTemplateConfig, releaseConnection, setDataSource, setJdbcTemplate |
Methods inherited from class org.springframework.dao.support.DaoSupport |
---|
afterPropertiesSet |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String CREATE_TABLE_SQL
public static final String DEF_TOKEN_BY_SERIES_SQL
public static final String DEF_INSERT_TOKEN_SQL
public static final String DEF_UPDATE_TOKEN_SQL
public static final String DEF_REMOVE_USER_TOKENS_SQL
Constructor Detail |
---|
public JdbcTokenRepositoryImpl()
Method Detail |
---|
protected void initDao()
initDao
in class DaoSupport
public void createNewToken(PersistentRememberMeToken token)
createNewToken
in interface PersistentTokenRepository
public void updateToken(String series, String tokenValue, Date lastUsed)
updateToken
in interface PersistentTokenRepository
public PersistentRememberMeToken getTokenForSeries(String seriesId)
getTokenForSeries
in interface PersistentTokenRepository
seriesId
-
public void removeUserTokens(String username)
removeUserTokens
in interface PersistentTokenRepository
public void setCreateTableOnStartup(boolean createTableOnStartup)
createTableOnStartup
- set to true to execute the
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |