Show / Hide Table of Contents

CredentialId Constructor

CredentialId()

Constructs a new instance of CredentialId.

C#
public CredentialId()

CredentialId(ReadOnlyMemory<byte>, out int)

Constructs a new instance of CredentialId from the encodedCredentialId.

C#
public CredentialId(ReadOnlyMemory<byte> encodedCredentialId, out int bytesRead)

Parameters

Type Name Description
ReadOnlyMemory<byte> encodedCredentialId

The CBOR encoding of the credential ID.

int bytesRead

The constructor will return the number of bytes read.

Exceptions

Type Condition
Ctap2DataException

The encodedCredentialId is not a correct encoding.

Remarks

This constructor expects the encoding to follow this CBOR template.

map {
  "type"        --text string--
  "id"          --text string--
  "transports"  --array of strings-- (optional)
}
In this article
Back to top Generated by DocFX