Package org.springframework.security.core.userdetails.cache

Examples of org.springframework.security.core.userdetails.cache.NullUserCache


        return new User("john", "password", true, true, true, true,
                AuthorityUtils.createAuthorityList("ROLE_ONE", "ROLE_TWO"));
    }

    public void testCacheOperation() throws Exception {
        NullUserCache cache = new NullUserCache();
        cache.putUserInCache(getUser());
        assertNull(cache.getUserFromCache(null));
        cache.removeUserFromCache(null);
    }
View Full Code Here


        filter.setAuthenticationEntryPoint(new DigestAuthenticationEntryPoint());
        assertTrue(filter.getAuthenticationEntryPoint() != null);

        filter.setUserCache(null);
        assertNull(filter.getUserCache());
        filter.setUserCache(new NullUserCache());
        assertNotNull(filter.getUserCache());
    }
View Full Code Here

TOP

Related Classes of org.springframework.security.core.userdetails.cache.NullUserCache

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.