PIN verification method. If string is shorter than 8 digits, this method applies 0xFF padding on byte-level. This method is only meant for user PIN. It does not support global PINs, PUKs SO PINs or transport PINs Internal PIN reference is always 0x80 Exammple: "1234" becomes 0x31323334FFFFFFFF.

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

Public Function VerifyPin( _ 
ByVal pin As String, _ 
ByRef remainingTries As Integer
) As Boolean
This language is not supported or no code example is available.
public bool VerifyPin( 
string pin
ref int remainingTries 
)
This language is not supported or no code example is available.
public:  
bool VerifyPin( 
String^ pin
int& remainingTries 
)
This language is not supported or no code example is available.
public function VerifyPin( 
pin : String
remainingTries : int 
) : boolean;
This language is not supported or no code example is available.

Parameters

pin
Type: string

PIN value; up to 8 numeric digits {0,1,2,3,4,5,6,7,8,9}

remainingTries
Type: int

[in,out] remaining tries - only updated if PIN verification fails.

Return Value

Type: bool

True if it succeeds, false if it fails.

Exception type Condition

Exception

Thrown when an exception error condition occurs.

.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

.NET Standard

Supported in: 2.0