StandardIntegrityManager.StandardIntegrityTokenProvider

public static interface StandardIntegrityManager.StandardIntegrityTokenProvider

com.google.android.play.core.integrity.StandardIntegrityManager.StandardIntegrityTokenProvider


標準完整性權杖供應工具。

執行個體會繫結至 StandardIntegrityManager.prepareIntegrityToken(PrepareIntegrityTokenRequest) 呼叫。

摘要

公用方法

abstract Task<StandardIntegrityManager.StandardIntegrityToken> request(StandardIntegrityManager.StandardIntegrityTokenRequest request)

傳回完整性相關查詢的權杖。

公用方法

request

public abstract Task<StandardIntegrityManager.StandardIntegrityToken> request (StandardIntegrityManager.StandardIntegrityTokenRequest request)

傳回完整性相關查詢的權杖。

只有在 StandardIntegrityManager.prepareIntegrityToken(PrepareIntegrityTokenRequest) 完成後才能呼叫這個方法。

參數
request StandardIntegrityManager.StandardIntegrityTokenRequest:用於要求完整性憑證的物件。

傳回
Task<StandardIntegrityManager.StandardIntegrityToken> 在要求流程成功或失敗時完成的 Task。如果失敗,系統會擲回納入 TaskStandardIntegrityException