Package org.springframework.security.authentication

Examples of org.springframework.security.authentication.RememberMeAuthenticationProvider.afterPropertiesSet()


    @Marker( SpringSecurityServices.class )
    public final AuthenticationProvider buildRememberMeAuthenticationProvider(
            @Inject @Value( "${spring-security.rememberme.key}" ) final String rememberMeKey ) throws Exception {

        final RememberMeAuthenticationProvider provider = new RememberMeAuthenticationProvider(rememberMeKey);
        provider.afterPropertiesSet();
        return provider;
    }

    @Marker( SpringSecurityServices.class )
    public final AuthenticationProvider buildDaoAuthenticationProvider(
View Full Code Here


    @Marker( SpringSecurityServices.class )
    public final AuthenticationProvider buildRememberMeAuthenticationProvider(
            @Inject @Value( "${spring-security.rememberme.key}" ) final String rememberMeKey ) throws Exception {

        final RememberMeAuthenticationProvider provider = new RememberMeAuthenticationProvider(rememberMeKey);
        provider.afterPropertiesSet();
        return provider;
    }

    @Marker( SpringSecurityServices.class )
    public final AuthenticationProvider buildDaoAuthenticationProvider(
View Full Code Here

    public void testDetectsMissingKey() throws Exception {
        RememberMeAuthenticationProvider aap = new RememberMeAuthenticationProvider();

        try {
            aap.afterPropertiesSet();
            fail("Should have thrown IllegalArgumentException");
        } catch (IllegalArgumentException expected) {
            assertTrue(true);
        }
    }
View Full Code Here

    }

    public void testGettersSetters() throws Exception {
        RememberMeAuthenticationProvider aap = new RememberMeAuthenticationProvider();
        aap.setKey("qwerty");
        aap.afterPropertiesSet();
        assertEquals("qwerty", aap.getKey());
    }

    public void testIgnoresClassesItDoesNotSupport() throws Exception {
        RememberMeAuthenticationProvider aap = new RememberMeAuthenticationProvider();
View Full Code Here

//        }

        //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

TOP
Copyright © 2018 www.massapi.com. 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.