org.springframework.security.web.authentication.rememberme.TokenBasedRememberMeServices Java Examples
The following examples show how to use
org.springframework.security.web.authentication.rememberme.TokenBasedRememberMeServices.
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: WebSecurityConfiguration.java From todolist with MIT License | 4 votes |
@Bean public RememberMeServices rememberMeServices() throws Exception { TokenBasedRememberMeServices result = new TokenBasedRememberMeServices("hell0w0r1d", service); result.setTokenValiditySeconds(2419200); return result; }
Example #2
Source File: SecurityConfig.java From thymeleafexamples-layouts with Apache License 2.0 | 4 votes |
@Bean public TokenBasedRememberMeServices rememberMeServices() { return new TokenBasedRememberMeServices("remember-me-key", accountService); }