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

The following examples show how to use org.springframework.security.web.authentication.RememberMeServices. 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: SecurityConfiguration.java    From TeamDojo with 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 File: SecurityConfiguration.java    From Spring-5.0-Projects with 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
Source File: RangerUsernamePasswordAuthenticationFilter.java    From ranger with Apache License 2.0 5 votes vote down vote up
@Override
   public void setRememberMeServices(RememberMeServices rememberMeServices) {
if (logger.isDebugEnabled()) {
    logger.debug("setRememberMeServices() enter: rememberMeServices="
	    + rememberMeServices.toString());
}
super.setRememberMeServices(rememberMeServices);
   }
 
Example #4
Source File: SecurityConfig.java    From Vaadin4Spring-MVP-Sample-SpringSecurity with Apache License 2.0 5 votes vote down vote up
@Bean
public RememberMeServices persistentTokenBasedRememberMeServices() {
	VaadinPersistentTokenBasedRememberMeServices services = new VaadinPersistentTokenBasedRememberMeServices(
			"vaadin4spring", 
			userDetailsService, 
			jdbcTokenRepository());
	services.setCookieName("REMEMBERME");
	return services;
}
 
Example #5
Source File: MultiHttpSecurityConfig.java    From enhanced-pet-clinic with Apache License 2.0 5 votes vote down vote up
@Bean
public RememberMeServices getRememberMeServices() {
	PersistentTokenBasedRememberMeServices services = new PersistentTokenBasedRememberMeServices(
			rememberMeToken, new BasicRememberMeUserDetailsService(), new InMemoryTokenRepositoryImpl());
	services.setParameter(rememberMeParameter);
	return services;
}
 
Example #6
Source File: MultiHttpSecurityConfig.java    From enhanced-pet-clinic with Apache License 2.0 5 votes vote down vote up
@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 File: WebSecurityConfigration.java    From Taroco with 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
Source File: LogsearchUsernamePasswordAuthenticationFilter.java    From ambari-logsearch with Apache License 2.0 4 votes vote down vote up
public void setRememberMeServices(RememberMeServices rememberMeServices) {
  super.setRememberMeServices(rememberMeServices);
}
 
Example #9
Source File: BasicAuthenticationFilter.java    From document-management-software with GNU Lesser General Public License v3.0 4 votes vote down vote up
public void setRememberMeServices(RememberMeServices rememberMeServices) {
	Assert.notNull(rememberMeServices, "rememberMeServices cannot be null");
	this.rememberMeServices = rememberMeServices;
}
 
Example #10
Source File: SecurityConfiguration.java    From activiti6-boot2 with Apache License 2.0 4 votes vote down vote up
@Bean
public RememberMeServices rememberMeServices() {
  return new CustomPersistentRememberMeServices(env, userDetailsService());
}
 
Example #11
Source File: FirebaseAutheticationFilter.java    From zhcet-web with 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 File: WebSecurityConfiguration.java    From todolist with 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
Source File: CustomOAuth2RequestFilter.java    From cloudstreetmarket.com with GNU General Public License v3.0 4 votes vote down vote up
public void setRememberMeServices(RememberMeServices rememberMeServices) {
	Assert.notNull(rememberMeServices, "rememberMeServices cannot be null");
	this.rememberMeServices = rememberMeServices;
}
 
Example #14
Source File: MyRememberMeFilter.java    From ranger with Apache License 2.0 4 votes vote down vote up
public MyRememberMeFilter(AuthenticationManager authenticationManager, RememberMeServices rememberMeServices) {
	super(authenticationManager, rememberMeServices);
}
 
Example #15
Source File: SpringSocialAuthenticationFilter.java    From AIDR with GNU Affero General Public License v3.0 4 votes vote down vote up
@Override
@Autowired(required = false)
public void setRememberMeServices(RememberMeServices rememberMeServices) {
	super.setRememberMeServices(rememberMeServices);
}
 
Example #16
Source File: SpringSocialAuthenticationFilter.java    From AIDR with GNU Affero General Public License v3.0 4 votes vote down vote up
@Override
@Autowired(required = false)
public void setRememberMeServices(RememberMeServices rememberMeServices) {
	super.setRememberMeServices(rememberMeServices);
}