VerifyPinCommand Constructor
VerifyPinCommand(ReadOnlyMemory<Byte>)
Initializes a new instance of the VerifyPinCommand class which will use the given PIN.
C#
public VerifyPinCommand(ReadOnlyMemory<byte> pin)
Parameters
Type | Name | Description |
---|---|---|
System.ReadOnlyMemory<System.Byte> | pin | The bytes that make up the PIN. |
Exceptions
Type | Condition |
---|---|
System.ArgumentException | The PIN is an invalid length. |
Remarks
In order to verify a PIN, the caller must supply the PIN. In this
class, the PIN is supplied as ReadOnlyMemory<byte>
. It
is possible to pass a byte[]
, because it will be automatically
cast.
This class will copy references to the PIN (not the values. This
means that you can overwrite the PIN in your byte array only after
this class is done with it. It will no longer need the PIN after
calling connection.SendCommand
.
A PIN is 6 to 8 bytes long.