Performs PIN verify and PIN change.

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

Public Function ChangePin( _ 
ByVal aPinControl As CardPinControl, _ 
ByVal sOldPin As String, _ 
ByVal sNewPin As String
) As CardResponseAPDU
This language is not supported or no code example is available.
public CardResponseAPDU ChangePin( 
CardPinControl aPinControl
string sOldPin
string sNewPin 
)
This language is not supported or no code example is available.
public:  
CardResponseAPDU^ ChangePin( 
CardPinControl^ aPinControl
String^ sOldPin
String^ sNewPin 
)
This language is not supported or no code example is available.
public function ChangePin( 
aPinControl : CardPinControl
sOldPin : String
sNewPin : String 
) : CardResponseAPDU;
This language is not supported or no code example is available.

Parameters

aPinControl
Type: CardPinControl

Control information about the command APDU to be sent to the card. As basically every card has its own subtle way of changing the PIN, there is no easier way than this.

sOldPin
Type: string

.

sNewPin
Type: string

.

Return Value

Type: CardResponseAPDU

The response APDU from the card command is returned. Usually this contains nothing but the status word which indicates whether the PIN modification was successful.

Exception type Condition

ArgumentNullException

Any of the arguments was null.

.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