Package com.inmobi.media.core.signals.ip
Object Ipv6AddressResolver
-
- All Implemented Interfaces:
public class Ipv6AddressResolverResolves the device's globally-routable IPv6 source address without emitting any packets.
The resolution uses the UDP-connect trick: DatagramSocket.connect performs a local routing/source-address lookup only — it never sends or receives data. No
send()/receive()or any other I/O may EVER be added to this path; doing so would turn an attacker-influenceable destinationIp into an outbound probe.The method never throws — every failure emits a telemetry failure event with the appropriate TelemetryConstant.ErrorCode.
-
-
Field Summary
Fields Modifier and Type Field Description public final static Ipv6AddressResolverINSTANCE
-
Method Summary
-
-
Method Detail
-
resolve
@WorkerThread() final String resolve(String destinationIp, String trigger)
- Parameters:
destinationIp- the IPv6 destination used only for the local source-address lookup.trigger- the resolution trigger, emitted in the resolve/encode/failure telemetry payloads.- Returns:
the 22-character base64url-encoded global IPv6 source address, or
nullon any failure.
-
-
-
-