Builds the MODIFY command APDU to be sent to the card by filling the given PINs into the command APDU template.

Namespace: CardWerk.SmartCard
Assembly: CardWerk.SmartCard (in CardWerk.SmartCard.dll)

Public Function BuildModifyCardCommandAPDU( _ 
ByVal sPin1 As String, _ 
ByVal sPin2 As String
) As CardCommandAPDU
This language is not supported or no code example is available.
public CardCommandAPDU BuildModifyCardCommandAPDU( 
string sPin1
string sPin2 
)
This language is not supported or no code example is available.
public:  
CardCommandAPDU^ BuildModifyCardCommandAPDU( 
String^ sPin1
String^ sPin2 
)
This language is not supported or no code example is available.
public function BuildModifyCardCommandAPDU( 
sPin1 : String
sPin2 : String 
) : CardCommandAPDU;
This language is not supported or no code example is available.

Parameters

sPin1
Type: string

The first pin.

sPin2
Type: string

The second pin.

Return Value

Type: CardCommandAPDU

If successful a new instance of the CardCommandAPDU class is returned that contains the command APDU template filled with the encoded PINs. The returned command APDU can then be sent to the card terminal in order to actually perform the PIN modification.

If one of the given PINs is not acceptable or it cannot be encoded as required, then null will be returned. Use IsAcceptablePin to check a PIN before attempting to build a card command APDU.

Marc, 9/29/2022.

.NET Framework

Supported in: 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

.NET Core

Supported in: 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0

.NET Standard

Supported in: 2.0