Package co.datadome.api.common
Class IpAddressMatcher
java.lang.Object
co.datadome.api.common.IpAddressMatcher
Matches a request based on IP Address or subnet mask matching against the remote
address.
Both IPv6 and IPv4 addresses are supported, but a matcher which is configured with an IPv4 address will never match a request which returns an IPv6 address, and vice-versa.
- Since:
- 3.0.2 Slightly modified by omidzk to have zero dependency to any frameworks other than the JRE.
- Author:
- Luke Taylor
-
Constructor Summary
ConstructorsConstructorDescriptionIpAddressMatcher(String ipAddress) Takes a specific IP address or a range specified using the IP/Netmask (e.g. -
Method Summary
-
Constructor Details
-
IpAddressMatcher
Takes a specific IP address or a range specified 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.
-
-
Method Details
-
matches
-