本文整理汇总了Java中org.springframework.security.web.authentication.rememberme.PersistentRememberMeToken.getDate方法的典型用法代码示例。如果您正苦于以下问题:Java PersistentRememberMeToken.getDate方法的具体用法?Java PersistentRememberMeToken.getDate怎么用?Java PersistentRememberMeToken.getDate使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.springframework.security.web.authentication.rememberme.PersistentRememberMeToken
的用法示例。
在下文中一共展示了PersistentRememberMeToken.getDate方法的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: 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();
}
示例3: 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();
}
示例4: 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();
}
示例5: 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();
}
示例6: tokenWithSeries
import org.springframework.security.web.authentication.rememberme.PersistentRememberMeToken; //导入方法依赖的package包/类
/**
* Creates a new {@link PersistentRememberMeToken} with a new series value or null of the token is null.
*
* @param token
* @param series
* @return
*/
private PersistentRememberMeToken tokenWithSeries(PersistentRememberMeToken token, String series) {
if (token == null) {
return null;
}
return new PersistentRememberMeToken(token.getUsername(), series, token.getTokenValue(), token.getDate());
}