verifyAssertion
abstract fun verifyAssertion(attestationObject: ByteArray, assertionFromDevice: ByteArray, referenceClientData: ByteArray, challenge: ByteArray, counter: Long = 0): AttestationResult(source)
Verifies an App Attestation in conjunction with an assertion for some client data.
First, it verifies the app attestation, afterwards it verifies the assertion, checks whether at most counter many signatures have been performed using the key bound to the attestation before signing the assertion and verifies whether the client data referenced within the assertion matches referenceClientData
Parameters
attestationObject
the AppAttest attestation object to verify
assertionFromDevice
the assertion data created on the device.
referenceClientData
the expected client data to be contained in assertionFromDevice
counter
the highest expected value of the signature counter prior to creating the assertion.