StandardIntegrityManager

public interface StandardIntegrityManager

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


Manages requests for integrity information.

Summary

Nested classes

class StandardIntegrityManager.PrepareIntegrityTokenRequest

Request for StandardIntegrityManager.prepareIntegrityToken(PrepareIntegrityTokenRequest)

class StandardIntegrityManager.StandardIntegrityToken

Response of StandardIntegrityManager.StandardIntegrityTokenProvider.request(StandardIntegrityTokenRequest)

interface StandardIntegrityManager.StandardIntegrityTokenProvider

Standard integrity token provider. 

class StandardIntegrityManager.StandardIntegrityTokenRequest

Request for StandardIntegrityManager.StandardIntegrityTokenProvider.request(StandardIntegrityTokenRequest)

Public methods

abstract Task<StandardIntegrityManager.StandardIntegrityTokenProvider> prepareIntegrityToken(StandardIntegrityManager.PrepareIntegrityTokenRequest request)

Prepares the integrity token and makes it available for requesting via StandardIntegrityManager.StandardIntegrityTokenProvider.

Public methods

prepareIntegrityToken

public abstract Task<StandardIntegrityManager.StandardIntegrityTokenProvider> prepareIntegrityToken (StandardIntegrityManager.PrepareIntegrityTokenRequest request)

Prepares the integrity token and makes it available for requesting via StandardIntegrityManager.StandardIntegrityTokenProvider.

You can call this method from time to time in order to refresh the resulting StandardIntegrityManager.StandardIntegrityTokenProvider.

Note that this API makes a call to Google servers and hence requires a network connection.

Parameters
request StandardIntegrityManager.PrepareIntegrityTokenRequest: the object to prepare the integrity token with.

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