Package org.duracloud.security.vote
Class RoleVoterImpl
java.lang.Object
org.springframework.security.access.vote.RoleVoter
org.duracloud.security.vote.RoleVoterImpl
- All Implemented Interfaces:
org.springframework.security.access.AccessDecisionVoter<Object>
public class RoleVoterImpl
extends org.springframework.security.access.vote.RoleVoter
This class wraps the Spring-RoleVoter for debug visibility.
- Author:
- Andrew Woods Date: Mar 12, 2010
-
Field Summary
Fields inherited from interface org.springframework.security.access.AccessDecisionVoter
ACCESS_ABSTAIN, ACCESS_DENIED, ACCESS_GRANTED -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintvote(org.springframework.security.core.Authentication authentication, Object resource, Collection<org.springframework.security.access.ConfigAttribute> config) This method is a pass-through for Spring-RoleVoter.Methods inherited from class org.springframework.security.access.vote.RoleVoter
getRolePrefix, setRolePrefix, supports, supports
-
Constructor Details
-
RoleVoterImpl
public RoleVoterImpl()
-
-
Method Details
-
vote
public int vote(org.springframework.security.core.Authentication authentication, Object resource, Collection<org.springframework.security.access.ConfigAttribute> config) This method is a pass-through for Spring-RoleVoter.- Specified by:
votein interfaceorg.springframework.security.access.AccessDecisionVoter<Object>- Overrides:
votein classorg.springframework.security.access.vote.RoleVoter- Parameters:
authentication- principal seeking AuthZresource- that is under protectionconfig- access-attributes defined on resource- Returns:
- vote (AccessDecisionVoter.ACCESS_GRANTED, ACCESS_DENIED, ACCESS_ABSTAIN)
-