Construct a CardPinControl instance from the minimal information required in order to perform entry of two PINs and perform a PIN modification.

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

Public Sub New( _ 
ByVal aTemplate As CardCommandAPDU, _ 
ByVal nEncoding As PinEncodingIdentifier, _ 
ByVal nOffset As Integer, _ 
ByVal nOffset2 As Integer
)
This language is not supported or no code example is available.
public CardPinControl( 
CardCommandAPDU aTemplate
PinEncodingIdentifier nEncoding
int nOffset
int nOffset2 
)
This language is not supported or no code example is available.
public:  
CardPinControl( 
CardCommandAPDU^ aTemplate
PinEncodingIdentifier nEncoding
int nOffset
int nOffset2 
)
This language is not supported or no code example is available.
public function CardPinControl( 
aTemplate : CardCommandAPDU
nEncoding : PinEncodingIdentifier
nOffset : int
nOffset2 : int 
);
This language is not supported or no code example is available.

Parameters

aTemplate
Type: CardCommandAPDU

Command APDU template that will be used to construct the final MODIFY PIN (or similar) command. This must not be null and must be a valid ISO 7816-4 command APDU with short length fields.If the parameters nOffset and nOffset2, both point to the end of the given data field, then the old PIN and the new PIN will be appended to the command data and the length Lc is implicitly adjusted to accommodate the actual PIN lengths.

nEncoding
Type: PinEncodingIdentifier

Selects the encoding of the PINs when they are inserted into the command APDU template.

nOffset
Type: int

Byte offset where the first encoded PIN shall be inserted into the command APDU template. The offset is computed relative to the data field and must fall within the data field.

nOffset2
Type: int

Byte offset where the second encoded PIN shall be inserted into the command APDU template. The offset is specified similar to the nOffset parameter.

Exception type Condition

ArgumentOutOfRangeException

Either offset is negative or outside the available data field.

.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