generateAssertion
actual suspend fun generateAssertion(secureArea: SecureArea, deviceAttestationId: String, assertion: Assertion): DeviceAssertion
expect suspend fun generateAssertion(secureArea: SecureArea, deviceAttestationId: String, assertion: Assertion): DeviceAssertion
Generates DeviceAssertion - an Assertion which is signed using the key generated using by generateAttestation method.
Note that the exact format for the signature is platform-dependent.
Validity of the assertion can be verified using DeviceAttestation.validateAssertion using the DeviceAttestation object that corresponds to the given deviceAttestationId.
Return
a DeviceAssertion which contains proof of assertion which can be sent to the party requesting the assertion.
Parameters
secureArea
must be the same value as was passed to generateAttestation method.
deviceAttestationId
the attestation id from the DeviceAttestationResult obtained from the generateAttestation call.
assertion
the assertion of make, e.g. AssertionNonce.
actual suspend fun generateAssertion(secureArea: <Error class: unknown class>, deviceAttestationId: String, assertion: <Error class: unknown class>): <Error class: unknown class>
actual suspend fun generateAssertion(secureArea: SecureArea, deviceAttestationId: String, assertion: Assertion): DeviceAssertion