UserEntity Constructor
UserEntity(ReadOnlyMemory<byte>)
Constructs a new instance of UserEntity.
C#
public UserEntity(ReadOnlyMemory<byte> id)
Parameters
Type | Name | Description |
---|---|---|
ReadOnlyMemory<byte> | id | The user's account ID. This constructor will copy a reference to the
input |
UserEntity(ReadOnlyMemory<byte>, out int)
Constructs a new instance of UserEntity from the
encodedUserEntity
.
C#
public UserEntity(ReadOnlyMemory<byte> encodedUserEntity, out int bytesRead)
Parameters
Type | Name | Description |
---|---|---|
ReadOnlyMemory<byte> | encodedUserEntity | The CBOR encoding of the user information. |
int | 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 {
"id" --byte string--
"name" --text string-- (optional)
"displayName" --text string-- (optional)
}