Quick check to find out if the current terminal (card reader) has a secure keypad. Use the CardHandle.VerifyPin to delegate secure PIN entry (SPE) requests to a class 2 reader.

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

Public ReadOnly Property IsClass2() As Boolean
This language is not supported or no code example is available.
public bool IsClass2 {get;}
This language is not supported or no code example is available.
public:  
property bool IsClass2 { 
bool get( ); 
}
This language is not supported or no code example is available.
public function get IsClass2() : boolean;
This language is not supported or no code example is available.

Property Value

Type: bool

True if this object is class 2, false if not.

Class2 card reader can be used with any smart card application that uses ISO 7816-4 compliant PIN VERIFY or CHANGE commands on APDU level. Rather than typing the PIN on a computer keyboard and sending it over unsecured USB line, a template is sent to the reader and the reader then converts it to a valid VERIFY PIN APDU that is then sent directly to the card. As long as the host application follows PC/SC part 10, this can help adding security to any s mart card application including PIV, CAC and EMV.

.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