Class LimitElUtils
java.lang.Object
edu.internet2.middleware.grouper.permissions.limits.LimitElUtils
innocuous methods that can be used from EL. Make sure there are no security problems where
bad users can do bad things
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
ipOnNetwork
(String ipString, String networkIpString, int mask) see if an ip address is on a networkstatic boolean
ipOnNetworkRealm
(String ipAddress, String realmName) if the ip address is on the realm name in the grouper.properties in grouper.permissions.limits.realm.realmNamestatic boolean
ipOnNetworks
(String ipString, String networkIpStrings) see if an ip address is on a networkstatic boolean
labelsContain
(String labelsForUser, String labelsInConfig) see if the labels in the config contain any of the labels for the user
-
Constructor Details
-
LimitElUtils
public LimitElUtils()
-
-
Method Details
-
labelsContain
see if the labels in the config contain any of the labels for the user- Parameters:
labelsForUser
- comma separated, and trimmedlabelsInConfig
- comma separated, and trimmed- Returns:
- true if contains
-
ipOnNetwork
see if an ip address is on a network- Parameters:
ipString
- is the ip address to checknetworkIpString
- is the ip address of the networkmask
- is the length of the mask (0-32)- Returns:
- boolean
-
ipOnNetworks
see if an ip address is on a network- Parameters:
ipString
- is the ip address to checknetworkIpStrings
- are the ip addresses of the networks, e.g. 1.2.3.4/12, 2.3.4.5/24- Returns:
- boolean
-
ipOnNetworkRealm
if the ip address is on the realm name in the grouper.properties in grouper.permissions.limits.realm.realmName- Parameters:
ipAddress
-realmName
-- Returns:
- if the ip address is on the realm name in the grouper.properties
-