Show / Hide Table of Contents

CredentialManagementData Class

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

Parses the data returned by the YubiKey after calling one of the authenticatorCredentialManagement subcommands. This class is relevant only to the class in order to extract data from a response.

C#
public class CredentialManagementData
Inheritance object CredentialManagementData

Remarks

When a credential management subcommand is sent to the YubiKey, it returns data encoded following the definition of the authenticatorCredentialManagement response. The FIDO2 standard defines this encoded response as a map of a set of elements. The standard also specifies which subset of the total data is returned by each subcommand.

After calling one of the subcommands, get the data out of the response. It will be an instance of this class. Only those elements the particular subcommand returns will be represented in the object, the rest will be null.

For example, if you call the get credential metadata subcommand, the YubiKey will return the number of discoverable credentials and the maximum number of credentials the YubiKey can yet hold (i.e. the number of remaining slots). Hence, the only two properties with values will be NumberOfDiscoverableCredentials and RemainingCredentialCount. All other properties will be null.

Constructors

Name Description
CredentialManagementData(ReadOnlyMemory<byte>)

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

Properties

Name Description
CredProtectPolicy

The credential protection policy. See section 12.1.1 of the FIDO2 standard for a description of the meanings of the number returned.

CredentialId

The credential ID for a credential returned.

CredentialPublicKey

The public key for a credential returned.

LargeBlobKey

The large blob key for a credential.

NumberOfDiscoverableCredentials

The number of discoverable credentials on the YubiKey. This is not the total number of credentials, because there could be non-discoverable credentials as well.

RelyingParty

The relying party information when the request for data is one related to specific relying parties.

RelyingPartyIdHash

The SHA-256 digest of the relying party ID when the request for data is one related to specific relying parties.

RemainingCredentialCount

The number of credentials the YubiKey can still hold.

TotalCredentialsForRelyingParty

The total number of credentials present on the YubiKey for a specified relying party.

TotalRelyingPartyCount

The total number of relying parties present on the YubiKey, when the request for data is one related to specific relying parties.

User

The user entity for a credential returned.

In this article
Back to top Generated by DocFX