随笔分类 - Spring Security
spring的权限管理框架
摘要:@RequestMapping("getUser") public void getUser(HttpServletRequest req){ String remoteUser=req.getRemoteUser(); Authentication auth=(Authentication) re
阅读全文
摘要:Authentication authentication = SecurityContextHolder.getContext().getAuthentication(); System.out.println("authentication.getClass() = " + authentica
阅读全文
摘要:Spring Security提供了很多默认filter,这些filter不是直接放在Web项目的原生过滤器中,而是通过FilterChainProxy来统一管理,可以设置多个过滤器链FilterChainProxy来实现多个不同认证体系;FilterChainProxy是通过Spring框架提供的
阅读全文
摘要:一、Spring Security的用户认证信息保存在Authentication的实现类中 二、使用AuthenticationManager来管理Authentication,AuthenticationManager有个authenticate方法来做认证 三、AuthenticationPr
阅读全文