Class SmartCardEmulation
java.lang.Object
org.openqa.selenium.devtools.v146.smartcardemulation.SmartCardEmulation
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.openqa.selenium.devtools.Event<BeginTransactionRequested> static org.openqa.selenium.devtools.Event<CancelRequested> static org.openqa.selenium.devtools.Event<ConnectRequested> static org.openqa.selenium.devtools.Event<ControlRequested> static org.openqa.selenium.devtools.Command<Void> disable()Disables the |SmartCardEmulation| domain.static org.openqa.selenium.devtools.Event<DisconnectRequested> static org.openqa.selenium.devtools.Command<Void> enable()Enables the |SmartCardEmulation| domain.static org.openqa.selenium.devtools.Event<EndTransactionRequested> static org.openqa.selenium.devtools.Event<String> static org.openqa.selenium.devtools.Event<GetAttribRequested> static org.openqa.selenium.devtools.Event<GetStatusChangeRequested> static org.openqa.selenium.devtools.Event<ListReadersRequested> static org.openqa.selenium.devtools.Event<ReleaseContextRequested> static org.openqa.selenium.devtools.Command<Void> reportBeginTransactionResult(String requestId, Integer handle) Reports the result of a |SCardBeginTransaction| call.static org.openqa.selenium.devtools.Command<Void> reportConnectResult(String requestId, Integer handle, Optional<Protocol> activeProtocol) Reports the successful result of a |SCardConnect| call.static org.openqa.selenium.devtools.Command<Void> reportDataResult(String requestId, String data) Reports the successful result of a call that sends back data on success.static org.openqa.selenium.devtools.Command<Void> reportError(String requestId, ResultCode resultCode) Reports an error result for the given request.static org.openqa.selenium.devtools.Command<Void> reportEstablishContextResult(String requestId, Integer contextId) Reports the successful result of a |SCardEstablishContext| call.static org.openqa.selenium.devtools.Command<Void> reportGetStatusChangeResult(String requestId, List<ReaderStateOut> readerStates) Reports the successful result of a |SCardGetStatusChange| call.static org.openqa.selenium.devtools.Command<Void> reportListReadersResult(String requestId, List<String> readers) Reports the successful result of a |SCardListReaders| call.static org.openqa.selenium.devtools.Command<Void> reportPlainResult(String requestId) Reports the successful result of a call that returns only a result code.static org.openqa.selenium.devtools.Command<Void> reportReleaseContextResult(String requestId) Reports the successful result of a |SCardReleaseContext| call.static org.openqa.selenium.devtools.Command<Void> reportStatusResult(String requestId, String readerName, ConnectionState state, String atr, Optional<Protocol> protocol) Reports the successful result of a |SCardStatus| call.static org.openqa.selenium.devtools.Event<SetAttribRequested> static org.openqa.selenium.devtools.Event<StatusRequested> static org.openqa.selenium.devtools.Event<TransmitRequested>
-
Constructor Details
-
SmartCardEmulation
public SmartCardEmulation()
-
-
Method Details
-
enable
Enables the |SmartCardEmulation| domain. -
disable
Disables the |SmartCardEmulation| domain. -
reportEstablishContextResult
public static org.openqa.selenium.devtools.Command<Void> reportEstablishContextResult(String requestId, Integer contextId) Reports the successful result of a |SCardEstablishContext| call. This maps to: PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gaa1b8970169fd4883a6dc4a8f43f19b67 Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardestablishcontext -
reportReleaseContextResult
public static org.openqa.selenium.devtools.Command<Void> reportReleaseContextResult(String requestId) Reports the successful result of a |SCardReleaseContext| call. This maps to: PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga6aabcba7744c5c9419fdd6404f73a934 Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardreleasecontext -
reportListReadersResult
public static org.openqa.selenium.devtools.Command<Void> reportListReadersResult(String requestId, List<String> readers) Reports the successful result of a |SCardListReaders| call. This maps to: PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga93b07815789b3cf2629d439ecf20f0d9 Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardlistreadersa -
reportGetStatusChangeResult
public static org.openqa.selenium.devtools.Command<Void> reportGetStatusChangeResult(String requestId, List<ReaderStateOut> readerStates) Reports the successful result of a |SCardGetStatusChange| call. 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 -
reportBeginTransactionResult
public static org.openqa.selenium.devtools.Command<Void> reportBeginTransactionResult(String requestId, Integer handle) 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 -
reportPlainResult
Reports the successful result of a call that returns only a result code. Used for: |SCardCancel|, |SCardDisconnect|, |SCardSetAttrib|, |SCardEndTransaction|. This maps to: 1. SCardCancel PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gaacbbc0c6d6c0cbbeb4f4debf6fbeeee6 Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardcancel 2. SCardDisconnect PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga4be198045c73ec0deb79e66c0ca1738a Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scarddisconnect 3. SCardSetAttrib PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga060f0038a4ddfd5dd2b8fadf3c3a2e4f Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardsetattrib 4. SCardEndTransaction PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gae8742473b404363e5c587f570d7e2f3b Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardendtransaction -
reportConnectResult
public static org.openqa.selenium.devtools.Command<Void> reportConnectResult(String requestId, Integer handle, Optional<Protocol> activeProtocol) Reports the successful result of a |SCardConnect| call. This maps to: PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga4e515829752e0a8dbc4d630696a8d6a5 Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardconnecta -
reportDataResult
public static org.openqa.selenium.devtools.Command<Void> reportDataResult(String requestId, String data) Reports the successful result of a call that sends back data on success. Used for |SCardTransmit|, |SCardControl|, and |SCardGetAttrib|. This maps to: 1. SCardTransmit PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga9a2d77242a271310269065e64633ab99 Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardtransmit 2. SCardControl PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gac3454d4657110fd7f753b2d3d8f4e32f Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardcontrol 3. SCardGetAttrib PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gaacfec51917255b7a25b94c5104961602 Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardgetattrib -
reportStatusResult
public static org.openqa.selenium.devtools.Command<Void> reportStatusResult(String requestId, String readerName, ConnectionState state, String atr, Optional<Protocol> protocol) Reports the successful result of a |SCardStatus| call. This maps to: PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gae49c3c894ad7ac12a5b896bde70d0382 Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardstatusa -
reportError
public static org.openqa.selenium.devtools.Command<Void> reportError(String requestId, ResultCode resultCode) Reports an error result for the given request. -
establishContextRequested
-
releaseContextRequested
-
listReadersRequested
-
getStatusChangeRequested
public static org.openqa.selenium.devtools.Event<GetStatusChangeRequested> getStatusChangeRequested() -
cancelRequested
-
connectRequested
-
disconnectRequested
-
transmitRequested
-
controlRequested
-
getAttribRequested
-
setAttribRequested
-
statusRequested
-
beginTransactionRequested
public static org.openqa.selenium.devtools.Event<BeginTransactionRequested> beginTransactionRequested() -
endTransactionRequested
-