Show / Hide Table of Contents

ChangeManagementKeyCommand Constructor

ChangeManagementKeyCommand(ReadOnlyMemory<byte>, ReadOnlyMemory<byte>)

Change the management key.

C#
public ChangeManagementKeyCommand(ReadOnlyMemory<byte> currentManagementKey, ReadOnlyMemory<byte> newManagementKey)

Parameters

Type Name Description
ReadOnlyMemory<byte> currentManagementKey

The current value of the management key. The default value is all zeros.

ReadOnlyMemory<byte> newManagementKey

The new value of the management key.

Exceptions

Type Condition
ArgumentException

Thrown when a management key has an invalid length.

Remarks

The management key is required when performing operations that add or delete credentials (AddCredentialCommand and DeleteCredentialCommand, respectively).

The caller is responsible for controlling the buffers which hold the management keys and should overwrite the data after the command is sent. The user's manual entry "Sensitive Data" has further details and recommendations for handling this kind of data.

In this article
Back to top Generated by DocFX