org.duracloud.security.vote
Class RoleVoterImpl

java.lang.Object
  extended by org.springframework.security.vote.RoleVoter
      extended by org.duracloud.security.vote.RoleVoterImpl
All Implemented Interfaces:
org.springframework.security.vote.AccessDecisionVoter

public class RoleVoterImpl
extends org.springframework.security.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.vote.AccessDecisionVoter
ACCESS_ABSTAIN, ACCESS_DENIED, ACCESS_GRANTED
 
Constructor Summary
RoleVoterImpl()
           
 
Method Summary
 int vote(org.springframework.security.Authentication authentication, java.lang.Object resource, org.springframework.security.ConfigAttributeDefinition config)
          This method is a pass-through for Spring-RoleVoter.
 
Methods inherited from class org.springframework.security.vote.RoleVoter
getRolePrefix, setRolePrefix, supports, supports
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RoleVoterImpl

public RoleVoterImpl()
Method Detail

vote

public int vote(org.springframework.security.Authentication authentication,
                java.lang.Object resource,
                org.springframework.security.ConfigAttributeDefinition config)
This method is a pass-through for Spring-RoleVoter.

Specified by:
vote in interface org.springframework.security.vote.AccessDecisionVoter
Overrides:
vote in class org.springframework.security.vote.RoleVoter
Parameters:
authentication - principal seeking AuthZ
resource - that is under protection
config - access-attributes defined on resource
Returns:
vote (AccessDecisionVoter.ACCESS_GRANTED, ACCESS_DENIED, ACCESS_ABSTAIN)


Copyright © 2009-2011 DuraSpace. All Rights Reserved.