Record Class AnonymousPlusResponse
java.lang.Object
java.lang.Record
com.maxmind.geoip2.model.AnonymousPlusResponse
- Record Components:
ipAddress- The IP address that the data in the model is for.isAnonymous- Whether the IP address belongs to any sort of anonymous network.isAnonymousVpn- Whether the IP address is registered to an anonymous VPN provider. If a VPN provider does not register subnets under names associated with them, we will likely only flag their IP ranges using isHostingProvider.isHostingProvider- Whether the IP address belongs to a hosting or VPN provider (see description of isAnonymousVpn).isPublicProxy- Whether the IP address belongs to a public proxy.isResidentialProxy- Whether the IP address is on a suspected anonymizing network and belongs to a residential ISP.isTorExitNode- Whether the IP address is a Tor exit node.network- The network associated with the record. In particular, this is the largest network where all the fields besides IP address have the same value.anonymizerConfidence- A score ranging from 1 to 99 that is our percent confidence that the network is currently part of an actively used VPN service.networkLastSeen- The last day that the network was sighted in our analysis of anonymized networks.providerName- The name of the VPN provider (e.g., NordVPN, SurfShark, etc.) associated with the network.
- All Implemented Interfaces:
JsonSerializable
public record AnonymousPlusResponse(InetAddress ipAddress, boolean isAnonymous, boolean isAnonymousVpn, boolean isHostingProvider, boolean isPublicProxy, boolean isResidentialProxy, boolean isTorExitNode, Network network, Integer anonymizerConfidence, LocalDate networkLastSeen, String providerName)
extends Record
implements JsonSerializable
This class provides the GeoIP Anonymous Plus model.
-
Constructor Summary
ConstructorsConstructorDescriptionAnonymousPlusResponse(InetAddress ipAddress, boolean isAnonymous, boolean isAnonymousVpn, boolean isHostingProvider, boolean isPublicProxy, boolean isResidentialProxy, boolean isTorExitNode, Network network, Integer anonymizerConfidence, String networkLastSeen, String providerName) Constructs an instance ofAnonymousPlusResponsewith date parsing from MaxMind database.AnonymousPlusResponse(InetAddress ipAddress, boolean isAnonymous, boolean isAnonymousVpn, boolean isHostingProvider, boolean isPublicProxy, boolean isResidentialProxy, boolean isTorExitNode, Network network, Integer anonymizerConfidence, LocalDate networkLastSeen, String providerName) Creates an instance of aAnonymousPlusResponserecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theanonymizerConfidencerecord component.final booleanIndicates whether some other object is "equal to" this one.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.UseipAddress()instead.Deprecated, for removal: This API element is subject to removal in a future version.Usenetwork()instead.Deprecated, for removal: This API element is subject to removal in a future version.UsenetworkLastSeen()instead.Deprecated, for removal: This API element is subject to removal in a future version.UseproviderName()instead.final inthashCode()Returns a hash code value for this object.Returns the value of theipAddressrecord component.booleanReturns the value of theisAnonymousrecord component.booleanReturns the value of theisAnonymousVpnrecord component.booleanReturns the value of theisHostingProviderrecord component.booleanReturns the value of theisPublicProxyrecord component.booleanReturns the value of theisResidentialProxyrecord component.booleanReturns the value of theisTorExitNoderecord component.network()Returns the value of thenetworkrecord component.Returns the value of thenetworkLastSeenrecord component.Returns the value of theproviderNamerecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from interface JsonSerializable
toJson
-
Constructor Details
-
AnonymousPlusResponse
public AnonymousPlusResponse(InetAddress ipAddress, boolean isAnonymous, boolean isAnonymousVpn, boolean isHostingProvider, boolean isPublicProxy, boolean isResidentialProxy, boolean isTorExitNode, Network network, Integer anonymizerConfidence, String networkLastSeen, String providerName) Constructs an instance ofAnonymousPlusResponsewith date parsing from MaxMind database.- Parameters:
ipAddress- the IP address being checkedisAnonymous- whether the IP address belongs to any sort of anonymous networkisAnonymousVpn- whether the IP address belongs to an anonymous VPN systemisHostingProvider- whether the IP address belongs to a hosting providerisPublicProxy- whether the IP address belongs to a public proxy systemisResidentialProxy- whether the IP address belongs to a residential proxy systemisTorExitNode- whether the IP address is a Tor exit nodenetwork- the network associated with the recordanonymizerConfidence- confidence that the network is a VPN.networkLastSeen- the last sighting of the network.providerName- the name of the VPN provider.
-
AnonymousPlusResponse
public AnonymousPlusResponse(InetAddress ipAddress, boolean isAnonymous, boolean isAnonymousVpn, boolean isHostingProvider, boolean isPublicProxy, boolean isResidentialProxy, boolean isTorExitNode, Network network, Integer anonymizerConfidence, LocalDate networkLastSeen, String providerName) Creates an instance of aAnonymousPlusResponserecord class.- Parameters:
ipAddress- the value for theipAddressrecord componentisAnonymous- the value for theisAnonymousrecord componentisAnonymousVpn- the value for theisAnonymousVpnrecord componentisHostingProvider- the value for theisHostingProviderrecord componentisPublicProxy- the value for theisPublicProxyrecord componentisResidentialProxy- the value for theisResidentialProxyrecord componentisTorExitNode- the value for theisTorExitNoderecord componentnetwork- the value for thenetworkrecord componentanonymizerConfidence- the value for theanonymizerConfidencerecord componentnetworkLastSeen- the value for thenetworkLastSeenrecord componentproviderName- the value for theproviderNamerecord component
-
-
Method Details
-
getIpAddress
Deprecated, for removal: This API element is subject to removal in a future version.UseipAddress()instead. This method will be removed in 6.0.0.- Returns:
- The IP address that the data in the model is for.
-
getNetwork
Deprecated, for removal: This API element is subject to removal in a future version.Usenetwork()instead. This method will be removed in 6.0.0.- Returns:
- The network associated with the record. In particular, this is the largest network where all the fields besides IP address have the same value.
-
getAnonymizerConfidence
Deprecated, for removal: This API element is subject to removal in a future version.UseanonymizerConfidence()instead. This method will be removed in 6.0.0.- Returns:
- A score ranging from 1 to 99 that is our percent confidence that the network is currently part of an actively used VPN service.
-
getNetworkLastSeen
Deprecated, for removal: This API element is subject to removal in a future version.UsenetworkLastSeen()instead. This method will be removed in 6.0.0.- Returns:
- The last day that the network was sighted in our analysis of anonymized networks.
-
getProviderName
Deprecated, for removal: This API element is subject to removal in a future version.UseproviderName()instead. This method will be removed in 6.0.0.- Returns:
- The name of the VPN provider (e.g., NordVPN, SurfShark, etc.) associated with the network.
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
ipAddress
-
isAnonymous
public boolean isAnonymous()Returns the value of theisAnonymousrecord component.- Returns:
- the value of the
isAnonymousrecord component
-
isAnonymousVpn
public boolean isAnonymousVpn()Returns the value of theisAnonymousVpnrecord component.- Returns:
- the value of the
isAnonymousVpnrecord component
-
isHostingProvider
public boolean isHostingProvider()Returns the value of theisHostingProviderrecord component.- Returns:
- the value of the
isHostingProviderrecord component
-
isPublicProxy
public boolean isPublicProxy()Returns the value of theisPublicProxyrecord component.- Returns:
- the value of the
isPublicProxyrecord component
-
isResidentialProxy
public boolean isResidentialProxy()Returns the value of theisResidentialProxyrecord component.- Returns:
- the value of the
isResidentialProxyrecord component
-
isTorExitNode
public boolean isTorExitNode()Returns the value of theisTorExitNoderecord component.- Returns:
- the value of the
isTorExitNoderecord component
-
network
-
anonymizerConfidence
Returns the value of theanonymizerConfidencerecord component.- Returns:
- the value of the
anonymizerConfidencerecord component
-
networkLastSeen
Returns the value of thenetworkLastSeenrecord component.- Returns:
- the value of the
networkLastSeenrecord component
-
providerName
Returns the value of theproviderNamerecord component.- Returns:
- the value of the
providerNamerecord component
-
anonymizerConfidence()instead.