Java 类org.springframework.security.core.userdetails.UserCache 实例源码

项目:bdf2    文件:DigestPasswordValidationCallbackHandler.java   
public void setApplicationContext(ApplicationContext applicationContext)
        throws BeansException {
    if (StringUtils.isEmpty(userCacheBean)) {
        if (applicationContext.containsBean(userServiceBean)) {
            userDetailsService = (UserDetailsService) applicationContext
                    .getBean(userServiceBean);
        } else {
            throw new RuntimeException("Can not found spring bean["
                    + userServiceBean + "] implements "
                    + UserDetailsService.class.getName() + " interface!");
        }
    } else {
        if (applicationContext.containsBean(userCacheBean)) {
            userCache = (UserCache) applicationContext
                    .getBean(userServiceBean);
        } else {
            throw new RuntimeException("Can not found spring bean["
                    + userCacheBean + "] implements "
                    + UserCache.class.getName() + " interface!");
        }

    }
}
项目:gauravbytes    文件:App.java   
@Bean
DigestAuthenticationFilter digestFilter(DigestAuthenticationEntryPoint digestAuthenticationEntryPoint, UserCache digestUserCache, UserDetailsService userDetailsService) {
    DigestAuthenticationFilter filter = new DigestAuthenticationFilter();
    filter.setAuthenticationEntryPoint(digestAuthenticationEntryPoint);
    filter.setUserDetailsService(userDetailsService);
    filter.setUserCache(digestUserCache);
    return filter;
}
项目:gauravbytes    文件:App.java   
@Bean
DigestAuthenticationFilter digestFilter(DigestAuthenticationEntryPoint digestAuthenticationEntryPoint, UserCache digestUserCache, UserDetailsService userDetailsService) {
    DigestAuthenticationFilter filter = new DigestAuthenticationFilter();
    filter.setAuthenticationEntryPoint(digestAuthenticationEntryPoint);
    filter.setUserDetailsService(userDetailsService);
    filter.setUserCache(digestUserCache);
    return filter;
}
项目:jeffaschenk-commons    文件:SecurityServiceProviderImpl.java   
@Override
public UserCache getUserCache() {
    if (log.isDebugEnabled()) {
        log.debug("Invoking getUserCache");
    }
    return super.getUserCache();
}
项目:jeffaschenk-commons    文件:SecurityServiceProviderImpl.java   
@Override
public void setUserCache(UserCache userCache) {
    if (log.isDebugEnabled()) {
        log.debug("Invoking setUserCache");
    }
    super.setUserCache(userCache);
}
项目:jeffaschenk-commons    文件:SecurityServiceJdbcDaoImpl.java   
@Override
public void setUserCache(UserCache userCache) {
    if (log.isDebugEnabled()) {
        log.debug("Invoking setuserCache");
    }
    super.setUserCache(userCache);
}
项目:gauravbytes    文件:App.java   
@Bean
UserCache digestUserCache() throws Exception {
    return new SpringCacheBasedUserCache(new ConcurrentMapCache("digestUserCache"));
}
项目:gauravbytes    文件:App.java   
@Bean
UserCache digestUserCache() throws Exception {
    return new SpringCacheBasedUserCache(new ConcurrentMapCache("digestUserCache"));
}
项目:eMonocot    文件:UserServiceImpl.java   
/**
 *
 * @param userCache
 *            Set the user cache
 */
@Autowired(required = false)
public final void setUserCache(final UserCache userCache) {
    Assert.notNull(userCache, "userCache cannot be null");
    this.userCache = userCache;
}
项目:eHMP    文件:VistaAuthenticationProvider.java   
public void setUserCache(UserCache userCache) {
    this.userCache = userCache;
}
项目:eHMP    文件:VistaAuthenticationProvider.java   
public UserCache getUserCache() {
    return userCache;
}
项目:owf-security    文件:CachingPreAuthenticatedAuthenticationProvider.java   
public UserCache getUserCache() {
    return userCache;
}
项目:owf-security    文件:CachingPreAuthenticatedAuthenticationProvider.java   
public void setUserCache(UserCache userCache) {
    this.userCache = userCache;
}
项目:modinvreg    文件:UserManagerImpl.java   
/**
 * @param userCache the userCache to set
 */
public void setUserCache( UserCache userCache ) {
    this.userCache = userCache;
}