org.springframework.security.authentication.RememberMeAuthenticationProvider Java Examples

The following examples show how to use org.springframework.security.authentication.RememberMeAuthenticationProvider. 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: SecurityConfig.java    From para with Apache License 2.0 6 votes vote down vote up
/**
 * Configures the authentication providers.
 *
 * @param auth a builder
 * @throws Exception ex
 */
@Override
protected void configure(AuthenticationManagerBuilder auth) throws Exception {
	OpenIDAuthenticationProvider openidProvider = new OpenIDAuthenticationProvider();
	openidProvider.setAuthenticationUserDetailsService(new SimpleUserService());
	auth.authenticationProvider(openidProvider);

	RememberMeAuthenticationProvider rmeProvider = new RememberMeAuthenticationProvider(Config.APP_SECRET_KEY);
	auth.authenticationProvider(rmeProvider);

	JWTAuthenticationProvider jwtProvider = new JWTAuthenticationProvider();
	auth.authenticationProvider(jwtProvider);

	LDAPAuthenticationProvider ldapProvider = new LDAPAuthenticationProvider();
	auth.authenticationProvider(ldapProvider);
}
 
Example #2
Source File: SecurityConfiguration.java    From activiti6-boot2 with Apache License 2.0 4 votes vote down vote up
@Bean
public RememberMeAuthenticationProvider rememberMeAuthenticationProvider() {
    return new RememberMeAuthenticationProvider(env.getProperty("appconf.security.rememberme.key"));
}