Package org.springframework.security.authentication

Examples of org.springframework.security.authentication.RememberMeAuthenticationProvider


  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);
  }
View Full Code Here


  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);
  }
View Full Code Here

        LogoutConfigurer<H> logoutConfigurer = http.getConfigurer(LogoutConfigurer.class);
        if(logoutConfigurer != null) {
            logoutConfigurer.addLogoutHandler(logoutHandler);
        }

        RememberMeAuthenticationProvider authenticationProvider = new RememberMeAuthenticationProvider(
                key);
        authenticationProvider = postProcess(authenticationProvider);
        http.authenticationProvider(authenticationProvider);

        initDefaultLoginFilter(http);
View Full Code Here

//            aap.afterPropertiesSet();
//            allAuthProviders.add(aap);
//        }

        //remember me
        RememberMeAuthenticationProvider rap = new RememberMeAuthenticationProvider();
        rap.setKey(config.getRememberMeService().getKey());
        rap.afterPropertiesSet();
        allAuthProviders.add(rap);

        setProviders(allAuthProviders);

        this.securityConfig = new SecurityManagerConfig(config);
View Full Code Here

  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);
  }
View Full Code Here

        return new InMemoryUserDetailsManager(usersPproperties);
    }

    @Bean
    public AuthenticationProvider rememberMeAuthenticationProvider() {
        return new RememberMeAuthenticationProvider(REMEMBER_ME_DIGEST_KEY);
    }
View Full Code Here

        return springDataTokenRepository;
    }

    @Bean
    public RememberMeAuthenticationProvider rememberMeAuthenticationProvider() {
        RememberMeAuthenticationProvider rememberMeAuthenticationProvider = new RememberMeAuthenticationProvider(REMEMBER_ME_KEY);
        return rememberMeAuthenticationProvider;
    }
View Full Code Here

TOP

Related Classes of org.springframework.security.authentication.RememberMeAuthenticationProvider

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.