AppIntegrityCallback

Callback to collect integrity token.

Constructors

Link copied to clipboard
constructor(jsonObject: JSONObject, index: Int)
constructor()

Types

Link copied to clipboard

Properties

Link copied to clipboard
protected var _id: Int
Link copied to clipboard
protected var content: String
Link copied to clipboard
private lateinit var node: Node

The Node that associate with this Callback

Link copied to clipboard
lateinit var nonce: String

The nonce received from server

Link copied to clipboard
lateinit var projectNumber: String

The projectNumber received from server

Link copied to clipboard
lateinit var requestType: RequestType

The request type

Functions

Link copied to clipboard
open fun clearCache()

Clear the cache to store the StandardIntegrityTokenProvider

Link copied to clipboard
open override fun get_id(): Int

Return the unique id for this callback. The id only available with Callback that using PageCallback

Link copied to clipboard
Link copied to clipboard
open override fun getContent(): String

Return the raw content of the Callback.

Link copied to clipboard
protected open fun getContentAsJson(): JSONObject
Link copied to clipboard
private open fun getInput(content: JSONObject, index: Int): JSONObject
Link copied to clipboard
open fun getInputValue(): Any

Get the first value for input

open fun getInputValue(index: Int): Any

Get the value for input

Link copied to clipboard
open fun getIntegrityManager(context: Context): IntegrityManager
Link copied to clipboard
protected open fun getName(jsonObject: JSONObject): String
Link copied to clipboard
open fun getStandardIntegrityManager(context: Context): StandardIntegrityManager

For Standard API

Link copied to clipboard
open suspend fun getStandardIntegrityTokenProvider(context: Context): StandardIntegrityManager.StandardIntegrityTokenProvider
Link copied to clipboard
open fun getTimeout(): Duration

Retrieve the timeout to retrieve an Integrity Token Default to 10 Seconds

Link copied to clipboard
open override fun getType(): String

Return the type of the Callback, the type name should align with the Callback type returned from AM

Link copied to clipboard
private fun hash(input: ByteArray): String
Link copied to clipboard
private fun hashWithNonce(input: ByteArray): String
Link copied to clipboard
open suspend fun requestIntegrityToken(context: Context)

Request the integrity token

open fun requestIntegrityToken(context: Context, listener: FRListener<Void>)

Request for Integrity Token from Google SDK

Link copied to clipboard
protected override fun setAttribute(name: String, value: Any)
Link copied to clipboard

Input the Client Error to the server

Link copied to clipboard
protected open fun setContent(jsonObject: JSONObject)

Sets the value of the Callback

Link copied to clipboard
open override fun setNode(node: Node)

Inject the Node object

Link copied to clipboard
fun setToken(value: String)

Input the Token to the server

Link copied to clipboard
protected open fun setValue(value: Any)

Set the first value for input

protected open fun setValue(value: Any, index: Int)

Set the value for the input.