|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.internet2.middleware.grouper.permissions.limits.LimitElUtils
public class 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 | |
---|---|
LimitElUtils()
|
Method Summary | |
---|---|
static boolean |
ipOnNetwork(String ipString,
String networkIpString,
int mask)
see if an ip address is on a network |
static boolean |
ipOnNetworkRealm(String ipAddress,
String realmName)
if the ip address is on the realm name in the grouper.properties in grouper.permissions.limits.realm.realmName |
static boolean |
ipOnNetworks(String ipString,
String networkIpStrings)
see if an ip address is on a network |
static boolean |
labelsContain(String labelsForUser,
String labelsInConfig)
see if the labels in the config contain any of the labels for the user |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LimitElUtils()
Method Detail |
---|
public static boolean labelsContain(String labelsForUser, String labelsInConfig)
labelsForUser
- comma separated, and trimmedlabelsInConfig
- comma separated, and trimmed
public static boolean ipOnNetwork(String ipString, String networkIpString, int mask)
ipString
- is the ip address to checknetworkIpString
- is the ip address of the networkmask
- is the length of the mask (0-32)
public static boolean ipOnNetworks(String ipString, String networkIpStrings)
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
public static boolean ipOnNetworkRealm(String ipAddress, String realmName)
ipAddress
- realmName
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |