PC/SC
Gives information regarding the PC/SC readers attached to the computer.
It is also possible to use PC/SC through the SpringCard Companion Service, use the JSON RPC methods exposed by the Service’s WebSocket PC/SC API.
Objects
Routes
Misc.
-
Get status of PC/SC middleware :
GET /pcsc/status
Listing and reader information
-
List PC/SC readers :
GET /pcsc/readers -
Get PC/SC reader data :
GET /pcsc/reader/{$id}
Using the reader for PC/SC operation
The functions below map to SCardConnect, SCardDisconnect and SCardTransmit, respectively.
-
Open a channel with the card in the reader :
POST /pcsc/reader/{$id}/connect(counterpart forSCardConnect) -
Close the channel with the card :
POST /pcsc/reader/{$id}/disconnect(counterpart forSCardDisconnect) -
Exchange APDUs with the card :
POST /pcsc/reader/{$id}/transmit(counterpart forSCardTransmit)
Reader real-time control
The functions below will work with SpringCard PC/SC readers only.
-
Send a command to the reader :
POST /pcsc/reader/{$id}/control(counterpart forSCardControl)