Package com.inmobi.media.core.signals.ip
Object IPv6Encoder
-
- All Implemented Interfaces:
public class IPv6EncoderEncodes a resolved IPv6 address into a compact, URL-safe form for the
cip6ad-request field.The 16 raw address bytes are base64url-encoded (URL_SAFE | NO_PADDING | NO_WRAP), producing a fixed 22-character string. Encoding is done once at resolve/storage time, never at request time. The transform is bijective and is a length transform only — it is NOT a security control.
-
-
Field Summary
Fields Modifier and Type Field Description public final static IPv6EncoderINSTANCE
-
Method Summary
Modifier and Type Method Description final Stringencode(Inet6Address address)-
-
Method Detail
-
encode
final String encode(Inet6Address address)
- Returns:
the 22-character base64url encoding of address's 16 raw bytes.
-
-
-
-