ChangeManagementKeyCommand Class
Namespace: Yubico.YubiKey.YubiHsmAuth.Commands Assembly: Yubico.YubiKey.dllThe command class for changing the management key.
public sealed class ChangeManagementKeyCommand : Object, IYubiKeyCommand<ChangeManagementKeyResponse>
Implements
Remarks
The management key is required when performing operations that add or delete credentials (AddCredentialCommand and DeleteCredentialCommand, respectively).
There is a limit of 8 attempts to authenticate with the management key before the management key is blocked. Once the management key is blocked, the application must be reset before performing operations which require authentication with the management key (such as adding credentials, deleting credentials, and changing the management key). To reset the application, see ResetApplicationCommand. Supplying the correct management key before the management key is blocked will reset the retry counter to 8.
The partner response class is ChangeManagementKeyResponse.
Constructors
Name | Description |
---|---|
ChangeManagementKeyCommand(ReadOnlyMemory<Byte>, ReadOnlyMemory<Byte>) | Change the management key. |
Fields
Name | Description |
---|---|
ValidManagementKeyLength | The management key must be exactly 16 bytes. |
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. |