Assembly: CardWerk.SmartCard (in CardWerk.SmartCard.dll)
Public Function BuildTerminalCommandAPDU( _
ByVal nSlot As Integer, _
ByVal sLabel As String, _
ByVal nTimeout As Integer _
) As CardCommandAPDU
This language is not supported or no code example is available.
public CardCommandAPDU BuildTerminalCommandAPDU(
int nSlot,
string sLabel,
int nTimeout
)
This language is not supported or no code example is available.
public:
CardCommandAPDU^ BuildTerminalCommandAPDU(
int nSlot,
String^ sLabel,
int nTimeout
)
This language is not supported or no code example is available.
Parameters
- nSlot
-
Type: int
The card terminal slot number of the slot where the card to receive the verify command is inserted.
- sLabel
-
Type: string
According to the CT-BCS specification only ASCII characters are allowed. The max length of the display string is 16 characters. If this is null, then no label will be set.
- nTimeout
-
Type: int
Maximum time to wait for the user to enter the first digit (or letter) of the PIN. This time is given in seconds. If the user does not begin to enter his PIN within this timeout, then the PIN entry is automatically cancelled. Usually there is also an implicit timeout between every digit of the PIN, but this is implementation or device specific and cannot be controlled by this method.
If this is zero, then some card terminal specific default timeout will be applied. Very large timeouts are shortened to the maximum of 255 seconds. Negative values are not allowed.
Return Value
Type: CardCommandAPDU
If successful a new instance of the CardCommandAPDU class is returned that contains a command APDU according to CT-BCS that can be sent to the card terminal in order to perform a secure PIN entry.
Exception type | Condition |
---|---|
Thrown when one or more arguments are outside the required range. |
|
Thrown when the requested operation is not supported. |