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

Examples of org.springframework.security.web.authentication.preauth.PreAuthenticatedAuthenticationProvider.afterPropertiesSet()


    @Test(expected = IllegalArgumentException.class)
    public final void afterPropertiesSet() {
        PreAuthenticatedAuthenticationProvider provider = new PreAuthenticatedAuthenticationProvider();

        provider.afterPropertiesSet();
    }

    @Test
    public final void authenticateInvalidToken() throws Exception {
        UserDetails ud = new User("dummyUser", "dummyPwd", true, true, true, true, AuthorityUtils.NO_AUTHORITIES );
View Full Code Here


    }

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

    private AuthenticationUserDetailsService<PreAuthenticatedAuthenticationToken>
            getPreAuthenticatedUserDetailsService(final UserDetails aUserDetails) {
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.