Designing PKCS#11 API for Browser Integration with JSON Transformation in Open eCard Application
This document details the design and implementation of a PKCS#11 API for browser-based applications, focusing on the transformation between PKCS#11 and JSON formats. It describes the architecture involved in JVM creation and loading the Open eCard application through JNI transport mechanisms. The design includes two threads for synchronous callbacks and long polling over HTTP, enabling seamless communication between the application and various channels. The document also explains the conversion logic for managing interactions with IFD and SAL protocols.
Designing PKCS#11 API for Browser Integration with JSON Transformation in Open eCard Application
E N D
Presentation Transcript
PKCS#11 Design 1 Browser PKCS#11 API C <-> JSON Onlytransformation JNI Transport Creates JVM andloadsOeCApp JNI Transport (pid) Transformation + conversionlogic JSON <-> IFD, SAL, … Open eCardApp
PKCS#11 Design 2 Browser PKCS#11 API Onlytransformation C <-> JSON Two Threads • Synchro. Calls • Callback Long Polling HTTP Transport Transformation + conversionlogic Applicationknowsbothchannels HTTP Transport (24727) JSON <-> IFD, SAL, … HTTP Transport (24727) Open eCardApp