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 |
---|---|
Either offset is negative or outside the available data field. |