Class IpAddressVoter

  • All Implemented Interfaces:
    org.springframework.security.access.AccessDecisionVoter<java.lang.Object>

    public class IpAddressVoter
    extends java.lang.Object
    implements org.springframework.security.access.AccessDecisionVoter<java.lang.Object>
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String IP_LOCAL_HOST  
      static java.lang.String IP_PREFIX  
      • Fields inherited from interface org.springframework.security.access.AccessDecisionVoter

        ACCESS_ABSTAIN, ACCESS_DENIED, ACCESS_GRANTED
    • Constructor Summary

      Constructors 
      Constructor Description
      IpAddressVoter()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean supports​(java.lang.Class clazz)  
      boolean supports​(org.springframework.security.access.ConfigAttribute attribute)  
      int vote​(org.springframework.security.core.Authentication authentication, java.lang.Object object, java.util.Collection<org.springframework.security.access.ConfigAttribute> config)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • IpAddressVoter

        public IpAddressVoter()
    • Method Detail

      • supports

        public boolean supports​(org.springframework.security.access.ConfigAttribute attribute)
        Specified by:
        supports in interface org.springframework.security.access.AccessDecisionVoter<java.lang.Object>
      • supports

        public boolean supports​(java.lang.Class clazz)
        Specified by:
        supports in interface org.springframework.security.access.AccessDecisionVoter<java.lang.Object>
      • vote

        public int vote​(org.springframework.security.core.Authentication authentication,
                        java.lang.Object object,
                        java.util.Collection<org.springframework.security.access.ConfigAttribute> config)
        Specified by:
        vote in interface org.springframework.security.access.AccessDecisionVoter<java.lang.Object>