Class Credential
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
CredentialIdstringIsResidentCredentialboolPrivateKeystringThe ECDSA P-256 private key in PKCS#8 format. (Encoded as a base64 string when passed over JSON)
SignCountdoubleSignature 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
CredentialId
public string CredentialId { get; init; }
Property Value
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
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
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
RpId
Relying Party ID the credential is scoped to. Must be set when adding a credential.
public string? RpId { get; init; }
Property Value
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
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
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
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; }