Package com.fidesmo.fdsm
Class ServiceDeliverySession
- java.lang.Object
-
- com.fidesmo.fdsm.ServiceDeliverySession
-
- All Implemented Interfaces:
Callable<ServiceDeliverySession.DeliveryResult>
public class ServiceDeliverySession extends Object implements Callable<ServiceDeliverySession.DeliveryResult>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classServiceDeliverySession.DeliveryResult
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ServiceDeliverySession.DeliveryResultcall()ServiceDeliverySession.DeliveryResultdeliver(apdu4j.core.BIBO bibo, String appId, String serviceId)protected voiddeliveryInterruptionPoint()protected ServiceDeliverySession.DeliveryResultdeliveryLoop(apdu4j.core.BIBO bibo, String sessionId, PublicKey spKey)static ServiceDeliverySessiongetInstance(Supplier<apdu4j.core.BIBO> biboSupplier, FidesmoCard card, FidesmoApiClient client, String appId, String serviceId, FormHandler formHandler)protected voidnotifyDeliveryFailure(String sessionId, String message)protected com.fasterxml.jackson.databind.node.ObjectNodeprocessTransmitOperation(apdu4j.core.BIBO bibo, com.fasterxml.jackson.databind.JsonNode operationId, String sessionId)protected com.fasterxml.jackson.databind.node.ObjectNodeprocessUIOperation(com.fasterxml.jackson.databind.JsonNode operation, String sessionId, PublicKey spKey)protected com.fasterxml.jackson.databind.node.ObjectNodeprocessUserAction(com.fasterxml.jackson.databind.JsonNode operation, String sessionId)voidsetTimeoutMinutes(long minutes)
-
-
-
Method Detail
-
setTimeoutMinutes
public void setTimeoutMinutes(long minutes)
-
getInstance
public static ServiceDeliverySession getInstance(Supplier<apdu4j.core.BIBO> biboSupplier, FidesmoCard card, FidesmoApiClient client, String appId, String serviceId, FormHandler formHandler)
-
call
public ServiceDeliverySession.DeliveryResult call() throws FDSMException
- Specified by:
callin interfaceCallable<ServiceDeliverySession.DeliveryResult>- Throws:
FDSMException
-
deliver
public ServiceDeliverySession.DeliveryResult deliver(apdu4j.core.BIBO bibo, String appId, String serviceId) throws IOException, UnsupportedCallbackException
-
deliveryLoop
protected ServiceDeliverySession.DeliveryResult deliveryLoop(apdu4j.core.BIBO bibo, String sessionId, PublicKey spKey) throws IOException, UnsupportedCallbackException
-
processTransmitOperation
protected com.fasterxml.jackson.databind.node.ObjectNode processTransmitOperation(apdu4j.core.BIBO bibo, com.fasterxml.jackson.databind.JsonNode operationId, String sessionId) throws IOException- Throws:
IOException
-
processUIOperation
protected com.fasterxml.jackson.databind.node.ObjectNode processUIOperation(com.fasterxml.jackson.databind.JsonNode operation, String sessionId, PublicKey spKey) throws IOException- Throws:
IOException
-
processUserAction
protected com.fasterxml.jackson.databind.node.ObjectNode processUserAction(com.fasterxml.jackson.databind.JsonNode operation, String sessionId) throws IOException, UnsupportedCallbackException
-
notifyDeliveryFailure
protected void notifyDeliveryFailure(String sessionId, String message) throws IOException
- Throws:
IOException
-
deliveryInterruptionPoint
protected void deliveryInterruptionPoint()
-
-