ConfigCommand Constructor
ConfigCommand()
This constructor will throw NotImplementedException
. It is the
default constructor explicitly defined. We don't want it to be used.
It is made protected
rather than private
because there
are subclasses.
C#
protected ConfigCommand()
ConfigCommand(int, byte[]?, ReadOnlyMemory<byte>, PinUvAuthProtocolBase)
Constructs a new instance of ConfigCommand.
C#
public ConfigCommand(int subCommand, byte[]? subCommandParams, ReadOnlyMemory<byte> pinUvAuthToken, PinUvAuthProtocolBase authProtocol)
Parameters
Type | Name | Description |
---|---|---|
int | subCommand | The byte representing the subcommand to execute. |
byte[] | subCommandParams | The parameters needed in order to execute the subcommand. Not all subcommands have parameters, so this can be null. |
ReadOnlyMemory<byte> | pinUvAuthToken | The PIN/UV Auth Token built from the PIN. This is the encrypted token key. |
PinUvAuthProtocolBase | authProtocol | The Auth Protocol used to build the Auth Token. |
Remarks
Note that if the command does not need the pinUvAuthToken
and
authProtocol
, use the constructor that takes only the
subCommand
.
ConfigCommand(int)
Constructs a new instance of ConfigCommand.
C#
public ConfigCommand(int subCommand)
Parameters
Type | Name | Description |
---|---|---|
int | subCommand | The byte representing the subcommand to execute. |