Package org.mozilla.geckoview
Interface IPProtectionController.GpiProvider
- Enclosing class:
- IPProtectionController
public static interface IPProtectionController.GpiProvider
Embedder-provided hooks for Google Play Integrity authentication.
-
Method Summary
Modifier and TypeMethodDescriptiondefault GeckoResult<String>Invoked by Gecko to obtain a fresh GPI integrity token from the embedder.default GeckoResult<Void>warmUp()Called when Gecko requests GPI warm-up.
-
Method Details
-
warmUp
Called when Gecko requests GPI warm-up. The returnedGeckoResultshould resolve once warm-up is complete. On success the controller dispatchesGeckoView:IPProtection:GPI:WarmUpCompletedto Gecko; on failureGeckoView:IPProtection:GPI:WarmUpFailedis dispatched so the auth provider can fall back to FxA.- Returns:
- A
GeckoResultthat resolves when warm-up finishes.
-
onTokenRequest
Invoked by Gecko to obtain a fresh GPI integrity token from the embedder. This is triggered during enrollment with the Guardian backend when the user turns on IP Protection, or when the cached auth token has expired and must be renewed.To signal that no token is available, return a
GeckoResultthat rejects or resolves tonullor an empty string.- Returns:
- A
GeckoResultthat resolves to a non-empty token string.
-