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!");
}
}
}
java类org.springframework.security.core.userdetails.UserCache的实例源码
DigestPasswordValidationCallbackHandler.java 文件源码
项目:bdf2
阅读 20
收藏 0
点赞 0
评论 0
App.java 文件源码
项目:gauravbytes
阅读 30
收藏 0
点赞 0
评论 0
@Bean
DigestAuthenticationFilter digestFilter(DigestAuthenticationEntryPoint digestAuthenticationEntryPoint, UserCache digestUserCache, UserDetailsService userDetailsService) {
DigestAuthenticationFilter filter = new DigestAuthenticationFilter();
filter.setAuthenticationEntryPoint(digestAuthenticationEntryPoint);
filter.setUserDetailsService(userDetailsService);
filter.setUserCache(digestUserCache);
return filter;
}
App.java 文件源码
项目:gauravbytes
阅读 25
收藏 0
点赞 0
评论 0
@Bean
DigestAuthenticationFilter digestFilter(DigestAuthenticationEntryPoint digestAuthenticationEntryPoint, UserCache digestUserCache, UserDetailsService userDetailsService) {
DigestAuthenticationFilter filter = new DigestAuthenticationFilter();
filter.setAuthenticationEntryPoint(digestAuthenticationEntryPoint);
filter.setUserDetailsService(userDetailsService);
filter.setUserCache(digestUserCache);
return filter;
}
SecurityServiceProviderImpl.java 文件源码
项目:jeffaschenk-commons
阅读 28
收藏 0
点赞 0
评论 0
@Override
public UserCache getUserCache() {
if (log.isDebugEnabled()) {
log.debug("Invoking getUserCache");
}
return super.getUserCache();
}
SecurityServiceProviderImpl.java 文件源码
项目:jeffaschenk-commons
阅读 24
收藏 0
点赞 0
评论 0
@Override
public void setUserCache(UserCache userCache) {
if (log.isDebugEnabled()) {
log.debug("Invoking setUserCache");
}
super.setUserCache(userCache);
}
SecurityServiceJdbcDaoImpl.java 文件源码
项目:jeffaschenk-commons
阅读 22
收藏 0
点赞 0
评论 0
@Override
public void setUserCache(UserCache userCache) {
if (log.isDebugEnabled()) {
log.debug("Invoking setuserCache");
}
super.setUserCache(userCache);
}
App.java 文件源码
项目:gauravbytes
阅读 23
收藏 0
点赞 0
评论 0
@Bean
UserCache digestUserCache() throws Exception {
return new SpringCacheBasedUserCache(new ConcurrentMapCache("digestUserCache"));
}
App.java 文件源码
项目:gauravbytes
阅读 31
收藏 0
点赞 0
评论 0
@Bean
UserCache digestUserCache() throws Exception {
return new SpringCacheBasedUserCache(new ConcurrentMapCache("digestUserCache"));
}
UserServiceImpl.java 文件源码
项目:eMonocot
阅读 27
收藏 0
点赞 0
评论 0
/**
*
* @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;
}
VistaAuthenticationProvider.java 文件源码
项目:eHMP
阅读 20
收藏 0
点赞 0
评论 0
public void setUserCache(UserCache userCache) {
this.userCache = userCache;
}
VistaAuthenticationProvider.java 文件源码
项目:eHMP
阅读 21
收藏 0
点赞 0
评论 0
public UserCache getUserCache() {
return userCache;
}
CachingPreAuthenticatedAuthenticationProvider.java 文件源码
项目:owf-security
阅读 20
收藏 0
点赞 0
评论 0
public UserCache getUserCache() {
return userCache;
}
CachingPreAuthenticatedAuthenticationProvider.java 文件源码
项目:owf-security
阅读 35
收藏 0
点赞 0
评论 0
public void setUserCache(UserCache userCache) {
this.userCache = userCache;
}
UserManagerImpl.java 文件源码
项目:modinvreg
阅读 26
收藏 0
点赞 0
评论 0
/**
* @param userCache the userCache to set
*/
public void setUserCache( UserCache userCache ) {
this.userCache = userCache;
}