Java Code Examples for org.springframework.security.web.authentication.RememberMeServices

The following examples show how to use org.springframework.security.web.authentication.RememberMeServices. These examples are extracted from open source projects. 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 Project: TeamDojo   Source File: SecurityConfiguration.java    License: Apache License 2.0 5 votes vote down vote up
public SecurityConfiguration(AuthenticationManagerBuilder authenticationManagerBuilder, UserDetailsService userDetailsService,
                             JHipsterProperties jHipsterProperties, RememberMeServices rememberMeServices, CorsFilter corsFilter, SecurityProblemSupport problemSupport) {
    this.authenticationManagerBuilder = authenticationManagerBuilder;
    this.userDetailsService = userDetailsService;
    this.jHipsterProperties = jHipsterProperties;
    this.rememberMeServices = rememberMeServices;
    this.corsFilter = corsFilter;
    this.problemSupport = problemSupport;
}
 
Example 2
Source Project: Spring-5.0-Projects   Source File: SecurityConfiguration.java    License: MIT License 5 votes vote down vote up
public SecurityConfiguration(AuthenticationManagerBuilder authenticationManagerBuilder, UserDetailsService userDetailsService, 
    JHipsterProperties jHipsterProperties, RememberMeServices rememberMeServices, CorsFilter corsFilter, SecurityProblemSupport problemSupport) {
    this.authenticationManagerBuilder = authenticationManagerBuilder;
    this.userDetailsService = userDetailsService;
    this.jHipsterProperties = jHipsterProperties;
    this.rememberMeServices = rememberMeServices;
    this.corsFilter = corsFilter;
    this.problemSupport = problemSupport;
}
 
Example 3
@Override
   public void setRememberMeServices(RememberMeServices rememberMeServices) {
if (logger.isDebugEnabled()) {
    logger.debug("setRememberMeServices() enter: rememberMeServices="
	    + rememberMeServices.toString());
}
super.setRememberMeServices(rememberMeServices);
   }
 
Example 4
@Bean
public RememberMeServices persistentTokenBasedRememberMeServices() {
	VaadinPersistentTokenBasedRememberMeServices services = new VaadinPersistentTokenBasedRememberMeServices(
			"vaadin4spring", 
			userDetailsService, 
			jdbcTokenRepository());
	services.setCookieName("REMEMBERME");
	return services;
}
 
Example 5
@Bean
public RememberMeServices getRememberMeServices() {
	PersistentTokenBasedRememberMeServices services = new PersistentTokenBasedRememberMeServices(
			rememberMeToken, new BasicRememberMeUserDetailsService(), new InMemoryTokenRepositoryImpl());
	services.setParameter(rememberMeParameter);
	return services;
}
 
Example 6
@Bean
public RememberMeServices getRememberMeServices() {
	JdbcUserDetailsManager jdbcUserDetailsManager = new JdbcUserDetailsManager();
	jdbcUserDetailsManager.setDataSource(dataSource);

	JdbcTokenRepositoryImpl jdbcTokenRepositoryImpl = new JdbcTokenRepositoryImpl();
	jdbcTokenRepositoryImpl.setDataSource(dataSource);

	PersistentTokenBasedRememberMeServices services = new PersistentTokenBasedRememberMeServices(
			rememberMeToken, jdbcUserDetailsManager, jdbcTokenRepositoryImpl);
	services.setParameter(rememberMeParameter);
	return services;
}
 
Example 7
Source Project: Taroco   Source File: WebSecurityConfigration.java    License: Apache License 2.0 4 votes vote down vote up
/**
 * RememberMeServices
 */
public RememberMeServices rememberMeServices() {
    final JdbcTokenRepositoryImpl tokenRepository = new JdbcTokenRepositoryImpl();
    tokenRepository.setDataSource(dataSource);
    return new PersistentTokenBasedRememberMeServices(RM_KEY, userNameUserDetailsService, tokenRepository);
}
 
Example 8
public void setRememberMeServices(RememberMeServices rememberMeServices) {
  super.setRememberMeServices(rememberMeServices);
}
 
Example 9
public void setRememberMeServices(RememberMeServices rememberMeServices) {
	Assert.notNull(rememberMeServices, "rememberMeServices cannot be null");
	this.rememberMeServices = rememberMeServices;
}
 
Example 10
Source Project: activiti6-boot2   Source File: SecurityConfiguration.java    License: Apache License 2.0 4 votes vote down vote up
@Bean
public RememberMeServices rememberMeServices() {
  return new CustomPersistentRememberMeServices(env, userDetailsService());
}
 
Example 11
Source Project: zhcet-web   Source File: FirebaseAutheticationFilter.java    License: Apache License 2.0 4 votes vote down vote up
@Override
@Autowired(required = false)
public void setRememberMeServices(RememberMeServices rememberMeServices) {
    super.setRememberMeServices(rememberMeServices);
}
 
Example 12
Source Project: todolist   Source File: WebSecurityConfiguration.java    License: MIT License 4 votes vote down vote up
@Bean
public RememberMeServices rememberMeServices() throws Exception {
    TokenBasedRememberMeServices result = new TokenBasedRememberMeServices("hell0w0r1d", service);
    result.setTokenValiditySeconds(2419200);
    return result;
}
 
Example 13
public void setRememberMeServices(RememberMeServices rememberMeServices) {
	Assert.notNull(rememberMeServices, "rememberMeServices cannot be null");
	this.rememberMeServices = rememberMeServices;
}
 
Example 14
Source Project: ranger   Source File: MyRememberMeFilter.java    License: Apache License 2.0 4 votes vote down vote up
public MyRememberMeFilter(AuthenticationManager authenticationManager, RememberMeServices rememberMeServices) {
	super(authenticationManager, rememberMeServices);
}
 
Example 15
@Override
@Autowired(required = false)
public void setRememberMeServices(RememberMeServices rememberMeServices) {
	super.setRememberMeServices(rememberMeServices);
}
 
Example 16
@Override
@Autowired(required = false)
public void setRememberMeServices(RememberMeServices rememberMeServices) {
	super.setRememberMeServices(rememberMeServices);
}