Table of Contents

Class Credential

Namespace
OpenQA.Selenium.DevTools.V152.WebAuthn
Assembly
Selenium.WebDriver.dll

Credential

public sealed class Credential
Inheritance
Credential
Inherited Members

Properties

ActiveCmtgKeyIndex

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

[JsonPropertyName("activeCmtgKeyIndex")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public long? ActiveCmtgKeyIndex { get; set; }

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.

[JsonPropertyName("backupEligibility")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public bool? BackupEligibility { get; set; }

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.

[JsonPropertyName("backupState")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public bool? BackupState { get; set; }

Property Value

bool?

CmtgKeys

The CMTG keys associated with the credential.

[JsonPropertyName("cmtgKeys")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public string[]? CmtgKeys { get; set; }

Property Value

string[]

CredentialId

credentialId

[JsonPropertyName("credentialId")]
public string CredentialId { get; set; }

Property Value

string

GenerateCmtgKeyOnNextOperation

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

[JsonPropertyName("generateCmtgKeyOnNextOperation")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public bool? GenerateCmtgKeyOnNextOperation { get; set; }

Property Value

bool?

IsResidentCredential

isResidentCredential

[JsonPropertyName("isResidentCredential")]
public bool IsResidentCredential { get; set; }

Property Value

bool

LargeBlob

The large blob associated with the credential. See https://w3c.github.io/webauthn/#sctn-large-blob-extension

[JsonPropertyName("largeBlob")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public string? LargeBlob { get; set; }

Property Value

string

PrivateKey

The ECDSA P-256 private key in PKCS#8 format.

[JsonPropertyName("privateKey")]
public string PrivateKey { get; set; }

Property Value

string

RpId

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

[JsonPropertyName("rpId")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public string? RpId { get; set; }

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

[JsonPropertyName("signCount")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public long? SignCount { get; set; }

Property Value

long?

UserDisplayName

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

[JsonPropertyName("userDisplayName")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public string? UserDisplayName { get; set; }

Property Value

string

UserHandle

An opaque byte sequence with a maximum size of 64 bytes mapping the credential to a specific user.

[JsonPropertyName("userHandle")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public string? UserHandle { get; set; }

Property Value

string

UserName

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

[JsonPropertyName("userName")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public string? UserName { get; set; }

Property Value

string