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