Class WebSecurityExpressionRoot
- java.lang.Object
- 
- org.springframework.security.access.expression.SecurityExpressionRoot
- 
- org.springframework.security.web.access.expression.WebSecurityExpressionRoot
 
 
- 
- All Implemented Interfaces:
- SecurityExpressionOperations
 
 public class WebSecurityExpressionRoot extends SecurityExpressionRoot - Since:
- 3.0
 
- 
- 
Field SummaryFields Modifier and Type Field Description javax.servlet.http.HttpServletRequestrequestAllows direct access to the request object- 
Fields inherited from class org.springframework.security.access.expression.SecurityExpressionRootadmin, authentication, create, delete, denyAll, permitAll, read, write
 
- 
 - 
Constructor SummaryConstructors Constructor Description WebSecurityExpressionRoot(Authentication a, FilterInvocation fi)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanhasIpAddress(java.lang.String ipAddress)Takes a specific IP address or a range using the IP/Netmask (e.g.- 
Methods inherited from class org.springframework.security.access.expression.SecurityExpressionRootdenyAll, getAuthentication, getPrincipal, hasAnyAuthority, hasAnyRole, hasAuthority, hasPermission, hasPermission, hasRole, isAnonymous, isAuthenticated, isFullyAuthenticated, isRememberMe, permitAll, setDefaultRolePrefix, setPermissionEvaluator, setRoleHierarchy, setTrustResolver
 
- 
 
- 
- 
- 
Constructor Detail- 
WebSecurityExpressionRootpublic WebSecurityExpressionRoot(Authentication a, FilterInvocation fi) 
 
- 
 - 
Method Detail- 
hasIpAddresspublic boolean hasIpAddress(java.lang.String ipAddress) Takes a specific IP address or a range using the IP/Netmask (e.g. 192.168.1.0/24 or 202.24.0.0/14).- Parameters:
- ipAddress- the address or range of addresses from which the request must come.
- Returns:
- true if the IP address of the current request is in the required range.
 
 
- 
 
-