public final class TrustedChannelPaceKeyRequestHandler
extends java.lang.Object
The singleton TrustedChannelPaceKeyRequestHandler subscribe to EventBus for PaceKey-Request-Events. For each PaceKeyRequest-Event start this instance a thread to request the CardAccessNumber over Event-Bus request from UI or other application. After CardAccessNumber response starts the PaceKey negotiation and after success negotiation would the requester informed about the pacekey.
Modifier and Type | Method and Description |
---|---|
static TrustedChannelPaceKeyRequestHandler |
getInstance()
Get the singleton instance
|
void |
handleRequestPaceKeyEvent(de.gematik.ti.openhealthcard.events.request.RequestPaceKeyEvent requestPaceKeyEvent)
Method that handles the RequestPaceKey Events and trigger the negotiation steps
|
static void |
startHandling()
Start the handling of paceKey request Events
|
static void |
stopHandling()
Stop the handling of paceKey request Events
|
public static TrustedChannelPaceKeyRequestHandler getInstance()
Get the singleton instance
public static void startHandling()
Start the handling of paceKey request Events
public static void stopHandling()
Stop the handling of paceKey request Events
@Subscribe public void handleRequestPaceKeyEvent(de.gematik.ti.openhealthcard.events.request.RequestPaceKeyEvent requestPaceKeyEvent)
Method that handles the RequestPaceKey Events and trigger the negotiation steps
requestPaceKeyEvent
- Event for pace key request