Show / Hide Table of Contents

VerifyAssertion Method

VerifyAssertion(CoseKey, ReadOnlyMemory<byte>)

Use the given public key to verify the Signature. This method will use the clientDataHash and the AuthenticatorData as the data to verify.

C#
public bool VerifyAssertion(CoseKey publicKey, ReadOnlyMemory<byte> clientDataHash)

Parameters

Type Name Description
CoseKey publicKey

The public key returned when the credential was first made, it will be used to verify.

ReadOnlyMemory<byte> clientDataHash

The client data hash used to get the assertion.

Returns

bool

A boolean, true if the signature verifies, false otherwise.

Remarks

If the signature verifies, this method will return true, and if it does not verify, it will return false. If there are any errors, this method will throw an exception.

In this article
Back to top Generated by DocFX