CredentialId Constructor
CredentialId()
Constructs a new instance of CredentialId.
C#
public CredentialId()
CredentialId(ReadOnlyMemory<Byte>, out Int32)
Constructs a new instance of CredentialId from the
encodedCredentialId
.
C#
public CredentialId(ReadOnlyMemory<byte> encodedCredentialId, out int bytesRead)
Parameters
Type | Name | Description |
---|---|---|
System.ReadOnlyMemory<System.Byte> | encodedCredentialId | The CBOR encoding of the credential ID. |
System.Int32 | bytesRead | The constructor will return the number of bytes read. |
Exceptions
Type | Condition |
---|---|
Ctap2DataException | The |
Remarks
This constructor expects the encoding to follow this CBOR template.
map {
"type" --text string--
"id" --text string--
"transports" --array of strings-- (optional)
}