# StandardIntegrityManager.StandardIntegrityTokenProvider


`
public
static


interface
StandardIntegrityManager.StandardIntegrityTokenProvider
`


`


`

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

<br />

*** ** * ** ***

Standard integrity token provider.

The instance is bound to [StandardIntegrityManager.prepareIntegrityToken(PrepareIntegrityTokenRequest)](https://developer.android.com/google/play/integrity/reference/com/google/android/play/core/integrity/StandardIntegrityManager.html#prepareIntegrityToken(com.google.android.play.core.integrity.StandardIntegrityManager.PrepareIntegrityTokenRequest)) call.

## Summary

|                                                                                                                                                                                                                                                                                                                                                                                                                                              ### Public methods                                                                                                                                                                                                                                                                                                                                                                                                                                               ||
|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` abstract `[Task](https://developer.google.com/android/reference/com/google/android/gms/tasks/Task.html)`<`[StandardIntegrityManager.StandardIntegrityToken](https://developer.android.com/google/play/integrity/reference/com/google/android/play/core/integrity/StandardIntegrityManager.StandardIntegrityToken.html)`>` | ` `[request](https://developer.android.com/google/play/integrity/reference/com/google/android/play/core/integrity/StandardIntegrityManager.StandardIntegrityTokenProvider.html#request(com.google.android.play.core.integrity.StandardIntegrityManager.StandardIntegrityTokenRequest))`(`[StandardIntegrityManager.StandardIntegrityTokenRequest](https://developer.android.com/google/play/integrity/reference/com/google/android/play/core/integrity/StandardIntegrityManager.StandardIntegrityTokenRequest.html)` 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)](https://developer.android.com/google/play/integrity/reference/com/google/android/play/core/integrity/StandardIntegrityManager.html#prepareIntegrityToken(com.google.android.play.core.integrity.StandardIntegrityManager.PrepareIntegrityTokenRequest)) completes.

<br />

|                                                       Parameters                                                        ||
|-----------|--------------------------------------------------------------------------------------------------------------|
| `request` | `StandardIntegrityManager.StandardIntegrityTokenRequest`: the object to request integrity token with. <br /> |

|                                                                                                                                                                                                                                                                                                                                                                                                 Returns                                                                                                                                                                                                                                                                                                                                                                                                 ||
|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Task](https://developer.google.com/android/reference/com/google/android/gms/tasks/Task.html)`<`[StandardIntegrityManager.StandardIntegrityToken](https://developer.android.com/google/play/integrity/reference/com/google/android/play/core/integrity/StandardIntegrityManager.StandardIntegrityToken.html)`>` | A [Task](https://developer.google.com/android/reference/com/google/android/gms/tasks/Task.html) that completes once the request flow succeeded or failed. In case of a failure, [StandardIntegrityException](https://developer.android.com/google/play/integrity/reference/com/google/android/play/core/integrity/StandardIntegrityException.html) wrapped with a [Task](https://developer.google.com/android/reference/com/google/android/gms/tasks/Task.html) will be thrown. <br /> |