Spring3 security

JPoral2011 2013-06-10 01:13:08
问题一
<beans:bean id="accessDecisionManager"
class="org.springframework.security.access.vote.AffirmativeBased">
<beans:property name="allowIfAllAbstainDecisions" value="false" />
<beans:property name="decisionVoters">
<beans:list>
<beans:bean class="org.springframework.security.access.vote.RoleVoter" />
<beans:bean class="org.springframework.security.access.vote.AuthenticatedVoter" />
</beans:list>
</beans:property>
</beans:bean>
不明白AffirmativeBased 和 decisionVoters还有decisionVoters之间的关系

问题二
org.springframework.security.authenticationManager 和问题一中的AffirmativeBased 又有什么关系 还是没有关系

谢谢高手帮忙
...全文
81 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
小丑哥_V5 2013-06-14
  • 打赏
  • 举报
回复
可以来我的博客参考这security的项目实例
-AJ- 2013-06-14
  • 打赏
  • 举报
回复
你可以给我留言或私信
JPoral2011 2013-06-13
  • 打赏
  • 举报
回复
引用 1 楼 AARON7744 的回复:
认证(Authentication )被储存在一组GrantedAuthority中。 而GrantedAuthority被加入到AuthenticationManager里,然后被accessDecisionManager读取。 accessDecisionManager 有三种。 AffirmativeBased: 任意一个voter同意即可。 UnanimousBased:所有voter都同意才行。 ConsensusBased:需要多数voter同意。这个比例可以自己定义。 AffirmativeBased 拥有属性decisionVoters。在decisionVoters里定义都包含哪些voter
谢谢 周末有空吗 想请教请教些细节
-AJ- 2013-06-11
  • 打赏
  • 举报
回复
认证(Authentication )被储存在一组GrantedAuthority中。 而GrantedAuthority被加入到AuthenticationManager里,然后被accessDecisionManager读取。 accessDecisionManager 有三种。 AffirmativeBased: 任意一个voter同意即可。 UnanimousBased:所有voter都同意才行。 ConsensusBased:需要多数voter同意。这个比例可以自己定义。 AffirmativeBased 拥有属性decisionVoters。在decisionVoters里定义都包含哪些voter

67,513

社区成员

发帖
与我相关
我的任务
社区描述
J2EE只是Java企业应用。我们需要一个跨J2SE/WEB/EJB的微容器,保护我们的业务核心组件(中间件),以延续它的生命力,而不是依赖J2SE/J2EE版本。
社区管理员
  • Java EE
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧