AndroidAttestationProvider

Functions

Link copied to clipboard
open suspend override fun clearAttestationStateForReAttestation()

Clears in-memory and on-device attestation state so a subsequent full attestation can succeed. Invoked when the stored key is no longer valid on Link or locally.

Link copied to clipboard
open suspend override fun fetchNonce(keyId: String?): ByteArray

Returns the persisted key identifier if there is an attested key pair persisted in the secure enclave of the device.

Link copied to clipboard
open suspend override fun generateAssertionObject(keyId: String, nonce: ByteArray): AssertionObject
Link copied to clipboard
open suspend override fun generateAttestedKeyPair(): AttestationObject
Link copied to clipboard

Generates certificate chain from the private key created in the system. This certificate is then to be sent to Link for verifying attestation.

Link copied to clipboard
open suspend override fun getStoredKeyRecord(): String?
Link copied to clipboard
fun provideGrpcChannel(channel: ManagedChannel)
Link copied to clipboard

Signs the provided nonce with the persisted attested private keys stored on the device. The signature returned can be used for assertion flows verifying the integrity of the device