Namespace: DSInternals.Win32.WebAuthn.Cryptography
Assembly: DSInternals.Win32.WebAuthn.dll
Represents the top-level Header of a FIDO Credential Exchange Format (CXF) payload.
public sealed class CredentialExchangeFileobject ← CredentialExchangeFile
object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()
Implements the cleartext data model defined in FIDO Credential Exchange Format v1.0.
The CXF credential type discriminator value used for passkeys.
public const string PasskeyCredentialType = "passkey"The list of accounts contained in the export.
[JsonPropertyName("accounts")]
public CredentialExchangeAccount[]? Accounts { get; set; }The display name of the exporting credential provider.
[JsonPropertyName("exporterDisplayName")]
public string? ExporterDisplayName { get; set; }The relying party identifier of the exporting credential provider.
[JsonPropertyName("exporterRpId")]
public string? ExporterRelyingPartyId { get; set; }The Unix timestamp at which the export was generated, in seconds.
[JsonPropertyName("timestamp")]
public ulong Timestamp { get; set; }The version of the CXF payload.
[JsonPropertyName("version")]
public CredentialExchangeVersion? Version { get; set; }Returns all passkeys contained in this CXF payload.
public IReadOnlyList<ExportedPasskey> GetPasskeys(Guid? aaGuid = null)aaGuid Guid?
Optional AAGUID to assign to the imported passkeys. Defaults to as CXF does not carry an AAGUID.
IReadOnlyList<ExportedPasskey>
The passkeys contained in the export.
Loads and parses a CXF JSON document from disk.
public static CredentialExchangeFile LoadFromFile(string filePath)filePath string
Path to the CXF JSON file.
The parsed CXF payload.
Parses a CXF JSON document.
public static CredentialExchangeFile LoadFromJson(string json)json string
The CXF JSON content.
The parsed CXF payload.