Table of Contents

Class Credential

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

Credential

public sealed class Credential
Inheritance
Credential
Inherited Members

Properties

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?

CredentialId

credentialId

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

Property Value

string

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. This is incremented by one for each successful assertion. See https://w3c.github.io/webauthn/#signature-counter

[JsonPropertyName("signCount")]
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