StandardIntegrityManager.PrepareIntegrityTokenRequest.Builder

public abstract class StandardIntegrityManager.PrepareIntegrityTokenRequest.Builder


PrepareIntegrityTokenRequest 的构建器。

摘要

公共构造函数

公共方法

abstract StandardIntegrityManager.PrepareIntegrityTokenRequest

构建 PrepareIntegrityTokenRequest

abstract StandardIntegrityManager.PrepareIntegrityTokenRequest.Builder

将要关联到完整性令牌的 Cloud 项目编号。

abstract StandardIntegrityManager.PrepareIntegrityTokenRequest.Builder

在令牌准备期间应用的 WebView 请求模式。

公共构造函数

Builder

public Builder()

公共方法

setCloudProjectNumber

public abstract StandardIntegrityManager.PrepareIntegrityTokenRequest.Builder setCloudProjectNumber(long value)

将要关联到完整性令牌的 Cloud 项目编号。

必须填写此字段。

对于已启用 Play Integrity API 的 Cloud 项目,您可以在 Google Cloud 控制台的“项目信息”中找到其 Cloud 项目编号。

用于 在 Google 服务器上解密令牌的调用必须使用与此请求中的令牌相关联的 Cloud 账号进行身份验证。

setWebViewRequestMode

public abstract StandardIntegrityManager.PrepareIntegrityTokenRequest.Builder setWebViewRequestMode(int value)

在令牌准备期间要应用的 WebView 请求模式。

此参数仅用于高级系统使用情形,应用、游戏或 SDK 开发者必须将其留空。

一种标准完整性 WebView 请求模式,允许 WebView 指定要接收的完整性判定结果子集。可用值可在 StandardIntegrityWebViewRequestMode 中找到。

调用方必须加入许可名单,才能使用此模式调用标准完整性 API。

默认情况下未指定。

自 1.6.0 起