# StandardIntegrityManager.StandardIntegrityToken


```
public abstract class StandardIntegrityManager.StandardIntegrityToken
```

<br />

*** ** * ** ***

Response of [StandardIntegrityTokenProvider#request(StandardIntegrityTokenRequest)](https://developer.android.com/google/play/integrity/reference/com/google/android/play/core/integrity/StandardIntegrityManager.StandardIntegrityTokenProvider#request(com.google.android.play.core.integrity.StandardIntegrityManager.StandardIntegrityTokenRequest)).

## Summary

| ### Public constructors |
|---|
| [StandardIntegrityToken](https://developer.android.com/google/play/integrity/reference/com/google/android/play/core/integrity/StandardIntegrityManager.StandardIntegrityToken#StandardIntegrityToken())`()` |

| ### Public methods |
|---|---|
| `abstract `[Task](https://developers.google.com/android/reference/com/google/android/gms/tasks/Task.html)`<`[Integer](https://developer.android.com/reference/java/lang/Integer.html)`>` | ~~[showDialog](https://developer.android.com/google/play/integrity/reference/com/google/android/play/core/integrity/StandardIntegrityManager.StandardIntegrityToken#showDialog(android.app.Activity,int))~~`(`[Activity](https://developer.android.com/reference/android/app/Activity.html)` activity, int typeCode)` **This method is deprecated.** Use [StandardIntegrityManager#showDialog(StandardIntegrityDialogRequest)](https://developer.android.com/google/play/integrity/reference/com/google/android/play/core/integrity/StandardIntegrityManager#showDialog(com.google.android.play.core.integrity.StandardIntegrityManager.StandardIntegrityDialogRequest)) instead. <br /> |
| `abstract `[String](https://developer.android.com/reference/java/lang/String.html) | [token](https://developer.android.com/google/play/integrity/reference/com/google/android/play/core/integrity/StandardIntegrityManager.StandardIntegrityToken#token())`()` A token which contains the response for the integrity related enquiries. |

## Public constructors

### StandardIntegrityToken

```
public StandardIntegrityToken()
```  

## Public methods

### showDialog

```
public abstract Task<Integer> [showDialog](https://developer.android.com/google/play/integrity/reference/com/google/android/play/core/integrity/StandardIntegrityManager.StandardIntegrityToken#showDialog(android.app.Activity,int))(Activity activity, int typeCode)
```
| **This method is deprecated.**   
|
| Use [StandardIntegrityManager#showDialog(StandardIntegrityDialogRequest)](https://developer.android.com/google/play/integrity/reference/com/google/android/play/core/integrity/StandardIntegrityManager#showDialog(com.google.android.play.core.integrity.StandardIntegrityManager.StandardIntegrityDialogRequest)) instead.

Displays a dialog to the user.

This method can only be called once per Integrity API response.  

| Parameters |
|---|---|
| `int typeCode` | determines which Integrity Dialog type should be shown. See [IntegrityDialogTypeCode](https://developer.android.com/google/play/integrity/reference/com/google/android/play/core/integrity/model/IntegrityDialogTypeCode) for the supported types. |

| Returns |
|---|---|
| [Task](https://developers.google.com/android/reference/com/google/android/gms/tasks/Task.html)`<`[Integer](https://developer.android.com/reference/java/lang/Integer.html)`>` | A [Task](https://developers.google.com/android/reference/com/google/android/gms/tasks/Task.html) that completes with a [IntegrityDialogResponseCode](https://developer.android.com/google/play/integrity/reference/com/google/android/play/core/integrity/model/IntegrityDialogResponseCode) the showDialog flow succeeded or failed. |

### token

```
public abstract String token()
```

A token which contains the response for the integrity related enquiries.