Class IpAddressVoter
- java.lang.Object
-
- de.hybris.platform.spring.security.voter.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.StringIP_LOCAL_HOSTstatic java.lang.StringIP_PREFIX
-
Constructor Summary
Constructors Constructor Description IpAddressVoter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleansupports(java.lang.Class clazz)booleansupports(org.springframework.security.access.ConfigAttribute attribute)intvote(org.springframework.security.core.Authentication authentication, java.lang.Object object, java.util.Collection<org.springframework.security.access.ConfigAttribute> config)
-
-
-
Field Detail
-
IP_PREFIX
public static final java.lang.String IP_PREFIX
- See Also:
- Constant Field Values
-
IP_LOCAL_HOST
public static final java.lang.String IP_LOCAL_HOST
- See Also:
- Constant Field Values
-
-
Method Detail
-
supports
public boolean supports(org.springframework.security.access.ConfigAttribute attribute)
- Specified by:
supportsin interfaceorg.springframework.security.access.AccessDecisionVoter<java.lang.Object>
-
supports
public boolean supports(java.lang.Class clazz)
- Specified by:
supportsin interfaceorg.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:
votein interfaceorg.springframework.security.access.AccessDecisionVoter<java.lang.Object>
-
-