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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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.

    Methods inherited from class org.springframework.security.access.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 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:
      vote in interface org.springframework.security.access.AccessDecisionVoter<Object>
      Overrides:
      vote in class org.springframework.security.access.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)