Interface StubSmartCard.CommandStep

All Known Implementing Classes:
StubSmartCard.Builder
Enclosing class:
StubSmartCard

public static interface StubSmartCard.CommandStep
CommandStep interface provides methods to build and configure a StubSmartCard object.
Since:
2.0.0
  • Method Details

    • withSimulatedCommand

      StubSmartCard.SimulatedCommandStep withSimulatedCommand(String command, String response)
      Add simulated command/response to the StubSmartCard 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 the StubSmartCard using a custom provider implementing of ApduResponseProviderSpi.
      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 the StubSmartCard
      Returns:
      new instance a StubSmartCard