|
||||||||||
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 egovframework.rfc3.iam.security.authentication.rememberme.JdbcTokenRepositoryImpl
public class JdbcTokenRepositoryImpl
JDBC based persistent login token repository implementation.
Field Summary | |
---|---|
static java.lang.String |
CREATE_TABLE_SQL
Default SQL for creating the database table to store the tokens |
static java.lang.String |
DEF_INSERT_TOKEN_SQL
The default SQL used by createNewToken |
static java.lang.String |
DEF_REMOVE_CURRENT_TOKENS_SQL
tokenValiditySeconds 보다 지난 인증키 삭제 |
static java.lang.String |
DEF_REMOVE_USER_TOKENS_SQL
The default SQL used by removeUserTokens |
static java.lang.String |
DEF_TOKEN_BY_SERIES_SQL
The default SQL used by the getTokenBySeries query |
static java.lang.String |
DEF_UPDATE_TOKEN_SQL
The default SQL used by updateToken |
Constructor Summary | |
---|---|
JdbcTokenRepositoryImpl()
|
Method Summary | |
---|---|
void |
createNewToken(PersistentRememberMeToken token)
|
PersistentRememberMeToken |
getTokenForSeries(java.lang.String seriesId)
Loads the token data for the supplied series identifier. |
void |
removeCurTokens(java.util.Date date)
|
void |
removeUserTokens(java.lang.String series)
|
void |
setCreateTableOnStartup(boolean createTableOnStartup)
Intended for convenience in debugging. |
void |
updateToken(java.lang.String series,
java.lang.String tokenValue,
java.util.Date lastUsed,
java.lang.String userIp)
|
Methods inherited from class org.springframework.jdbc.core.support.JdbcDaoSupport |
---|
getDataSource, getJdbcTemplate, setDataSource, setJdbcTemplate |
Methods inherited from class org.springframework.dao.support.DaoSupport |
---|
afterPropertiesSet |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String CREATE_TABLE_SQL
public static final java.lang.String DEF_TOKEN_BY_SERIES_SQL
public static final java.lang.String DEF_INSERT_TOKEN_SQL
public static final java.lang.String DEF_UPDATE_TOKEN_SQL
public static final java.lang.String DEF_REMOVE_USER_TOKENS_SQL
public static final java.lang.String DEF_REMOVE_CURRENT_TOKENS_SQL
Constructor Detail |
---|
public JdbcTokenRepositoryImpl()
Method Detail |
---|
public void createNewToken(PersistentRememberMeToken token)
createNewToken
in interface PersistentTokenRepository
public void updateToken(java.lang.String series, java.lang.String tokenValue, java.util.Date lastUsed, java.lang.String userIp)
updateToken
in interface PersistentTokenRepository
public PersistentRememberMeToken getTokenForSeries(java.lang.String seriesId)
getTokenForSeries
in interface PersistentTokenRepository
seriesId
-
public void removeUserTokens(java.lang.String series)
removeUserTokens
in interface PersistentTokenRepository
public void removeCurTokens(java.util.Date date)
removeCurTokens
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 |