Show / Hide Table of Contents

GetAssertionData Class

Namespace: Yubico.YubiKey.Fido2 Assembly: Yubico.YubiKey.dll

Contains the data returned by the YubiKey after getting an assertion.

C#
public class GetAssertionData
Inheritance object GetAssertionData

Remarks

When an assertion is obtained, the YubiKey returns data about that assertion, including the credential. There are several elements in this data and this structure contains those elements.

Constructors

Name Description
GetAssertionData(ReadOnlyMemory<byte>)

Build a new instance of GetAssertionData based on the given CBOR encoding.

Properties

Name Description
AuthenticatorData

The object that contains both the encoded authenticator data, which is to be used in verifying the attestation statement, and the decoded elements, including the credential itself, a public key.

CredentialId

The credential ID for the assertion just obtained.

LargeBlobKey

The large blob key, if there is one. This is optional and can be null.

NumberOfCredentials

The total number of credentials found on the YubiKey for the relying party. This is optional and can be null. If null, then there is only one credential.

Signature

The assertion signature, which can be used to verify the assertion the call to GetAssertion returned.

User

The user's ID, along with optional descriptive strings. This is an optional element and can be null.

UserSelected

If true, the credential was selected by the user via interaction directly with the authenticator. This is optional and can be null. If null, then this is considered false.

Methods

Name Description
Dispose()

Releases any unmanaged resources and overwrites any sensitive data.

Dispose(bool)

Releases any unmanaged resources and overwrites any sensitive data.

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.

In this article
Back to top Generated by DocFX