Class 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
      RoleVoterImpl()  
    • Constructor Detail

      • RoleVoterImpl

        public RoleVoterImpl()
    • Method Detail

      • 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)