CredentialManagementCommand Constructor
CredentialManagementCommand()
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.
protected CredentialManagementCommand()
CredentialManagementCommand(Int32, Byte[], ReadOnlyMemory<Byte>, PinUvAuthProtocolBase)
Constructs a new instance of CredentialManagementCommand.
public CredentialManagementCommand(int subCommand, byte[] subCommandParams, ReadOnlyMemory<byte> pinUvAuthToken, PinUvAuthProtocolBase authProtocol)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | subCommand | The byte representing the subcommand to execute. |
System.Byte[] | subCommandParams | The parameters needed in order to execute the subcommand. Not all subcommands have parameters, so this can be null. |
System.ReadOnlyMemory<System.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
.
CredentialManagementCommand(Int32)
Constructs a new instance of CredentialManagementCommand.
public CredentialManagementCommand(int subCommand)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | subCommand | The byte representing the subcommand to execute. |