public class LimitElUtils extends Object
Constructor and Description |
---|
LimitElUtils() |
Modifier and Type | Method and Description |
---|---|
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
|
public static boolean labelsContain(String labelsForUser, String labelsInConfig)
labelsForUser
- comma separated, and trimmedlabelsInConfig
- comma separated, and trimmedpublic 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/24public static boolean ipOnNetworkRealm(String ipAddress, String realmName)
ipAddress
- realmName
- Copyright © 2016 Internet2. All rights reserved.