Package org.eclipse.keyple.plugin.stub
Interface StubSmartCard.SimulatedCommandStep
- All Known Implementing Classes:
StubSmartCard.Builder
- Enclosing class:
- StubSmartCard
public static interface StubSmartCard.SimulatedCommandStep
Provides methods to add simulated commands and responses to a StubSmartCard builder.
- Since:
- 2.1.0
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build theStubSmartCard
withSimulatedCommand
(String command, String response) Add simulated command/response to theStubSmartCard
to build.
-
Method Details
-
withSimulatedCommand
Add simulated command/response to theStubSmartCard
to build. Command and response should be hexadecimal.- Parameters:
command
- hexadecimal command to respond to (can be a regexp to match multiple apdu)response
- hexadecimal response- Returns:
- next step of builder
- Since:
- 2.1.0
-
build
StubSmartCard build()Build theStubSmartCard
- Returns:
- new instance a StubSmartCard
-