/forgerock/openam-v13/openam-radius/openam-radius-common/src/main/java/org/forgerock/openam/radius/common/packet/ |
H A D | NASIPAddressAttribute.java | 49 private InetAddress ip = null; field in class:NASIPAddressAttribute 59 // fix lack of ip being filled in ip when instantiated from on-the-wire bits 63 ip = InetAddress.getByAddress(addr); 72 * @param ip the IP address of the NAS originating the request. 75 private static final byte[] toOctets(InetAddress ip) { argument 79 byte[] addr = ip.getAddress(); 90 * @param ip the IP address of the NAS originating the request. 92 public NASIPAddressAttribute(InetAddress ip) { argument 93 super(NASIPAddressAttribute.toOctets(ip)); [all...] |
/forgerock/openam/openam-radius/openam-radius-common/src/main/java/org/forgerock/openam/radius/common/packet/ |
H A D | NASIPAddressAttribute.java | 49 private InetAddress ip = null; field in class:NASIPAddressAttribute 59 // fix lack of ip being filled in ip when instantiated from on-the-wire bits 63 ip = InetAddress.getByAddress(addr); 72 * @param ip the IP address of the NAS originating the request. 75 private static final byte[] toOctets(InetAddress ip) { argument 79 byte[] addr = ip.getAddress(); 90 * @param ip the IP address of the NAS originating the request. 92 public NASIPAddressAttribute(InetAddress ip) { argument 93 super(NASIPAddressAttribute.toOctets(ip)); [all...] |
/forgerock/openam-v13/openam-federation/OpenFM/src/test/java/com/sun/identity/entitlement/ |
H A D | NotConditionTest.java | 67 IPv4Condition ip = new IPv4Condition(); 68 ip.setStartIpAndEndIp("192.168.0.1", "192.168.0.2"); 72 conditions.add(ip); 88 IPv4Condition ip = new IPv4Condition(); 89 ip.setStartIpAndEndIp("192.168.0.1", "192.168.0.2"); 90 conditions.add(ip); 97 assertTrue(myNotCondition.getECondition().equals(ip)); 104 IPv4Condition ip = new IPv4Condition(); 105 ip.setStartIpAndEndIp("192.168.0.1", "192.168.0.2"); 106 NotCondition myNotCondition = new NotCondition(ip); [all...] |
/forgerock/openam/openam-federation/OpenFM/src/test/java/com/sun/identity/entitlement/ |
H A D | NotConditionTest.java | 67 IPv4Condition ip = new IPv4Condition(); 68 ip.setStartIpAndEndIp("192.168.0.1", "192.168.0.2"); 72 conditions.add(ip); 88 IPv4Condition ip = new IPv4Condition(); 89 ip.setStartIpAndEndIp("192.168.0.1", "192.168.0.2"); 90 conditions.add(ip); 97 assertTrue(myNotCondition.getECondition().equals(ip)); 104 IPv4Condition ip = new IPv4Condition(); 105 ip.setStartIpAndEndIp("192.168.0.1", "192.168.0.2"); 106 NotCondition myNotCondition = new NotCondition(ip); [all...] |
/forgerock/opendj-b2.6/tests/unit-tests-testng/src/server/org/opends/server/authorization/dseecompat/ |
H A D | IPTestCase.java | 42 //expressions. For example: ip="72.*.78.*,*.*.*.*". 180 IP ip=(IP) IP.decode(mixed, EnumBindRuleType.EQUAL_BINDRULE_TYPE); 182 EnumEvalResult res=ip.evaluate(addr); 197 IP ip=(IP) IP.decode(ip4compat, EnumBindRuleType.EQUAL_BINDRULE_TYPE); 199 EnumEvalResult res=ip.evaluate(addr); 214 IP ip=(IP) IP.decode(ip6ExprCidr, EnumBindRuleType.EQUAL_BINDRULE_TYPE); 216 EnumEvalResult res=ip.evaluate(addr); 237 IP ip=(IP) IP.decode(ip6Expr, EnumBindRuleType.EQUAL_BINDRULE_TYPE); 239 EnumEvalResult res=ip.evaluate(addr); 259 IP ip [all...] |
/forgerock/opendj2/tests/unit-tests-testng/src/server/org/opends/server/authorization/dseecompat/ |
H A D | IPTestCase.java | 41 //expressions. For example: ip="72.*.78.*,*.*.*.*". 179 IP ip=(IP) IP.decode(mixed, EnumBindRuleType.EQUAL_BINDRULE_TYPE); 181 EnumEvalResult res=ip.evaluate(addr); 196 IP ip=(IP) IP.decode(ip4compat, EnumBindRuleType.EQUAL_BINDRULE_TYPE); 198 EnumEvalResult res=ip.evaluate(addr); 213 IP ip=(IP) IP.decode(ip6ExprCidr, EnumBindRuleType.EQUAL_BINDRULE_TYPE); 215 EnumEvalResult res=ip.evaluate(addr); 236 IP ip=(IP) IP.decode(ip6Expr, EnumBindRuleType.EQUAL_BINDRULE_TYPE); 238 EnumEvalResult res=ip.evaluate(addr); 258 IP ip [all...] |
/forgerock/opendj2.6.2/tests/unit-tests-testng/src/server/org/opends/server/authorization/dseecompat/ |
H A D | IPTestCase.java | 42 //expressions. For example: ip="72.*.78.*,*.*.*.*". 180 IP ip=(IP) IP.decode(mixed, EnumBindRuleType.EQUAL_BINDRULE_TYPE); 182 EnumEvalResult res=ip.evaluate(addr); 197 IP ip=(IP) IP.decode(ip4compat, EnumBindRuleType.EQUAL_BINDRULE_TYPE); 199 EnumEvalResult res=ip.evaluate(addr); 214 IP ip=(IP) IP.decode(ip6ExprCidr, EnumBindRuleType.EQUAL_BINDRULE_TYPE); 216 EnumEvalResult res=ip.evaluate(addr); 237 IP ip=(IP) IP.decode(ip6Expr, EnumBindRuleType.EQUAL_BINDRULE_TYPE); 239 EnumEvalResult res=ip.evaluate(addr); 259 IP ip [all...] |
/forgerock/opendj2-hg/tests/unit-tests-testng/src/server/org/opends/server/authorization/dseecompat/ |
H A D | IPTestCase.java | 41 //expressions. For example: ip="72.*.78.*,*.*.*.*". 179 IP ip=(IP) IP.decode(mixed, EnumBindRuleType.EQUAL_BINDRULE_TYPE); 181 EnumEvalResult res=ip.evaluate(addr); 196 IP ip=(IP) IP.decode(ip4compat, EnumBindRuleType.EQUAL_BINDRULE_TYPE); 198 EnumEvalResult res=ip.evaluate(addr); 213 IP ip=(IP) IP.decode(ip6ExprCidr, EnumBindRuleType.EQUAL_BINDRULE_TYPE); 215 EnumEvalResult res=ip.evaluate(addr); 236 IP ip=(IP) IP.decode(ip6Expr, EnumBindRuleType.EQUAL_BINDRULE_TYPE); 238 EnumEvalResult res=ip.evaluate(addr); 258 IP ip [all...] |
/forgerock/opendj2-jel-hg/tests/unit-tests-testng/src/server/org/opends/server/authorization/dseecompat/ |
H A D | IPTestCase.java | 42 //expressions. For example: ip="72.*.78.*,*.*.*.*". 180 IP ip=(IP) IP.decode(mixed, EnumBindRuleType.EQUAL_BINDRULE_TYPE); 182 EnumEvalResult res=ip.evaluate(addr); 197 IP ip=(IP) IP.decode(ip4compat, EnumBindRuleType.EQUAL_BINDRULE_TYPE); 199 EnumEvalResult res=ip.evaluate(addr); 214 IP ip=(IP) IP.decode(ip6ExprCidr, EnumBindRuleType.EQUAL_BINDRULE_TYPE); 216 EnumEvalResult res=ip.evaluate(addr); 237 IP ip=(IP) IP.decode(ip6Expr, EnumBindRuleType.EQUAL_BINDRULE_TYPE); 239 EnumEvalResult res=ip.evaluate(addr); 259 IP ip [all...] |
/forgerock/opendj-v3/opendj-server-legacy/src/test/java/org/opends/server/authorization/dseecompat/ |
H A D | IPTestCase.java | 40 //expressions. For example: ip="72.*.78.*,*.*.*.*". 181 IP ip=(IP) IP.decode(mixed, EnumBindRuleType.EQUAL_BINDRULE_TYPE); 183 EnumEvalResult res=ip.evaluate(addr); 199 IP ip=(IP) IP.decode(ip4compat, EnumBindRuleType.EQUAL_BINDRULE_TYPE); 201 EnumEvalResult res=ip.evaluate(addr); 217 IP ip=(IP) IP.decode(ip6ExprCidr, EnumBindRuleType.EQUAL_BINDRULE_TYPE); 219 EnumEvalResult res=ip.evaluate(addr); 242 IP ip=(IP) IP.decode(ip6Expr, EnumBindRuleType.EQUAL_BINDRULE_TYPE); 244 EnumEvalResult res=ip.evaluate(addr); 266 IP ip [all...] |
/forgerock/openam-v13/openam-entitlements/src/main/java/org/forgerock/openam/entitlement/conditions/environment/ |
H A D | IPv4Condition.java | 75 protected Long stringToIp(String ip) throws EntitlementException { argument 76 StringTokenizer st = new StringTokenizer(ip, "."); 79 throw new EntitlementException(INVALID_PROPERTY_VALUE, new String[]{"ip", ip}); 88 throw new EntitlementException(INVALID_PROPERTY_VALUE, new String[]{"ip", ip}); 91 throw new EntitlementException(INVALID_PROPERTY_VALUE, new String[]{"ip", s});
|
H A D | IPv6Condition.java | 73 protected IPv6Address stringToIp(String ip) throws EntitlementException { argument 75 return IPv6Address.fromString(ip); 77 throw new EntitlementException(INVALID_PROPERTY_VALUE, new String[]{"ip", ip});
|
H A D | IPvXCondition.java | 109 * @param ip A String representation of an IP value. 113 protected abstract T stringToIp(String ip) throws EntitlementException; argument 275 private boolean isDefinedStartIp(T ip) { argument 276 if (ip == null) { 281 return !initialStartIp.equals(ip); 288 private boolean isDefinedEndIp(T ip) { argument 289 if (ip == null) { 294 return !initialEndIp.equals(ip); 321 String ip = null; 323 ip 403 isAllowedByIp(String ip) argument [all...] |
/forgerock/openam/openam-entitlements/src/main/java/org/forgerock/openam/entitlement/conditions/environment/ |
H A D | IPv4Condition.java | 75 protected Long stringToIp(String ip) throws EntitlementException { argument 76 StringTokenizer st = new StringTokenizer(ip, "."); 79 throw new EntitlementException(INVALID_PROPERTY_VALUE, new String[]{"ip", ip}); 88 throw new EntitlementException(INVALID_PROPERTY_VALUE, new String[]{"ip", ip}); 91 throw new EntitlementException(INVALID_PROPERTY_VALUE, new String[]{"ip", s});
|
H A D | IPv6Condition.java | 73 protected IPv6Address stringToIp(String ip) throws EntitlementException { argument 75 return IPv6Address.fromString(ip); 77 throw new EntitlementException(INVALID_PROPERTY_VALUE, new String[]{"ip", ip});
|
H A D | IPvXCondition.java | 109 * @param ip A String representation of an IP value. 113 protected abstract T stringToIp(String ip) throws EntitlementException; argument 275 private boolean isDefinedStartIp(T ip) { argument 276 if (ip == null) { 281 return !initialStartIp.equals(ip); 288 private boolean isDefinedEndIp(T ip) { argument 289 if (ip == null) { 294 return !initialEndIp.equals(ip); 321 String ip = null; 323 ip 403 isAllowedByIp(String ip) argument [all...] |
/forgerock/opendj-b2.6/src/server/org/opends/server/core/networkgroups/ |
H A D | ResourceLimitsPolicyFactory.java | 165 String ip = connection.getClientAddress(); 166 Integer currentCount = connectionsPerIPMap.get(ip); 169 connectionsPerIPMap.put(ip, 1); 173 connectionsPerIPMap.put(ip, currentCount + 1); 256 String ip = connection.getClientAddress(); 258 Integer currentCount = connectionsPerIPMap.get(ip); 356 String ip = connection.getClientAddress(); 357 Integer currentCount = connectionsPerIPMap.get(ip); 363 connectionsPerIPMap.remove(ip); 367 connectionsPerIPMap.put(ip, currentCoun [all...] |
/forgerock/opendj2/src/server/org/opends/server/core/networkgroups/ |
H A D | ResourceLimitsPolicyFactory.java | 164 String ip = connection.getClientAddress(); 165 Integer currentCount = connectionsPerIPMap.get(ip); 168 connectionsPerIPMap.put(ip, 1); 172 connectionsPerIPMap.put(ip, currentCount + 1); 255 String ip = connection.getClientAddress(); 257 Integer currentCount = connectionsPerIPMap.get(ip); 355 String ip = connection.getClientAddress(); 356 Integer currentCount = connectionsPerIPMap.get(ip); 362 connectionsPerIPMap.remove(ip); 366 connectionsPerIPMap.put(ip, currentCoun [all...] |
/forgerock/opendj2.6.2/src/server/org/opends/server/core/networkgroups/ |
H A D | ResourceLimitsPolicyFactory.java | 165 String ip = connection.getClientAddress(); 166 Integer currentCount = connectionsPerIPMap.get(ip); 169 connectionsPerIPMap.put(ip, 1); 173 connectionsPerIPMap.put(ip, currentCount + 1); 256 String ip = connection.getClientAddress(); 258 Integer currentCount = connectionsPerIPMap.get(ip); 356 String ip = connection.getClientAddress(); 357 Integer currentCount = connectionsPerIPMap.get(ip); 363 connectionsPerIPMap.remove(ip); 367 connectionsPerIPMap.put(ip, currentCoun [all...] |
/forgerock/opendj2-jel-hg/src/server/org/opends/server/core/networkgroups/ |
H A D | ResourceLimitsPolicyFactory.java | 165 String ip = connection.getClientAddress(); 166 Integer currentCount = connectionsPerIPMap.get(ip); 169 connectionsPerIPMap.put(ip, 1); 173 connectionsPerIPMap.put(ip, currentCount + 1); 256 String ip = connection.getClientAddress(); 258 Integer currentCount = connectionsPerIPMap.get(ip); 356 String ip = connection.getClientAddress(); 357 Integer currentCount = connectionsPerIPMap.get(ip); 363 connectionsPerIPMap.remove(ip); 367 connectionsPerIPMap.put(ip, currentCoun [all...] |
/forgerock/opendj2-hg/src/server/org/opends/server/core/networkgroups/ |
H A D | ResourceLimitsPolicyFactory.java | 164 String ip = connection.getClientAddress(); 165 Integer currentCount = connectionsPerIPMap.get(ip); 168 connectionsPerIPMap.put(ip, 1); 172 connectionsPerIPMap.put(ip, currentCount + 1); 255 String ip = connection.getClientAddress(); 257 Integer currentCount = connectionsPerIPMap.get(ip); 355 String ip = connection.getClientAddress(); 356 Integer currentCount = connectionsPerIPMap.get(ip); 362 connectionsPerIPMap.remove(ip); 366 connectionsPerIPMap.put(ip, currentCoun [all...] |
/forgerock/openam-v13/openam-core/src/main/java/com/sun/identity/policy/plugins/ |
H A D | IPCondition.java | 185 String ip = (String) ipVerItr.next(); 186 if (ip.equalsIgnoreCase(IPV6)) { 272 Object ip = requestIpSet.iterator().next(); 273 if (ip != null) { // Set implementations can permit null values 274 if (ip instanceof String) { 275 return (String) ip; 277 DEBUG.warning("ip value in environment map not String, but type " 278 + ip.getClass().getCanonicalName() + ". The value: " + ip); 279 return ip [all...] |
/forgerock/openam/openam-core/src/main/java/com/sun/identity/policy/plugins/ |
H A D | IPCondition.java | 185 String ip = (String) ipVerItr.next(); 186 if (ip.equalsIgnoreCase(IPV6)) { 272 Object ip = requestIpSet.iterator().next(); 273 if (ip != null) { // Set implementations can permit null values 274 if (ip instanceof String) { 275 return (String) ip; 277 DEBUG.warning("ip value in environment map not String, but type " 278 + ip.getClass().getCanonicalName() + ". The value: " + ip); 279 return ip [all...] |
/forgerock/openam-v13/openam-core/src/main/java/org/forgerock/openam/network/ipv4/ |
H A D | IPv4Condition.java | 243 String ip = IPCondition.getRequestIp(env); 244 if(ValidateIPaddress.isIPv6(ip)){ 247 if (ip == null) { 249 ip = token.getIPAddress().getHostAddress(); 254 if ( (ip != null) && isAllowedByIp(ip) ) { 268 + " requestDnsName, allowed = " + ip + ", " 483 private long stringToIp(String ip) throws PolicyException { argument 484 StringTokenizer st = new StringTokenizer(ip, "."); 487 String args[] = { "ip", i 537 isAllowedByIp(String ip) argument [all...] |
/forgerock/openam/openam-core/src/main/java/org/forgerock/openam/network/ipv4/ |
H A D | IPv4Condition.java | 243 String ip = IPCondition.getRequestIp(env); 244 if(ValidateIPaddress.isIPv6(ip)){ 247 if (ip == null) { 249 ip = token.getIPAddress().getHostAddress(); 254 if ( (ip != null) && isAllowedByIp(ip) ) { 268 + " requestDnsName, allowed = " + ip + ", " 483 private long stringToIp(String ip) throws PolicyException { argument 484 StringTokenizer st = new StringTokenizer(ip, "."); 487 String args[] = { "ip", i 537 isAllowedByIp(String ip) argument [all...] |