Summary: [Ctors](https://developer.android.com/google/play/integrity/reference/com/google/android/play/core/integrity/StandardIntegrityManager.StandardIntegrityToken#pubctors) \| [Methods](https://developer.android.com/google/play/integrity/reference/com/google/android/play/core/integrity/StandardIntegrityManager.StandardIntegrityToken#pubmethods) \| [Inherited Methods](https://developer.android.com/google/play/integrity/reference/com/google/android/play/core/integrity/StandardIntegrityManager.StandardIntegrityToken#inhmethods)  

# StandardIntegrityManager.StandardIntegrityToken


`
public
static

abstract
class
StandardIntegrityManager.StandardIntegrityToken
`


`

extends `[Object](https://developer.android.com/reference/java/lang/Object.html)`


`

`


`

|---|----------------------------------------------------------------------------------------|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object.html)         ||
| ↳ | com.google.android.play.core.integrity.StandardIntegrityManager.StandardIntegrityToken |

<br />

*** ** * ** ***

Response of [StandardIntegrityManager.StandardIntegrityTokenProvider.request(StandardIntegrityTokenRequest)](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)).

## Summary

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

|                                                                                                                                                                                                                                                                                                                                                                                                                                   ### Public methods                                                                                                                                                                                                                                                                                                                                                                                                                                   ||
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` abstract `[Task](https://developer.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.html#showDialog(android.app.Activity,%20int))`(`[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.html#showDialog(com.google.android.play.core.integrity.StandardIntegrityManager.StandardIntegrityDialogRequest)) instead.* |
| ` 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.html#token())`() ` A token which contains the response for the integrity related enquiries.                                                                                                                                                                                                                                                                                                                                                                                                                                  |

| ### Inherited methods |
|-----------------------|---|
| From class ` `[java.lang.Object](https://developer.android.com/reference/java/lang/Object.html)` ` |-------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------| | ` boolean`                                                                          | ` equals(`[Object](https://developer.android.com/reference/java/lang/Object.html)` arg0) ` | | ` final `[Class](https://developer.android.com/reference/java/lang/Class.html)`<?>` | ` getClass() `                                                                             | | ` int`                                                                              | ` hashCode() `                                                                             | | ` final void`                                                                       | ` notify() `                                                                               | | ` final void`                                                                       | ` notifyAll() `                                                                            | | ` `[String](https://developer.android.com/reference/java/lang/String.html)          | ` toString() `                                                                             | | ` final void`                                                                       | ` wait(long arg0, int arg1) `                                                              | | ` final void`                                                                       | ` wait(long arg0) `                                                                        | | ` final void`                                                                       | ` wait() `                                                                                 | ||

## Public constructors

### StandardIntegrityToken

```
public StandardIntegrityToken ()
```

<br />

<br />

## Public methods

### showDialog

```
public abstract Task<Integer> showDialog (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.html#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.

<br />

|                                                                                                                                                Parameters                                                                                                                                                ||
|------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `activity` | `Activity` <br />                                                                                                                                                                                                                                                                            |
| `typeCode` | `int`: determines which Integrity Dialog type should be shown. The available values can be found in the [token()](https://developer.android.com/google/play/integrity/reference/com/google/android/play/core/integrity/StandardIntegrityManager.StandardIntegrityToken.html#token()). <br /> |

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

### token

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

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

<br />

|                                     Returns                                     ||
|-------------------------------------------------------------------------|--------|
| [String](https://developer.android.com/reference/java/lang/String.html) | <br /> |