ChangeManagementKeyCommand Constructor
ChangeManagementKeyCommand(ReadOnlyMemory<Byte>, ReadOnlyMemory<Byte>)
Change the management key.
C#
public ChangeManagementKeyCommand(ReadOnlyMemory<byte> currentManagementKey, ReadOnlyMemory<byte> newManagementKey)
Parameters
Type | Name | Description |
---|---|---|
System.ReadOnlyMemory<System.Byte> | currentManagementKey | The current value of the management key. The default value is all zeros. |
System.ReadOnlyMemory<System.Byte> | newManagementKey | The new value of the management key. |
Exceptions
Type | Condition |
---|---|
System.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.