Show / Hide Table of Contents

VerifyAttestation Method

VerifyAttestation(ReadOnlyMemory<byte>)

Use the zero'th public key in the AttestationCertificates list to verify the AuthenticatorData and client data hash using the signature that is the AttestationStatement.

C#
public bool VerifyAttestation(ReadOnlyMemory<byte> clientDataHash)

Parameters

Type Name Description
ReadOnlyMemory<byte> clientDataHash

The client data hash sent to the YubiKey to make the credential.

Returns

bool

A boolean, true if the attestation statement (the signature) verifies, false otherwise.

Exceptions

Type Condition
InvalidOperationException

There is no cert in the attestation certificate list.

Remarks

If the signature verifies, this method will return true, and if it does not verify, it will return false. If there are no certificates in the list, this method will throw an exception.

In this article
Back to top Generated by DocFX