Package org.springframework.security.providers.dao

Examples of org.springframework.security.providers.dao.UserCache


      public void configure(Binder binder) {
        // ad hoc UserCache impl
        binder.bind(UserCache.class).toProvider(new Provider<UserCache>() {

          public UserCache get() {
            return new UserCache() {

              @Override
              public void removeUserFromCache(String username) {
              }
View Full Code Here


     */
    public static void flushAuthenticationUserCache(String userName) {                               
        ApplicationContext ctx =
            WebApplicationContextUtils.getRequiredWebApplicationContext(servletContext);
    try {
      UserCache userCache = (UserCache) ctx.getBean("userCache");
      if (userCache != null) {
        userCache.removeUserFromCache(userName);
      }
    } catch (NoSuchBeanDefinitionException exc) {
      log.debug("No userCache bean in context", exc);
    }
    }
View Full Code Here

TOP

Related Classes of org.springframework.security.providers.dao.UserCache

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.