Chrome DevTools Protocol

Methods

SmartCardEmulation.disable

Disables the |SmartCardEmulation| domain.

SmartCardEmulation.enable

Enables the |SmartCardEmulation| domain.

SmartCardEmulation.reportBeginTransactionResult

Reports the result of a |SCardBeginTransaction| call. On success, this creates a new transaction object.

This maps to: PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gaddb835dce01a0da1d6ca02d33ee7d861 Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardbegintransaction

parameters
requestId
string
handle
integer

SmartCardEmulation.reportConnectResult

parameters
requestId
string
handle
integer
activeProtocol
Protocol

SmartCardEmulation.reportDataResult

parameters
requestId
string
data
string

SmartCardEmulation.reportError

Reports an error result for the given request.

parameters
requestId
string
resultCode
ResultCode

SmartCardEmulation.reportEstablishContextResult

parameters
requestId
string
contextId
integer

SmartCardEmulation.reportGetStatusChangeResult

parameters
requestId
string
readerStates
array[ ReaderStateOut ]

SmartCardEmulation.reportListReadersResult

parameters
requestId
string
readers
array[ string ]

SmartCardEmulation.reportReleaseContextResult

parameters
requestId
string

SmartCardEmulation.reportStatusResult

parameters
requestId
string
readerName
string
state
ConnectionState
atr
string
protocol
Protocol

Events

SmartCardEmulation.beginTransactionRequested

parameters
requestId
string
handle
integer

SmartCardEmulation.cancelRequested

parameters
requestId
string
contextId
integer

SmartCardEmulation.connectRequested

parameters
requestId
string
contextId
integer
reader
string
shareMode
ShareMode
preferredProtocols
ProtocolSet

SmartCardEmulation.controlRequested

parameters
requestId
string
handle
integer
controlCode
integer
data
string

SmartCardEmulation.disconnectRequested

parameters
requestId
string
handle
integer
disposition
Disposition

SmartCardEmulation.endTransactionRequested

parameters
requestId
string
handle
integer
disposition
Disposition

SmartCardEmulation.establishContextRequested

parameters
requestId
string

SmartCardEmulation.getAttribRequested

parameters
requestId
string
handle
integer
attribId
integer

SmartCardEmulation.getStatusChangeRequested

Fired when |SCardGetStatusChange| is called. Timeout is specified in milliseconds.

This maps to: PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga33247d5d1257d59e55647c3bb717db24 Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardgetstatuschangea

parameters
requestId
string
contextId
integer
readerStates
array[ ReaderStateIn ]
timeout
integer

in milliseconds, if absent, it means "infinite"

SmartCardEmulation.listReadersRequested

parameters
requestId
string
contextId
integer

SmartCardEmulation.releaseContextRequested

parameters
requestId
string
contextId
integer

SmartCardEmulation.setAttribRequested

parameters
requestId
string
handle
integer
attribId
integer
data
string

SmartCardEmulation.statusRequested

parameters
requestId
string
handle
integer

SmartCardEmulation.transmitRequested

parameters
requestId
string
handle
integer
data
string
protocol
Protocol

Types

SmartCardEmulation.ConnectionState

Maps to |SCARD_*| connection state values.

Allowed Values: absent, present, swallowed, powered, negotiable, specific

Type: string

SmartCardEmulation.Disposition

Indicates what the reader should do with the card.

Allowed Values: leave-card, reset-card, unpower-card, eject-card

Type: string

SmartCardEmulation.Protocol

Maps to the |SCARD_PROTOCOL_*| values.

Allowed Values: t0, t1, raw

Type: string

SmartCardEmulation.ProtocolSet

Maps to the |SCARD_PROTOCOL_*| flags.

Type: object

properties
t0
boolean
t1
boolean
raw
boolean

SmartCardEmulation.ReaderStateFlags

Maps to the |SCARD_STATE_*| flags.

Type: object

properties
unaware
boolean
ignore
boolean
changed
boolean
unknown
boolean
unavailable
boolean
empty
boolean
present
boolean
exclusive
boolean
inuse
boolean
mute
boolean
unpowered
boolean

SmartCardEmulation.ReaderStateIn

Type: object

properties
reader
string
currentState
ReaderStateFlags
currentInsertionCount
integer

SmartCardEmulation.ReaderStateOut

Type: object

properties
reader
string
eventState
ReaderStateFlags
eventCount
integer
atr
string

SmartCardEmulation.ResultCode

Indicates the PC/SC error code.

This maps to: PC/SC Lite: https://pcsclite.apdu.fr/api/group__ErrorCodes.html Microsoft: https://learn.microsoft.com/en-us/windows/win32/secauthn/authentication-return-values

Allowed Values: success, removed-card, reset-card, unpowered-card, unresponsive-card, unsupported-card, reader-unavailable, sharing-violation, not-transacted, no-smartcard, proto-mismatch, system-cancelled, not-ready, cancelled, insufficient-buffer, invalid-handle, invalid-parameter, invalid-value, no-memory, timeout, unknown-reader, unsupported-feature, no-readers-available, service-stopped, no-service, comm-error, internal-error, server-too-busy, unexpected, shutdown, unknown-card, unknown

Type: string

SmartCardEmulation.ShareMode

Maps to the |SCARD_SHARE_*| values.

Allowed Values: shared, exclusive, direct

Type: string