Show / Hide Table of Contents

ChangeManagementKeyCommand Class

Namespace: Yubico.YubiKey.YubiHsmAuth.Commands Assembly: Yubico.YubiKey.dll

The command class for changing the management key.

C#
public sealed class ChangeManagementKeyCommand : IYubiKeyCommand<ChangeManagementKeyResponse>
Inheritance object ChangeManagementKeyCommand
Implements
IYubiKeyCommand<ChangeManagementKeyResponse>

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.

In this article
Back to top Generated by DocFX