Package org.springframework.security.web.authentication.preauth

Examples of org.springframework.security.web.authentication.preauth.PreAuthenticatedAuthenticationProvider


        assertFalse(provider.supports(Authentication.class));
    }

    @Test
    public final void supportsPreAuthenticatedAuthenticationToken() throws Exception {
        PreAuthenticatedAuthenticationProvider provider = getProvider(null);
        assertTrue(provider.supports(PreAuthenticatedAuthenticationToken.class));
    }
View Full Code Here


        assertTrue(provider.supports(PreAuthenticatedAuthenticationToken.class));
    }

    @Test
    public void getSetOrder() throws Exception {
        PreAuthenticatedAuthenticationProvider provider = getProvider(null);
        provider.setOrder(333);
        assertEquals(provider.getOrder(), 333);
    }
View Full Code Here

        provider.setOrder(333);
        assertEquals(provider.getOrder(), 333);
    }

    private PreAuthenticatedAuthenticationProvider getProvider(UserDetails aUserDetails) throws Exception {
        PreAuthenticatedAuthenticationProvider result = new PreAuthenticatedAuthenticationProvider();
        result.setPreAuthenticatedUserDetailsService(getPreAuthenticatedUserDetailsService(aUserDetails));
        result.afterPropertiesSet();
        return result;
    }
View Full Code Here

     *
     * @see org.springframework.security.config.annotation.SecurityConfigurerAdapter#init(org.springframework.security.config.annotation.SecurityBuilder)
     */
    @Override
    public void init(H http) throws Exception {
        PreAuthenticatedAuthenticationProvider authenticationProvider = new PreAuthenticatedAuthenticationProvider();
        authenticationProvider.setPreAuthenticatedUserDetailsService(getUserDetailsService());
        authenticationProvider = postProcess(authenticationProvider);

        http
            .authenticationProvider(authenticationProvider)
            .setSharedObject(AuthenticationEntryPoint.class,new Http403ForbiddenEntryPoint());
View Full Code Here

        return this;
    }

    @Override
    public void init(H http) throws Exception {
        PreAuthenticatedAuthenticationProvider authenticationProvider = new PreAuthenticatedAuthenticationProvider();
        authenticationProvider.setPreAuthenticatedUserDetailsService(getAuthenticationUserDetailsService(http));

        http
            .authenticationProvider(authenticationProvider)
            .setSharedObject(AuthenticationEntryPoint.class,new Http403ForbiddenEntryPoint());
    }
View Full Code Here

TOP

Related Classes of org.springframework.security.web.authentication.preauth.PreAuthenticatedAuthenticationProvider

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.