Package org.eclipse.keyple.plugin.stub
Interface StubSmartCard.CommandStep
-
- All Known Implementing Classes:
StubSmartCard.Builder
- Enclosing class:
- StubSmartCard
public static interface StubSmartCard.CommandStep
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StubSmartCard
build()
Build theStubSmartCard
StubSmartCard.BuildStep
withApduResponseProvider(ApduResponseProviderSpi apduResponseProvider)
Provide simulated command/response to theStubSmartCard
using a custom provider implementing ofApduResponseProviderSpi
.StubSmartCard.SimulatedCommandStep
withSimulatedCommand(java.lang.String command, java.lang.String response)
Add simulated command/response to theStubSmartCard
to build.
-
-
-
Method Detail
-
withSimulatedCommand
StubSmartCard.SimulatedCommandStep withSimulatedCommand(java.lang.String command, java.lang.String response)
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.0.0
-
withApduResponseProvider
StubSmartCard.BuildStep withApduResponseProvider(ApduResponseProviderSpi apduResponseProvider)
Provide simulated command/response to theStubSmartCard
using a custom provider implementing ofApduResponseProviderSpi
.- Parameters:
apduResponseProvider
- hexadecimal command to respond to (can be a regexp to match multiple apdu)- Returns:
- next step of builder
- Since:
- 2.1.0
-
build
StubSmartCard build()
Build theStubSmartCard
- Returns:
- new instance a StubSmartCard
-
-