StandardIntegrityManager.StandardIntegrityTokenProvider

public static interface StandardIntegrityManager.StandardIntegrityTokenProvider

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


Standard integrity token provider.

The instance is bound to StandardIntegrityManager.prepareIntegrityToken(PrepareIntegrityTokenRequest) call.

Summary

Public methods

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

Returns a token for integrity-related enquiries.

Public methods

request

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

Returns a token for integrity-related enquiries.

This must be called only after StandardIntegrityManager.prepareIntegrityToken(PrepareIntegrityTokenRequest) completes.

Parameters
request StandardIntegrityManager.StandardIntegrityTokenRequest: the object to request integrity token with.

Returns
Task<StandardIntegrityManager.StandardIntegrityToken> A Task that completes once the request flow succeeded or failed. In case of a failure, StandardIntegrityException wrapped with a Task will be thrown.