本文整理汇总了Java中org.springframework.security.web.authentication.rememberme.PersistentRememberMeToken.getSeries方法的典型用法代码示例。如果您正苦于以下问题:Java PersistentRememberMeToken.getSeries方法的具体用法?Java PersistentRememberMeToken.getSeries怎么用?Java PersistentRememberMeToken.getSeries使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.springframework.security.web.authentication.rememberme.PersistentRememberMeToken
的用法示例。
在下文中一共展示了PersistentRememberMeToken.getSeries方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: RememberMeToken
import org.springframework.security.web.authentication.rememberme.PersistentRememberMeToken; //导入方法依赖的package包/类
/**
* <p>Constructor for RememberMeToken.</p>
*
* @param token a {@link org.springframework.security.web.authentication.rememberme.PersistentRememberMeToken} object.
*/
public RememberMeToken(PersistentRememberMeToken token) {
this.series = token.getSeries();
this.username = token.getUsername();
this.tokenValue = token.getTokenValue();
this.date = token.getDate();
}
示例2: createNewToken
import org.springframework.security.web.authentication.rememberme.PersistentRememberMeToken; //导入方法依赖的package包/类
/**
* The method provides the functionality to store a new token in the token repository
* @param token The token that will be stored in the token repository
*/
@Override
public synchronized void createNewToken(PersistentRememberMeToken token) {
PersistentRememberMeToken current = this.seriesTokens.get(token.getSeries());
if(current != null) {
throw new DataIntegrityViolationException("Series Id \'" + token.getSeries() + "\' already exists!");
} else {
this.seriesTokens.put(token.getSeries(), token);
saveTokens();
}
}
示例3: PersistentLogins
import org.springframework.security.web.authentication.rememberme.PersistentRememberMeToken; //导入方法依赖的package包/类
public PersistentLogins(PersistentRememberMeToken token) {
super();
this.series = token.getSeries();
this.username = token.getUsername();
this.tokenValue = token.getTokenValue();
this.lastUsedDate = token.getDate();
}
示例4: PersistentLogin
import org.springframework.security.web.authentication.rememberme.PersistentRememberMeToken; //导入方法依赖的package包/类
public PersistentLogin(PersistentRememberMeToken token){
this.series = token.getSeries();
this.username = token.getUsername();
this.token = token.getTokenValue();
this.lastUsed = token.getDate();
}
示例5: SessionToken
import org.springframework.security.web.authentication.rememberme.PersistentRememberMeToken; //导入方法依赖的package包/类
public SessionToken(PersistentRememberMeToken persistentRememberMeToken){
this.username = persistentRememberMeToken.getUsername();
this.series = persistentRememberMeToken.getSeries();
this.tokenValue = persistentRememberMeToken.getTokenValue();
this.date = persistentRememberMeToken.getDate();
}
示例6: RememberMeToken
import org.springframework.security.web.authentication.rememberme.PersistentRememberMeToken; //导入方法依赖的package包/类
public RememberMeToken(PersistentRememberMeToken token){
this.series = token.getSeries();
this.username = token.getUsername();
this.tokenValue = token.getTokenValue();
this.date = token.getDate();
}