UpdateUserInfoCommand Class
Namespace: Yubico.YubiKey.Fido2.Commands Assembly: Yubico.YubiKey.dllUpdate the user information for a credential stored on the YubiKey.
public class UpdateUserInfoCommand : Object, IYubiKeyCommand<Fido2Response>
Implements
Remarks
The partner Response class is Fido2Response. This command does not return any data, it only returns "success" or "failure".
This replaces the user information currently on the YubiKey. That is, you don't "edit" an entry. You generally will get the current user info, then create an entirely new UserEntity, copying any information from the previous object you want to retain, and setting any new information. Then call this command with the new object.
Note that this feature is available only to YubiKeys that support
"credMgmt". It is not available to those that support only
"CredentialMgmtPreview". It is not a subclass of
CredentialMgmtSubCommand
and hence does not possess the property
IsPreview
.
Constructors
Name | Description |
---|---|
UpdateUserInfoCommand(CredentialId, UserEntity, ReadOnlyMemory<Byte>, PinUvAuthProtocolBase) | Constructs a new instance of UpdateUserInfoCommand. |
Properties
Name | Description |
---|---|
Application | Gets the YubiKeyApplication (e.g. PIV, OATH, etc.) to which this command applies. |
Methods
Name | Description |
---|---|
CreateCommandApdu() | Creates a well-formed CommandApdu to send to the YubiKey. |
CreateResponseForApdu(ResponseApdu) | Creates the corresponding IYubiKeyResponse implementation for the current command. |