Java Code Examples for org.springframework.security.web.authentication.rememberme.PersistentRememberMeToken#getDate()

The following examples show how to use org.springframework.security.web.authentication.rememberme.PersistentRememberMeToken#getDate() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: PersistentLogins.java    From zxl with Apache License 2.0 5 votes vote down vote up
public PersistentLogins(PersistentRememberMeToken token) {
	super();
	this.series = token.getSeries();
	this.username = token.getUsername();
	this.tokenValue = token.getTokenValue();
	this.lastUsedDate = token.getDate();
}
 
Example 2
Source File: PersistentTokenService.java    From zhcet-web with Apache License 2.0 5 votes vote down vote up
private static PersistentLogin getLoginFromToken(PersistentRememberMeToken token) {
    return new PersistentLogin(
            token.getSeries(),
            token.getUsername(),
            token.getTokenValue(),
            token.getDate()
    );
}
 
Example 3
Source File: PersistentLogin.java    From Spring-Security-Third-Edition with MIT License 4 votes vote down vote up
public PersistentLogin(PersistentRememberMeToken token){
    this.series = token.getSeries();
    this.username = token.getUsername();
    this.token = token.getTokenValue();
    this.lastUsed = token.getDate();
}
 
Example 4
Source File: RememberMeToken.java    From JiwhizBlogWeb with Apache License 2.0 4 votes vote down vote up
public RememberMeToken(PersistentRememberMeToken token){
    this.series = token.getSeries();
    this.username = token.getUsername();
    this.tokenValue = token.getTokenValue();
    this.date = token.getDate();
}
 
Example 5
Source File: PersistentLogin.java    From Spring-Security-Third-Edition with MIT License 4 votes vote down vote up
public PersistentLogin(PersistentRememberMeToken token){
    this.series = token.getSeries();
    this.username = token.getUsername();
    this.token = token.getTokenValue();
    this.lastUsed = token.getDate();
}
 
Example 6
Source File: PersistentLogin.java    From Spring-Security-Third-Edition with MIT License 4 votes vote down vote up
public PersistentLogin(PersistentRememberMeToken token){
    this.series = token.getSeries();
    this.username = token.getUsername();
    this.token = token.getTokenValue();
    this.lastUsed = token.getDate();
}
 
Example 7
Source File: PersistentLogin.java    From Spring-Security-Third-Edition with MIT License 4 votes vote down vote up
public PersistentLogin(PersistentRememberMeToken token){
    this.series = token.getSeries();
    this.username = token.getUsername();
    this.token = token.getTokenValue();
    this.lastUsed = token.getDate();
}
 
Example 8
Source File: PersistentLogin.java    From Spring-Security-Third-Edition with MIT License 4 votes vote down vote up
public PersistentLogin(PersistentRememberMeToken token){
    this.series = token.getSeries();
    this.username = token.getUsername();
    this.token = token.getTokenValue();
    this.lastUsed = token.getDate();
}
 
Example 9
Source File: PersistentLogin.java    From Spring-Security-Third-Edition with MIT License 4 votes vote down vote up
public PersistentLogin(PersistentRememberMeToken token){
    this.series = token.getSeries();
    this.username = token.getUsername();
    this.token = token.getTokenValue();
    this.lastUsed = token.getDate();
}
 
Example 10
Source File: PersistentLogin.java    From Spring-Security-Third-Edition with MIT License 4 votes vote down vote up
public PersistentLogin(PersistentRememberMeToken token){
    this.series = token.getSeries();
    this.username = token.getUsername();
    this.token = token.getTokenValue();
    this.lastUsed = token.getDate();
}
 
Example 11
Source File: PersistentLogin.java    From Spring-Security-Third-Edition with MIT License 4 votes vote down vote up
public PersistentLogin(PersistentRememberMeToken token){
    this.series = token.getSeries();
    this.username = token.getUsername();
    this.token = token.getTokenValue();
    this.lastUsed = token.getDate();
}
 
Example 12
Source File: PersistentLogin.java    From Spring-Security-Third-Edition with MIT License 4 votes vote down vote up
public PersistentLogin(PersistentRememberMeToken token){
    this.series = token.getSeries();
    this.username = token.getUsername();
    this.token = token.getTokenValue();
    this.lastUsed = token.getDate();
}
 
Example 13
Source File: PersistentLogin.java    From Spring-Security-Third-Edition with MIT License 4 votes vote down vote up
public PersistentLogin(PersistentRememberMeToken token){
    this.series = token.getSeries();
    this.username = token.getUsername();
    this.token = token.getTokenValue();
    this.lastUsed = token.getDate();
}
 
Example 14
Source File: PersistentLogin.java    From Spring-Security-Third-Edition with MIT License 4 votes vote down vote up
public PersistentLogin(PersistentRememberMeToken token){
    this.series = token.getSeries();
    this.username = token.getUsername();
    this.token = token.getTokenValue();
    this.lastUsed = token.getDate();
}
 
Example 15
Source File: PersistentLogin.java    From Spring-Security-Third-Edition with MIT License 4 votes vote down vote up
public PersistentLogin(PersistentRememberMeToken token){
    this.series = token.getSeries();
    this.username = token.getUsername();
    this.token = token.getTokenValue();
    this.lastUsed = token.getDate();
}
 
Example 16
Source File: PersistentLogin.java    From Spring-Security-Third-Edition with MIT License 4 votes vote down vote up
public PersistentLogin(PersistentRememberMeToken token){
    this.series = token.getSeries();
    this.username = token.getUsername();
    this.token = token.getTokenValue();
    this.lastUsed = token.getDate();
}
 
Example 17
Source File: PersistentLogin.java    From Spring-Security-Third-Edition with MIT License 4 votes vote down vote up
public PersistentLogin(PersistentRememberMeToken token){
    this.series = token.getSeries();
    this.username = token.getUsername();
    this.token = token.getTokenValue();
    this.lastUsed = token.getDate();
}
 
Example 18
Source File: PersistentLogin.java    From Spring-Security-Third-Edition with MIT License 4 votes vote down vote up
public PersistentLogin(PersistentRememberMeToken token){
    this.series = token.getSeries();
    this.username = token.getUsername();
    this.token = token.getTokenValue();
    this.lastUsed = token.getDate();
}
 
Example 19
Source File: PersistentLogin.java    From Spring-Security-Third-Edition with MIT License 4 votes vote down vote up
public PersistentLogin(PersistentRememberMeToken token){
    this.series = token.getSeries();
    this.username = token.getUsername();
    this.token = token.getTokenValue();
    this.lastUsed = token.getDate();
}
 
Example 20
Source File: IpAwarePersistentTokenRepository.java    From maven-framework-project with MIT License 3 votes vote down vote up
/**
 * 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());
}