Package org.springframework.security.config.authentication

Examples of org.springframework.security.config.authentication.CachingUserDetailsService.loadUserByUsername()


        setContext("<jdbc-user-service id='myUserService' cache-ref='userCache' data-source-ref='dataSource'/>"
                + DATA_SOURCE +USER_CACHE_XML);
        CachingUserDetailsService cachingUserService =
            (CachingUserDetailsService) appContext.getBean("myUserService" + AbstractUserDetailsServiceBeanDefinitionParser.CACHING_SUFFIX);
        assertSame(cachingUserService.getUserCache(), appContext.getBean("userCache"));
        assertNotNull(cachingUserService.loadUserByUsername("rod"));
        assertNotNull(cachingUserService.loadUserByUsername("rod"));
    }

    @Test
    public void isSupportedByAuthenticationProviderElement() {
View Full Code Here


                + DATA_SOURCE +USER_CACHE_XML);
        CachingUserDetailsService cachingUserService =
            (CachingUserDetailsService) appContext.getBean("myUserService" + AbstractUserDetailsServiceBeanDefinitionParser.CACHING_SUFFIX);
        assertSame(cachingUserService.getUserCache(), appContext.getBean("userCache"));
        assertNotNull(cachingUserService.loadUserByUsername("rod"));
        assertNotNull(cachingUserService.loadUserByUsername("rod"));
    }

    @Test
    public void isSupportedByAuthenticationProviderElement() {
        setContext(
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.