Table of Contents

Class Credential

Namespace
Selenium.WebDriver.BiDi.Cdp.WebAuthn
Assembly
Selenium.WebDriver.BiDi.Cdp.dll
public sealed record Credential : IEquatable<Credential>
Inheritance
Credential
Implements
Inherited Members

Constructors

Credential(string, bool, string, double)

public Credential(string CredentialId, bool IsResidentCredential, string PrivateKey, double SignCount)

Parameters

CredentialId string
IsResidentCredential bool
PrivateKey string

The ECDSA P-256 private key in PKCS#8 format. (Encoded as a base64 string when passed over JSON)

SignCount double

Signature counter. Must be equal to or greater than -1. If -1, the credential won't have an associated signature counter, and every assertion operation will report a value of 0. See https://w3c.github.io/webauthn/#signature-counter

Properties

ActiveCmtgKeyIndex

The 0-based index of the active key in cmtgKeys.

public long? ActiveCmtgKeyIndex { get; init; }

Property Value

long?

BackupEligibility

Assertions returned by this credential will have the backup eligibility (BE) flag set to this value. Defaults to the authenticator's defaultBackupEligibility value.

public bool? BackupEligibility { get; init; }

Property Value

bool?

BackupState

Assertions returned by this credential will have the backup state (BS) flag set to this value. Defaults to the authenticator's defaultBackupState value.

public bool? BackupState { get; init; }

Property Value

bool?

CmtgKeys

The CMTG keys associated with the credential.

public ImmutableArray<string>? CmtgKeys { get; init; }

Property Value

ImmutableArray<string>?

CredentialId

public string CredentialId { get; init; }

Property Value

string

GenerateCmtgKeyOnNextOperation

If true, the authenticator will generate a new CMTG key on the next operation.

public bool? GenerateCmtgKeyOnNextOperation { get; init; }

Property Value

bool?

IsResidentCredential

public bool IsResidentCredential { get; init; }

Property Value

bool

LargeBlob

The large blob associated with the credential. See https://w3c.github.io/webauthn/#sctn-large-blob-extension (Encoded as a base64 string when passed over JSON)

public string? LargeBlob { get; init; }

Property Value

string

PrivateKey

The ECDSA P-256 private key in PKCS#8 format. (Encoded as a base64 string when passed over JSON)

public string PrivateKey { get; init; }

Property Value

string

RpId

Relying Party ID the credential is scoped to. Must be set when adding a credential.

public string? RpId { get; init; }

Property Value

string

SignCount

Signature counter. Must be equal to or greater than -1. If -1, the credential won't have an associated signature counter, and every assertion operation will report a value of 0. See https://w3c.github.io/webauthn/#signature-counter

public double SignCount { get; init; }

Property Value

double

UserDisplayName

The credential's user.displayName property. Equivalent to empty if not set. https://w3c.github.io/webauthn/#dom-publickeycredentialuserentity-displayname

public string? UserDisplayName { get; init; }

Property Value

string

UserHandle

An opaque byte sequence with a maximum size of 64 bytes mapping the credential to a specific user. (Encoded as a base64 string when passed over JSON)

public string? UserHandle { get; init; }

Property Value

string

UserName

The credential's user.name property. Equivalent to empty if not set. https://w3c.github.io/webauthn/#dom-publickeycredentialentity-name

public string? UserName { get; init; }

Property Value

string