@regulaforensics/document-reader 9.4.718-rc → 9.4.720-nightly
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/RNDocumentReader.podspec +2 -2
- package/android/build.gradle +2 -2
- package/android/cordova.gradle +2 -2
- package/android/src/main/java/com/regula/plugin/documentreader/JSONConstructor.kt +36 -0
- package/android/src/main/java/com/regula/plugin/documentreader/Main.kt +46 -43
- package/examples/capacitor/package-lock.json +15 -15
- package/examples/capacitor/package.json +1 -1
- package/examples/ionic/package-lock.json +208 -235
- package/examples/ionic/package.json +3 -2
- package/examples/react_native/package-lock.json +33 -30
- package/examples/react_native/package.json +1 -1
- package/ios/RGLWJSONConstructor.h +4 -0
- package/ios/RGLWJSONConstructor.m +93 -47
- package/ios/RGLWMain.h +2 -4
- package/ios/RGLWMain.m +49 -13
- package/ios/RNDocumentReader.m +2 -0
- package/package.json +1 -1
- package/plugin.xml +2 -2
- package/test/json.tsx +11 -0
- package/test/package-lock.json +1 -1
- package/test/test.tsx +4 -2
- package/www/capacitor/config/RFIDConfig.js +14 -0
- package/www/capacitor/index.js +9 -7
- package/www/capacitor/internal/bridge.js +19 -1
- package/www/capacitor/rfid/CAProtocol.js +27 -0
- package/www/capacitor/rfid/PACEProtocol.js +24 -0
- package/www/cordova.js +152 -29
- package/www/react-native/config/RFIDConfig.js +14 -0
- package/www/react-native/index.js +9 -7
- package/www/react-native/internal/bridge.js +19 -1
- package/www/react-native/rfid/CAProtocol.js +27 -0
- package/www/react-native/rfid/PACEProtocol.js +24 -0
- package/www/types/config/RFIDConfig.d.ts +35 -3
- package/www/types/index.d.ts +3 -1
- package/www/types/rfid/CAProtocol.d.ts +6 -0
- package/www/types/rfid/PACEProtocol.d.ts +5 -0
package/plugin.xml
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<?xml version='1.0' encoding='utf-8'?>
|
|
2
|
-
<plugin id="@regulaforensics/document-reader" version="9.4.
|
|
2
|
+
<plugin id="@regulaforensics/document-reader" version="9.4.720-nightly" xmlns="http://apache.org/cordova/ns/plugins/1.0">
|
|
3
3
|
<name>DocumentReader</name>
|
|
4
4
|
<description>Cordova plugin for Regula Document Reader SDK</description>
|
|
5
5
|
<license>commercial</license>
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
<source url="https://github.com/CocoaPods/Specs.git" />
|
|
30
30
|
</config>
|
|
31
31
|
<pods>
|
|
32
|
-
<pod name="
|
|
32
|
+
<pod name="DocumentReaderNightly" spec="9.4.6191" />
|
|
33
33
|
</pods>
|
|
34
34
|
</podspec>
|
|
35
35
|
</platform>
|
package/test/json.tsx
CHANGED
|
@@ -980,6 +980,17 @@ export var taChallenge = {
|
|
|
980
980
|
"hashPK": "test3",
|
|
981
981
|
"idPICC": "test4",
|
|
982
982
|
};
|
|
983
|
+
export var paceProtocol = {
|
|
984
|
+
"version": "123",
|
|
985
|
+
"stdDomainParams": "test2",
|
|
986
|
+
"keyAlgorithm": "test3",
|
|
987
|
+
};
|
|
988
|
+
export var caProtocol = {
|
|
989
|
+
"version": "123",
|
|
990
|
+
"scheme": "test2",
|
|
991
|
+
"keyAlgorithm": "test3",
|
|
992
|
+
"chipIndividual": true,
|
|
993
|
+
};
|
|
983
994
|
export var tccParams = {
|
|
984
995
|
"serviceUrlTA": "test1",
|
|
985
996
|
"serviceUrlPA": "test2",
|
package/test/package-lock.json
CHANGED
package/test/test.tsx
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { compare } from './utils'
|
|
2
|
-
import { AccessControlProcedureType, Application, Attribute, AuthenticityCheck, AuthenticityElement, AuthenticityParams, AuthenticityResult, Authority, BackendProcessingConfig, Bsi, BarcodeField, BarcodeResult, BytesData, CardProperties, CertificateChain, CertificateData, Comparison, Coordinate, Customization, CustomizationColors, CustomizationFonts, CustomizationImages, CustomizationTimings, CustomizationMatrices, CustomizationContentModes, DataField, DocReaderException, DocReaderScenario, DocReaderVersion, DocumentsDatabase, DocumentType, EDLDataGroups, EIDDataGroups, DTCDataGroup, EPassportDataGroups, Extension, FaceApiParams, FaceApiSearchParams, File, FileData, Functionality, GlaresCheckParams, RFIDParams, GraphicField, GraphicResult, ImageInputData, ImageQA, ImageQuality, ImageQualityGroup, InitConfig, License, LivenessParams, OnlineProcessingConfig, OpticalStatus, PAAttribute, PAResourcesIssuer, PDF417Info, PKDCertificate, Position, PrepareProgress, ProcessParams, RecognizeConfig, Rect, Results, ResultsStatus, RFIDException, RFIDNotification, RFIDOrigin, RFIDScenario, RFIDSessionData, AgeStatus, RFIDStatus, RFIDValidity, RFIDValue, ScannerConfig, SecurityObject, SecurityObjectCertificates, SignerInfo, Symbol, TAChallenge, TccParams, TextField, TextResult, TextSource, TransactionInfo, Validity, Value, VDSNCData, VDSData, DocFeature, DeviceRetrievalMethod, DocumentRequest18013MDL, DataRetrieval, DeviceEngagement, NameSpaceMDL, DocumentRequestMDL, FinalizeConfig } from '@regulaforensics/document-reader/www/capacitor'
|
|
3
|
-
import { accessControlProcedureType, application, attribute, authenticityCheck, authenticityElement, authenticityParams, authenticityResult, authority, backendProcessingConfig, bsi, barcodeField, barcodeResult, bytesData, cardProperties, certificateChain, certificateData, comparison, coordinate, customization, customizationColors, customizationFonts, customizationImages, customizationTimings, customizationMatrices, customizationContentModes, dataField, docReaderException, docReaderScenario, docReaderVersion, documentsDatabase, documentType, eDLDataGroups, eIDDataGroups, dtcDataGroup, ePassportDataGroups, extension, faceApiParams, faceApiSearchParams, file, fileData, functionality, glaresCheckParams, rfidParams, graphicField, graphicResult, imageInputData, imageQA, imageQuality, imageQualityGroup, initConfig, license, livenessParams, onlineProcessingConfig, opticalStatus, paAttribute, paResourcesIssuer, pdf417Info, pkdCertificate, position, prepareProgress, processParams, recognizeConfig, recognizeConfig2, rect, results, resultsStatus, rfidException, rfidNotification, rfidOrigin, rfidScenario, rfidSessionData, ageStatus, rfidStatus, rfidValidity, rfidValue, scannerConfig, securityObject, securityObjectCertificates, signerInfo, symbol, taChallenge, tccParams, textField, textResult, textSource, transactionInfo, validity, value, vdsncData, vdsData, docFeature, deviceRetrievalMethod, documentRequest18013MDL, dataRetrieval, deviceEngagement, nameSpaceMDL, documentRequestMDL, finalizeConfig } from './json'
|
|
2
|
+
import { AccessControlProcedureType, Application, Attribute, AuthenticityCheck, AuthenticityElement, AuthenticityParams, AuthenticityResult, Authority, BackendProcessingConfig, Bsi, BarcodeField, BarcodeResult, BytesData, CardProperties, CertificateChain, CertificateData, Comparison, Coordinate, Customization, CustomizationColors, CustomizationFonts, CustomizationImages, CustomizationTimings, CustomizationMatrices, CustomizationContentModes, DataField, DocReaderException, DocReaderScenario, DocReaderVersion, DocumentsDatabase, DocumentType, EDLDataGroups, EIDDataGroups, DTCDataGroup, EPassportDataGroups, Extension, FaceApiParams, FaceApiSearchParams, File, FileData, Functionality, GlaresCheckParams, RFIDParams, GraphicField, GraphicResult, ImageInputData, ImageQA, ImageQuality, ImageQualityGroup, InitConfig, License, LivenessParams, OnlineProcessingConfig, OpticalStatus, PAAttribute, PAResourcesIssuer, PDF417Info, PKDCertificate, PACEProtocol, CAProtocol, Position, PrepareProgress, ProcessParams, RecognizeConfig, Rect, Results, ResultsStatus, RFIDException, RFIDNotification, RFIDOrigin, RFIDScenario, RFIDSessionData, AgeStatus, RFIDStatus, RFIDValidity, RFIDValue, ScannerConfig, SecurityObject, SecurityObjectCertificates, SignerInfo, Symbol, TAChallenge, TccParams, TextField, TextResult, TextSource, TransactionInfo, Validity, Value, VDSNCData, VDSData, DocFeature, DeviceRetrievalMethod, DocumentRequest18013MDL, DataRetrieval, DeviceEngagement, NameSpaceMDL, DocumentRequestMDL, FinalizeConfig } from '@regulaforensics/document-reader/www/capacitor'
|
|
3
|
+
import { accessControlProcedureType, application, attribute, authenticityCheck, authenticityElement, authenticityParams, authenticityResult, authority, backendProcessingConfig, bsi, barcodeField, barcodeResult, bytesData, cardProperties, certificateChain, certificateData, comparison, coordinate, customization, customizationColors, customizationFonts, customizationImages, customizationTimings, customizationMatrices, customizationContentModes, dataField, docReaderException, docReaderScenario, docReaderVersion, documentsDatabase, documentType, eDLDataGroups, eIDDataGroups, dtcDataGroup, ePassportDataGroups, extension, faceApiParams, faceApiSearchParams, file, fileData, functionality, glaresCheckParams, rfidParams, graphicField, graphicResult, imageInputData, imageQA, imageQuality, imageQualityGroup, initConfig, license, livenessParams, onlineProcessingConfig, opticalStatus, paAttribute, paResourcesIssuer, pdf417Info, pkdCertificate, paceProtocol, caProtocol, position, prepareProgress, processParams, recognizeConfig, recognizeConfig2, rect, results, resultsStatus, rfidException, rfidNotification, rfidOrigin, rfidScenario, rfidSessionData, ageStatus, rfidStatus, rfidValidity, rfidValue, scannerConfig, securityObject, securityObjectCertificates, signerInfo, symbol, taChallenge, tccParams, textField, textResult, textSource, transactionInfo, validity, value, vdsncData, vdsData, docFeature, deviceRetrievalMethod, documentRequest18013MDL, dataRetrieval, deviceEngagement, nameSpaceMDL, documentRequestMDL, finalizeConfig } from './json'
|
|
4
4
|
|
|
5
5
|
compare('initConfig', initConfig, InitConfig.fromJson)
|
|
6
6
|
compare('onlineProcessingConfig', onlineProcessingConfig, OnlineProcessingConfig.fromJson)
|
|
@@ -98,6 +98,8 @@ compare('paAttribute', paAttribute, PAAttribute.fromJson)
|
|
|
98
98
|
compare('paResourcesIssuer', paResourcesIssuer, PAResourcesIssuer.fromJson)
|
|
99
99
|
compare('pkdCertificate', pkdCertificate, PKDCertificate.fromJson)
|
|
100
100
|
compare('taChallenge', taChallenge, TAChallenge.fromJson)
|
|
101
|
+
compare('paceProtocol', paceProtocol, PACEProtocol.fromJson);
|
|
102
|
+
compare('caProtocol', caProtocol, CAProtocol.fromJson);
|
|
101
103
|
compare('tccParams', tccParams, TccParams.fromJson)
|
|
102
104
|
|
|
103
105
|
compare('deviceRetrievalMethod', deviceRetrievalMethod, DeviceRetrievalMethod.fromJson)
|
|
@@ -5,6 +5,8 @@ import { RFIDNotification } from "../rfid/RFIDNotification";
|
|
|
5
5
|
import { PAResourcesIssuer } from "../rfid/PAResourcesIssuer";
|
|
6
6
|
import { PKDCertificate } from "../rfid/PKDCertificate";
|
|
7
7
|
import { TAChallenge } from "../rfid/TAChallenge";
|
|
8
|
+
import { PACEProtocol } from "../rfid/PACEProtocol";
|
|
9
|
+
import { CAProtocol } from "../rfid/CAProtocol";
|
|
8
10
|
|
|
9
11
|
export class RFIDConfig {
|
|
10
12
|
_completion
|
|
@@ -16,6 +18,8 @@ export class RFIDConfig {
|
|
|
16
18
|
onRequestPACertificates
|
|
17
19
|
onRequestTACertificates
|
|
18
20
|
onRequestTASignature
|
|
21
|
+
onRequestPACEProtocol
|
|
22
|
+
onRequestCAProtocol
|
|
19
23
|
|
|
20
24
|
constructor(completion) {
|
|
21
25
|
this._completion = completion
|
|
@@ -28,4 +32,14 @@ export class RFIDConfig {
|
|
|
28
32
|
result._disableUI = true
|
|
29
33
|
return result
|
|
30
34
|
}
|
|
35
|
+
|
|
36
|
+
toJson() {
|
|
37
|
+
return {
|
|
38
|
+
"paCertificates": this.onRequestPACertificates != null,
|
|
39
|
+
"taCertificates": this.onRequestTACertificates != null,
|
|
40
|
+
"taSignature": this.onRequestTASignature != null,
|
|
41
|
+
"paceProtocol": this.onRequestPACEProtocol != null,
|
|
42
|
+
"caProtocol": this.onRequestCAProtocol != null,
|
|
43
|
+
}
|
|
44
|
+
}
|
|
31
45
|
}
|
package/www/capacitor/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { exec, serializeInterface, _setDocumentReaderCompletion, _setRFIDCompletion, _setDocumentReaderPrepareCompletion, _setCustomButtonTappedCompletion, _setVideoEncoderCompletion, _setRFIDProgressCompletion, _setChipDetectedCompletion, _setRetryReadChipCompletion, _setPaCertificateCompletion, _setTaCertificateCompletion, _setTaSignatureCompletion } from './internal/bridge'
|
|
1
|
+
import { exec, serializeInterface, _setDocumentReaderCompletion, _setRFIDCompletion, _setDocumentReaderPrepareCompletion, _setCustomButtonTappedCompletion, _setVideoEncoderCompletion, _setRFIDProgressCompletion, _setChipDetectedCompletion, _setRetryReadChipCompletion, _setPaCertificateCompletion, _setTaCertificateCompletion, _setTaSignatureCompletion, _setPACEProtocolCompletion, _setCAProtocolCompletion } from './internal/bridge'
|
|
2
2
|
|
|
3
3
|
import { OnlineProcessingConfig, ImageFormat, OnlineMode } from './config/OnlineProcessingConfig';
|
|
4
4
|
import { InitConfig } from './config/InitConfig';
|
|
@@ -135,8 +135,10 @@ import { TccParams } from './rfid/TccParams';
|
|
|
135
135
|
import { RFIDNotification, RFIDNotificationCodes } from './rfid/RFIDNotification';
|
|
136
136
|
import { PAAttribute } from './rfid/PAAttribute';
|
|
137
137
|
import { TAChallenge } from './rfid/TAChallenge';
|
|
138
|
+
import { PACEProtocol } from './rfid/PACEProtocol';
|
|
139
|
+
import { CAProtocol } from './rfid/CAProtocol';
|
|
138
140
|
import { PKDCertificate, PKDResourceType } from './rfid/PKDCertificate';
|
|
139
|
-
export { PAResourcesIssuer, RFIDErrorCodes, TccParams, RFIDNotification, RFIDNotificationCodes, PAAttribute, TAChallenge, PKDCertificate, PKDResourceType };
|
|
141
|
+
export { PAResourcesIssuer, RFIDErrorCodes, TccParams, RFIDNotification, RFIDNotificationCodes, PAAttribute, TAChallenge, PACEProtocol, CAProtocol, PKDCertificate, PKDResourceType };
|
|
140
142
|
|
|
141
143
|
import { DataRetrieval, MDLDocRequestPreset, MDLDeviceRetrieval } from './mdl/DataRetrieval';
|
|
142
144
|
import { DeviceEngagement, MDLDeviceEngagement } from './mdl/DeviceEngagement';
|
|
@@ -339,15 +341,15 @@ export class DocumentReader {
|
|
|
339
341
|
_setRFIDProgressCompletion(config.onProgress);
|
|
340
342
|
_setChipDetectedCompletion(config.onChipDetected);
|
|
341
343
|
_setRetryReadChipCompletion(config.onRetryReadChip);
|
|
344
|
+
|
|
342
345
|
_setPaCertificateCompletion(config.onRequestPACertificates);
|
|
343
346
|
_setTaCertificateCompletion(config.onRequestTACertificates);
|
|
344
347
|
_setTaSignatureCompletion(config.onRequestTASignature);
|
|
345
348
|
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
]);
|
|
349
|
+
_setPACEProtocolCompletion(config.onRequestPACEProtocol);
|
|
350
|
+
_setCAProtocolCompletion(config.onRequestCAProtocol);
|
|
351
|
+
|
|
352
|
+
exec(config._disableUI ? "readRFID" : "startRFIDReader", [config.toJson()]);
|
|
351
353
|
}
|
|
352
354
|
|
|
353
355
|
stopScanner() {
|
|
@@ -7,6 +7,8 @@ import { PrepareProgress } from '../info/PrepareProgress'
|
|
|
7
7
|
import { RFIDNotification } from '../rfid/RFIDNotification'
|
|
8
8
|
import { PAResourcesIssuer } from '../rfid/PAResourcesIssuer'
|
|
9
9
|
import { TAChallenge } from '../rfid/TAChallenge'
|
|
10
|
+
import { PACEProtocol } from '../rfid/PACEProtocol'
|
|
11
|
+
import { CAProtocol } from '../rfid/CAProtocol'
|
|
10
12
|
|
|
11
13
|
const { RNDocumentReader } = NativeModules
|
|
12
14
|
var eventManager = new NativeEventEmitter(RNDocumentReader)
|
|
@@ -97,8 +99,24 @@ export function _setTaCertificateCompletion(completion) {
|
|
|
97
99
|
|
|
98
100
|
export function _setTaSignatureCompletion(completion) {
|
|
99
101
|
_setEvent("ta_signature_completion", completion, json => {
|
|
100
|
-
return [TAChallenge.fromJson(
|
|
102
|
+
return [TAChallenge.fromJson(JSON.parse(json)), async signature => {
|
|
101
103
|
await exec("provideTASignature", [signature])
|
|
102
104
|
}]
|
|
103
105
|
})
|
|
104
106
|
}
|
|
107
|
+
|
|
108
|
+
export function _setPACEProtocolCompletion(completion) {
|
|
109
|
+
_setEvent("paceProtocolCompletionEvent", completion, json => {
|
|
110
|
+
return [JSON.parse(json).map(item => PACEProtocol.fromJson(item)), async protocol => {
|
|
111
|
+
await exec("selectPACEProtocol", [protocol])
|
|
112
|
+
}]
|
|
113
|
+
})
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
export function _setCAProtocolCompletion(completion) {
|
|
117
|
+
_setEvent("caProtocolCompletionEvent", completion, json => {
|
|
118
|
+
return [JSON.parse(json).map(item => CAProtocol.fromJson(item)), async protocol => {
|
|
119
|
+
await exec("selectCAProtocol", [protocol])
|
|
120
|
+
}]
|
|
121
|
+
})
|
|
122
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export class CAProtocol {
|
|
2
|
+
version
|
|
3
|
+
scheme
|
|
4
|
+
keyAlgorithm
|
|
5
|
+
chipIndividual
|
|
6
|
+
|
|
7
|
+
static fromJson(jsonObject) {
|
|
8
|
+
if (jsonObject == null) return null
|
|
9
|
+
const result = new CAProtocol()
|
|
10
|
+
|
|
11
|
+
result.version = jsonObject["version"]
|
|
12
|
+
result.scheme = jsonObject["scheme"]
|
|
13
|
+
result.keyAlgorithm = jsonObject["keyAlgorithm"]
|
|
14
|
+
result.chipIndividual = jsonObject["chipIndividual"]
|
|
15
|
+
|
|
16
|
+
return result
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
toJson() {
|
|
20
|
+
return {
|
|
21
|
+
"version": this.version,
|
|
22
|
+
"scheme": this.scheme,
|
|
23
|
+
"keyAlgorithm": this.keyAlgorithm,
|
|
24
|
+
"chipIndividual": this.chipIndividual,
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export class PACEProtocol {
|
|
2
|
+
version
|
|
3
|
+
stdDomainParams
|
|
4
|
+
keyAlgorithm
|
|
5
|
+
|
|
6
|
+
static fromJson(jsonObject) {
|
|
7
|
+
if (jsonObject == null) return null
|
|
8
|
+
const result = new PACEProtocol()
|
|
9
|
+
|
|
10
|
+
result.version = jsonObject["version"]
|
|
11
|
+
result.stdDomainParams = jsonObject["stdDomainParams"]
|
|
12
|
+
result.keyAlgorithm = jsonObject["keyAlgorithm"]
|
|
13
|
+
|
|
14
|
+
return result
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
toJson() {
|
|
18
|
+
return {
|
|
19
|
+
"version": this.version,
|
|
20
|
+
"stdDomainParams": this.stdDomainParams,
|
|
21
|
+
"keyAlgorithm": this.keyAlgorithm,
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
package/www/cordova.js
CHANGED
|
@@ -207,6 +207,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
207
207
|
/* harmony import */ var _rfid_PAResourcesIssuer__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../rfid/PAResourcesIssuer */ "./src/rfid/PAResourcesIssuer.js");
|
|
208
208
|
/* harmony import */ var _rfid_PKDCertificate__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../rfid/PKDCertificate */ "./src/rfid/PKDCertificate.js");
|
|
209
209
|
/* harmony import */ var _rfid_TAChallenge__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../rfid/TAChallenge */ "./src/rfid/TAChallenge.js");
|
|
210
|
+
/* harmony import */ var _rfid_PACEProtocol__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../rfid/PACEProtocol */ "./src/rfid/PACEProtocol.js");
|
|
211
|
+
/* harmony import */ var _rfid_CAProtocol__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../rfid/CAProtocol */ "./src/rfid/CAProtocol.js");
|
|
212
|
+
|
|
213
|
+
|
|
210
214
|
|
|
211
215
|
|
|
212
216
|
|
|
@@ -225,6 +229,8 @@ class RFIDConfig {
|
|
|
225
229
|
onRequestPACertificates
|
|
226
230
|
onRequestTACertificates
|
|
227
231
|
onRequestTASignature
|
|
232
|
+
onRequestPACEProtocol
|
|
233
|
+
onRequestCAProtocol
|
|
228
234
|
|
|
229
235
|
constructor(completion) {
|
|
230
236
|
this._completion = completion
|
|
@@ -237,6 +243,16 @@ class RFIDConfig {
|
|
|
237
243
|
result._disableUI = true
|
|
238
244
|
return result
|
|
239
245
|
}
|
|
246
|
+
|
|
247
|
+
toJson() {
|
|
248
|
+
return {
|
|
249
|
+
"paCertificates": this.onRequestPACertificates != null,
|
|
250
|
+
"taCertificates": this.onRequestTACertificates != null,
|
|
251
|
+
"taSignature": this.onRequestTASignature != null,
|
|
252
|
+
"paceProtocol": this.onRequestPACEProtocol != null,
|
|
253
|
+
"caProtocol": this.onRequestCAProtocol != null,
|
|
254
|
+
}
|
|
255
|
+
}
|
|
240
256
|
}
|
|
241
257
|
|
|
242
258
|
|
|
@@ -474,6 +490,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
474
490
|
/* harmony export */ BarcodeType: () => (/* reexport safe */ _results_barcode_BarcodeType__WEBPACK_IMPORTED_MODULE_46__.BarcodeType),
|
|
475
491
|
/* harmony export */ Bsi: () => (/* reexport safe */ _params_process_params_Bsi__WEBPACK_IMPORTED_MODULE_86__.Bsi),
|
|
476
492
|
/* harmony export */ BytesData: () => (/* reexport safe */ _results_visible_digital_seals_BytesData__WEBPACK_IMPORTED_MODULE_54__.BytesData),
|
|
493
|
+
/* harmony export */ CAProtocol: () => (/* reexport safe */ _rfid_CAProtocol__WEBPACK_IMPORTED_MODULE_108__.CAProtocol),
|
|
477
494
|
/* harmony export */ CameraMode: () => (/* reexport safe */ _params_Functionality__WEBPACK_IMPORTED_MODULE_88__.CameraMode),
|
|
478
495
|
/* harmony export */ CameraPosition: () => (/* reexport safe */ _params_Functionality__WEBPACK_IMPORTED_MODULE_88__.CameraPosition),
|
|
479
496
|
/* harmony export */ CameraSize: () => (/* reexport safe */ _params_Functionality__WEBPACK_IMPORTED_MODULE_88__.CameraSize),
|
|
@@ -497,9 +514,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
497
514
|
/* harmony export */ CustomizationTimings: () => (/* reexport safe */ _params_customization_CustomizationTimings__WEBPACK_IMPORTED_MODULE_92__.CustomizationTimings),
|
|
498
515
|
/* harmony export */ DTCDataGroup: () => (/* reexport safe */ _params_rfid_scenario_DTCDataGroup__WEBPACK_IMPORTED_MODULE_98__.DTCDataGroup),
|
|
499
516
|
/* harmony export */ DataField: () => (/* reexport safe */ _results_rfid_DataField__WEBPACK_IMPORTED_MODULE_60__.DataField),
|
|
500
|
-
/* harmony export */ DataRetrieval: () => (/* reexport safe */
|
|
501
|
-
/* harmony export */ DeviceEngagement: () => (/* reexport safe */
|
|
502
|
-
/* harmony export */ DeviceRetrievalMethod: () => (/* reexport safe */
|
|
517
|
+
/* harmony export */ DataRetrieval: () => (/* reexport safe */ _mdl_DataRetrieval__WEBPACK_IMPORTED_MODULE_110__.DataRetrieval),
|
|
518
|
+
/* harmony export */ DeviceEngagement: () => (/* reexport safe */ _mdl_DeviceEngagement__WEBPACK_IMPORTED_MODULE_111__.DeviceEngagement),
|
|
519
|
+
/* harmony export */ DeviceRetrievalMethod: () => (/* reexport safe */ _mdl_DeviceRetrievalMethod__WEBPACK_IMPORTED_MODULE_114__.DeviceRetrievalMethod),
|
|
503
520
|
/* harmony export */ DocFeature: () => (/* reexport safe */ _results_visible_digital_seals_DocFeature__WEBPACK_IMPORTED_MODULE_55__.DocFeature),
|
|
504
521
|
/* harmony export */ DocFormat: () => (/* reexport safe */ _results_DocumentType__WEBPACK_IMPORTED_MODULE_29__.DocFormat),
|
|
505
522
|
/* harmony export */ DocReaderAction: () => (/* binding */ DocReaderAction),
|
|
@@ -509,8 +526,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
509
526
|
/* harmony export */ DocReaderScenario: () => (/* reexport safe */ _info_DocReaderScenario__WEBPACK_IMPORTED_MODULE_12__.DocReaderScenario),
|
|
510
527
|
/* harmony export */ DocReaderVersion: () => (/* reexport safe */ _info_DocReaderVersion__WEBPACK_IMPORTED_MODULE_7__.DocReaderVersion),
|
|
511
528
|
/* harmony export */ DocumentReader: () => (/* binding */ DocumentReader),
|
|
512
|
-
/* harmony export */ DocumentRequest18013MDL: () => (/* reexport safe */
|
|
513
|
-
/* harmony export */ DocumentRequestMDL: () => (/* reexport safe */
|
|
529
|
+
/* harmony export */ DocumentRequest18013MDL: () => (/* reexport safe */ _mdl_DocumentRequestMDL__WEBPACK_IMPORTED_MODULE_113__.DocumentRequest18013MDL),
|
|
530
|
+
/* harmony export */ DocumentRequestMDL: () => (/* reexport safe */ _mdl_DocumentRequestMDL__WEBPACK_IMPORTED_MODULE_113__.DocumentRequestMDL),
|
|
514
531
|
/* harmony export */ DocumentType: () => (/* reexport safe */ _results_DocumentType__WEBPACK_IMPORTED_MODULE_29__.DocumentType),
|
|
515
532
|
/* harmony export */ DocumentTypeEnum: () => (/* reexport safe */ _results_DocumentType__WEBPACK_IMPORTED_MODULE_29__.DocType),
|
|
516
533
|
/* harmony export */ DocumentsDatabase: () => (/* reexport safe */ _info_DocumentsDatabase__WEBPACK_IMPORTED_MODULE_10__.DocumentsDatabase),
|
|
@@ -547,22 +564,23 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
547
564
|
/* harmony export */ Lights: () => (/* reexport safe */ _results_visual_results_Lights__WEBPACK_IMPORTED_MODULE_21__.Lights),
|
|
548
565
|
/* harmony export */ LivenessParams: () => (/* reexport safe */ _params_process_params_LivenessParams__WEBPACK_IMPORTED_MODULE_78__.LivenessParams),
|
|
549
566
|
/* harmony export */ LogLevel: () => (/* reexport safe */ _params_process_params_ProcessParams__WEBPACK_IMPORTED_MODULE_79__.LogLevel),
|
|
550
|
-
/* harmony export */ MDLDeviceEngagement: () => (/* reexport safe */
|
|
551
|
-
/* harmony export */ MDLDeviceRetrieval: () => (/* reexport safe */
|
|
552
|
-
/* harmony export */ MDLDocRequestPreset: () => (/* reexport safe */
|
|
553
|
-
/* harmony export */ MDLIntentToRetain: () => (/* reexport safe */
|
|
567
|
+
/* harmony export */ MDLDeviceEngagement: () => (/* reexport safe */ _mdl_DeviceEngagement__WEBPACK_IMPORTED_MODULE_111__.MDLDeviceEngagement),
|
|
568
|
+
/* harmony export */ MDLDeviceRetrieval: () => (/* reexport safe */ _mdl_DataRetrieval__WEBPACK_IMPORTED_MODULE_110__.MDLDeviceRetrieval),
|
|
569
|
+
/* harmony export */ MDLDocRequestPreset: () => (/* reexport safe */ _mdl_DataRetrieval__WEBPACK_IMPORTED_MODULE_110__.MDLDocRequestPreset),
|
|
570
|
+
/* harmony export */ MDLIntentToRetain: () => (/* reexport safe */ _mdl_NameSpaceMDL__WEBPACK_IMPORTED_MODULE_112__.MDLIntentToRetain),
|
|
554
571
|
/* harmony export */ MRZFormat: () => (/* reexport safe */ _params_process_params_ProcessParams__WEBPACK_IMPORTED_MODULE_79__.MRZFormat),
|
|
555
572
|
/* harmony export */ MeasureSystem: () => (/* reexport safe */ _params_process_params_ProcessParams__WEBPACK_IMPORTED_MODULE_79__.MeasureSystem),
|
|
556
573
|
/* harmony export */ MrzDetectionModes: () => (/* reexport safe */ _params_process_params_ProcessParams__WEBPACK_IMPORTED_MODULE_79__.MrzDetectionModes),
|
|
557
|
-
/* harmony export */ NameSpaceMDL: () => (/* reexport safe */
|
|
574
|
+
/* harmony export */ NameSpaceMDL: () => (/* reexport safe */ _mdl_NameSpaceMDL__WEBPACK_IMPORTED_MODULE_112__.NameSpaceMDL),
|
|
558
575
|
/* harmony export */ OnlineMode: () => (/* reexport safe */ _config_OnlineProcessingConfig__WEBPACK_IMPORTED_MODULE_1__.OnlineMode),
|
|
559
576
|
/* harmony export */ OnlineProcessingConfig: () => (/* reexport safe */ _config_OnlineProcessingConfig__WEBPACK_IMPORTED_MODULE_1__.OnlineProcessingConfig),
|
|
560
577
|
/* harmony export */ OpticalStatus: () => (/* reexport safe */ _results_status_OpticalStatus__WEBPACK_IMPORTED_MODULE_36__.OpticalStatus),
|
|
561
578
|
/* harmony export */ PAAttribute: () => (/* reexport safe */ _rfid_PAAttribute__WEBPACK_IMPORTED_MODULE_105__.PAAttribute),
|
|
579
|
+
/* harmony export */ PACEProtocol: () => (/* reexport safe */ _rfid_PACEProtocol__WEBPACK_IMPORTED_MODULE_107__.PACEProtocol),
|
|
562
580
|
/* harmony export */ PAResourcesIssuer: () => (/* reexport safe */ _rfid_PAResourcesIssuer__WEBPACK_IMPORTED_MODULE_101__.PAResourcesIssuer),
|
|
563
581
|
/* harmony export */ PDF417Info: () => (/* reexport safe */ _results_barcode_PDF417Info__WEBPACK_IMPORTED_MODULE_44__.PDF417Info),
|
|
564
|
-
/* harmony export */ PKDCertificate: () => (/* reexport safe */
|
|
565
|
-
/* harmony export */ PKDResourceType: () => (/* reexport safe */
|
|
582
|
+
/* harmony export */ PKDCertificate: () => (/* reexport safe */ _rfid_PKDCertificate__WEBPACK_IMPORTED_MODULE_109__.PKDCertificate),
|
|
583
|
+
/* harmony export */ PKDResourceType: () => (/* reexport safe */ _rfid_PKDCertificate__WEBPACK_IMPORTED_MODULE_109__.PKDResourceType),
|
|
566
584
|
/* harmony export */ Position: () => (/* reexport safe */ _results_Position__WEBPACK_IMPORTED_MODULE_32__.Position),
|
|
567
585
|
/* harmony export */ PrepareProgress: () => (/* reexport safe */ _info_PrepareProgress__WEBPACK_IMPORTED_MODULE_8__.PrepareProgress),
|
|
568
586
|
/* harmony export */ ProcessParams: () => (/* reexport safe */ _params_process_params_ProcessParams__WEBPACK_IMPORTED_MODULE_79__.ProcessParams),
|
|
@@ -720,12 +738,16 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
720
738
|
/* harmony import */ var _rfid_RFIDNotification__WEBPACK_IMPORTED_MODULE_104__ = __webpack_require__(/*! ./rfid/RFIDNotification */ "./src/rfid/RFIDNotification.js");
|
|
721
739
|
/* harmony import */ var _rfid_PAAttribute__WEBPACK_IMPORTED_MODULE_105__ = __webpack_require__(/*! ./rfid/PAAttribute */ "./src/rfid/PAAttribute.js");
|
|
722
740
|
/* harmony import */ var _rfid_TAChallenge__WEBPACK_IMPORTED_MODULE_106__ = __webpack_require__(/*! ./rfid/TAChallenge */ "./src/rfid/TAChallenge.js");
|
|
723
|
-
/* harmony import */ var
|
|
724
|
-
/* harmony import */ var
|
|
725
|
-
/* harmony import */ var
|
|
726
|
-
/* harmony import */ var
|
|
727
|
-
/* harmony import */ var
|
|
728
|
-
/* harmony import */ var
|
|
741
|
+
/* harmony import */ var _rfid_PACEProtocol__WEBPACK_IMPORTED_MODULE_107__ = __webpack_require__(/*! ./rfid/PACEProtocol */ "./src/rfid/PACEProtocol.js");
|
|
742
|
+
/* harmony import */ var _rfid_CAProtocol__WEBPACK_IMPORTED_MODULE_108__ = __webpack_require__(/*! ./rfid/CAProtocol */ "./src/rfid/CAProtocol.js");
|
|
743
|
+
/* harmony import */ var _rfid_PKDCertificate__WEBPACK_IMPORTED_MODULE_109__ = __webpack_require__(/*! ./rfid/PKDCertificate */ "./src/rfid/PKDCertificate.js");
|
|
744
|
+
/* harmony import */ var _mdl_DataRetrieval__WEBPACK_IMPORTED_MODULE_110__ = __webpack_require__(/*! ./mdl/DataRetrieval */ "./src/mdl/DataRetrieval.js");
|
|
745
|
+
/* harmony import */ var _mdl_DeviceEngagement__WEBPACK_IMPORTED_MODULE_111__ = __webpack_require__(/*! ./mdl/DeviceEngagement */ "./src/mdl/DeviceEngagement.js");
|
|
746
|
+
/* harmony import */ var _mdl_NameSpaceMDL__WEBPACK_IMPORTED_MODULE_112__ = __webpack_require__(/*! ./mdl/NameSpaceMDL */ "./src/mdl/NameSpaceMDL.js");
|
|
747
|
+
/* harmony import */ var _mdl_DocumentRequestMDL__WEBPACK_IMPORTED_MODULE_113__ = __webpack_require__(/*! ./mdl/DocumentRequestMDL */ "./src/mdl/DocumentRequestMDL.js");
|
|
748
|
+
/* harmony import */ var _mdl_DeviceRetrievalMethod__WEBPACK_IMPORTED_MODULE_114__ = __webpack_require__(/*! ./mdl/DeviceRetrievalMethod */ "./src/mdl/DeviceRetrievalMethod.js");
|
|
749
|
+
|
|
750
|
+
|
|
729
751
|
|
|
730
752
|
|
|
731
753
|
|
|
@@ -1067,15 +1089,15 @@ class DocumentReader {
|
|
|
1067
1089
|
(0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__._setRFIDProgressCompletion)(config.onProgress);
|
|
1068
1090
|
(0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__._setChipDetectedCompletion)(config.onChipDetected);
|
|
1069
1091
|
(0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__._setRetryReadChipCompletion)(config.onRetryReadChip);
|
|
1092
|
+
|
|
1070
1093
|
(0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__._setPaCertificateCompletion)(config.onRequestPACertificates);
|
|
1071
1094
|
(0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__._setTaCertificateCompletion)(config.onRequestTACertificates);
|
|
1072
1095
|
(0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__._setTaSignatureCompletion)(config.onRequestTASignature);
|
|
1073
1096
|
|
|
1074
|
-
(0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
]);
|
|
1097
|
+
(0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__._setPACEProtocolCompletion)(config.onRequestPACEProtocol);
|
|
1098
|
+
(0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__._setCAProtocolCompletion)(config.onRequestCAProtocol);
|
|
1099
|
+
|
|
1100
|
+
(0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)(config._disableUI ? "readRFID" : "startRFIDReader", [config.toJson()]);
|
|
1079
1101
|
}
|
|
1080
1102
|
|
|
1081
1103
|
stopScanner() {
|
|
@@ -1131,23 +1153,23 @@ class DocumentReader {
|
|
|
1131
1153
|
var response = "";
|
|
1132
1154
|
if (options?.withoutUI != true) {
|
|
1133
1155
|
response = await (0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("startEngageDevice", [type.value]);
|
|
1134
|
-
} else if (type ==
|
|
1156
|
+
} else if (type == _mdl_DeviceEngagement__WEBPACK_IMPORTED_MODULE_111__.MDLDeviceEngagement.NFC) {
|
|
1135
1157
|
response = await (0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("engageDeviceNFC", []);
|
|
1136
|
-
} else if (type ==
|
|
1158
|
+
} else if (type == _mdl_DeviceEngagement__WEBPACK_IMPORTED_MODULE_111__.MDLDeviceEngagement.QR && options?.data != null) {
|
|
1137
1159
|
response = await (0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("engageDeviceData", [options.data]);
|
|
1138
1160
|
}
|
|
1139
1161
|
|
|
1140
1162
|
var jsonObject = JSON.parse(response);
|
|
1141
1163
|
return [
|
|
1142
|
-
|
|
1164
|
+
_mdl_DeviceEngagement__WEBPACK_IMPORTED_MODULE_111__.DeviceEngagement.fromJson(jsonObject["deviceEngagement"]),
|
|
1143
1165
|
_info_DocReaderException__WEBPACK_IMPORTED_MODULE_9__.DocReaderException.fromJson(jsonObject["error"]),
|
|
1144
1166
|
]
|
|
1145
1167
|
}
|
|
1146
1168
|
|
|
1147
1169
|
async retrieveData(retrieval, options) {
|
|
1148
1170
|
var func = "startRetrieveData";
|
|
1149
|
-
if (options?.withoutUI ==
|
|
1150
|
-
if (options?.withoutUI ==
|
|
1171
|
+
if (options?.withoutUI == _mdl_DataRetrieval__WEBPACK_IMPORTED_MODULE_110__.MDLDeviceRetrieval.NFC) func = "engageDeviceNFC";
|
|
1172
|
+
if (options?.withoutUI == _mdl_DataRetrieval__WEBPACK_IMPORTED_MODULE_110__.MDLDeviceRetrieval.BLE) func = "engageDeviceBLE";
|
|
1151
1173
|
|
|
1152
1174
|
var response = await (0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)(func, [retrieval.toJson(), options?.engagement?.toJson()]);
|
|
1153
1175
|
var jsonObject = JSON.parse(response);
|
|
@@ -1717,10 +1739,12 @@ class RFIDException {
|
|
|
1717
1739
|
|
|
1718
1740
|
__webpack_require__.r(__webpack_exports__);
|
|
1719
1741
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1742
|
+
/* harmony export */ _setCAProtocolCompletion: () => (/* binding */ _setCAProtocolCompletion),
|
|
1720
1743
|
/* harmony export */ _setChipDetectedCompletion: () => (/* binding */ _setChipDetectedCompletion),
|
|
1721
1744
|
/* harmony export */ _setCustomButtonTappedCompletion: () => (/* binding */ _setCustomButtonTappedCompletion),
|
|
1722
1745
|
/* harmony export */ _setDocumentReaderCompletion: () => (/* binding */ _setDocumentReaderCompletion),
|
|
1723
1746
|
/* harmony export */ _setDocumentReaderPrepareCompletion: () => (/* binding */ _setDocumentReaderPrepareCompletion),
|
|
1747
|
+
/* harmony export */ _setPACEProtocolCompletion: () => (/* binding */ _setPACEProtocolCompletion),
|
|
1724
1748
|
/* harmony export */ _setPaCertificateCompletion: () => (/* binding */ _setPaCertificateCompletion),
|
|
1725
1749
|
/* harmony export */ _setRFIDCompletion: () => (/* binding */ _setRFIDCompletion),
|
|
1726
1750
|
/* harmony export */ _setRFIDProgressCompletion: () => (/* binding */ _setRFIDProgressCompletion),
|
|
@@ -1739,6 +1763,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
1739
1763
|
/* harmony import */ var _rfid_RFIDNotification__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../rfid/RFIDNotification */ "./src/rfid/RFIDNotification.js");
|
|
1740
1764
|
/* harmony import */ var _rfid_PAResourcesIssuer__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../rfid/PAResourcesIssuer */ "./src/rfid/PAResourcesIssuer.js");
|
|
1741
1765
|
/* harmony import */ var _rfid_TAChallenge__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../rfid/TAChallenge */ "./src/rfid/TAChallenge.js");
|
|
1766
|
+
/* harmony import */ var _rfid_PACEProtocol__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../rfid/PACEProtocol */ "./src/rfid/PACEProtocol.js");
|
|
1767
|
+
/* harmony import */ var _rfid_CAProtocol__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../rfid/CAProtocol */ "./src/rfid/CAProtocol.js");
|
|
1768
|
+
|
|
1769
|
+
|
|
1742
1770
|
|
|
1743
1771
|
|
|
1744
1772
|
|
|
@@ -1838,12 +1866,28 @@ function _setTaCertificateCompletion(completion) {
|
|
|
1838
1866
|
|
|
1839
1867
|
function _setTaSignatureCompletion(completion) {
|
|
1840
1868
|
_setEvent("ta_signature_completion", completion, json => {
|
|
1841
|
-
return [_rfid_TAChallenge__WEBPACK_IMPORTED_MODULE_7__.TAChallenge.fromJson(
|
|
1869
|
+
return [_rfid_TAChallenge__WEBPACK_IMPORTED_MODULE_7__.TAChallenge.fromJson(JSON.parse(json)), async signature => {
|
|
1842
1870
|
await exec("provideTASignature", [signature])
|
|
1843
1871
|
}]
|
|
1844
1872
|
})
|
|
1845
1873
|
}
|
|
1846
1874
|
|
|
1875
|
+
function _setPACEProtocolCompletion(completion) {
|
|
1876
|
+
_setEvent("paceProtocolCompletionEvent", completion, json => {
|
|
1877
|
+
return [JSON.parse(json).map(item => _rfid_PACEProtocol__WEBPACK_IMPORTED_MODULE_8__.PACEProtocol.fromJson(item)), async protocol => {
|
|
1878
|
+
await exec("selectPACEProtocol", [protocol])
|
|
1879
|
+
}]
|
|
1880
|
+
})
|
|
1881
|
+
}
|
|
1882
|
+
|
|
1883
|
+
function _setCAProtocolCompletion(completion) {
|
|
1884
|
+
_setEvent("caProtocolCompletionEvent", completion, json => {
|
|
1885
|
+
return [JSON.parse(json).map(item => _rfid_CAProtocol__WEBPACK_IMPORTED_MODULE_9__.CAProtocol.fromJson(item)), async protocol => {
|
|
1886
|
+
await exec("selectCAProtocol", [protocol])
|
|
1887
|
+
}]
|
|
1888
|
+
})
|
|
1889
|
+
}
|
|
1890
|
+
|
|
1847
1891
|
|
|
1848
1892
|
/***/ },
|
|
1849
1893
|
|
|
@@ -12025,6 +12069,47 @@ class Value {
|
|
|
12025
12069
|
}
|
|
12026
12070
|
}
|
|
12027
12071
|
|
|
12072
|
+
/***/ },
|
|
12073
|
+
|
|
12074
|
+
/***/ "./src/rfid/CAProtocol.js"
|
|
12075
|
+
/*!********************************!*\
|
|
12076
|
+
!*** ./src/rfid/CAProtocol.js ***!
|
|
12077
|
+
\********************************/
|
|
12078
|
+
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
12079
|
+
|
|
12080
|
+
__webpack_require__.r(__webpack_exports__);
|
|
12081
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
12082
|
+
/* harmony export */ CAProtocol: () => (/* binding */ CAProtocol)
|
|
12083
|
+
/* harmony export */ });
|
|
12084
|
+
class CAProtocol {
|
|
12085
|
+
version
|
|
12086
|
+
scheme
|
|
12087
|
+
keyAlgorithm
|
|
12088
|
+
chipIndividual
|
|
12089
|
+
|
|
12090
|
+
static fromJson(jsonObject) {
|
|
12091
|
+
if (jsonObject == null) return null
|
|
12092
|
+
const result = new CAProtocol()
|
|
12093
|
+
|
|
12094
|
+
result.version = jsonObject["version"]
|
|
12095
|
+
result.scheme = jsonObject["scheme"]
|
|
12096
|
+
result.keyAlgorithm = jsonObject["keyAlgorithm"]
|
|
12097
|
+
result.chipIndividual = jsonObject["chipIndividual"]
|
|
12098
|
+
|
|
12099
|
+
return result
|
|
12100
|
+
}
|
|
12101
|
+
|
|
12102
|
+
toJson() {
|
|
12103
|
+
return {
|
|
12104
|
+
"version": this.version,
|
|
12105
|
+
"scheme": this.scheme,
|
|
12106
|
+
"keyAlgorithm": this.keyAlgorithm,
|
|
12107
|
+
"chipIndividual": this.chipIndividual,
|
|
12108
|
+
}
|
|
12109
|
+
}
|
|
12110
|
+
}
|
|
12111
|
+
|
|
12112
|
+
|
|
12028
12113
|
/***/ },
|
|
12029
12114
|
|
|
12030
12115
|
/***/ "./src/rfid/PAAttribute.js"
|
|
@@ -12063,6 +12148,44 @@ class PAAttribute {
|
|
|
12063
12148
|
}
|
|
12064
12149
|
|
|
12065
12150
|
|
|
12151
|
+
/***/ },
|
|
12152
|
+
|
|
12153
|
+
/***/ "./src/rfid/PACEProtocol.js"
|
|
12154
|
+
/*!**********************************!*\
|
|
12155
|
+
!*** ./src/rfid/PACEProtocol.js ***!
|
|
12156
|
+
\**********************************/
|
|
12157
|
+
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
12158
|
+
|
|
12159
|
+
__webpack_require__.r(__webpack_exports__);
|
|
12160
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
12161
|
+
/* harmony export */ PACEProtocol: () => (/* binding */ PACEProtocol)
|
|
12162
|
+
/* harmony export */ });
|
|
12163
|
+
class PACEProtocol {
|
|
12164
|
+
version
|
|
12165
|
+
stdDomainParams
|
|
12166
|
+
keyAlgorithm
|
|
12167
|
+
|
|
12168
|
+
static fromJson(jsonObject) {
|
|
12169
|
+
if (jsonObject == null) return null
|
|
12170
|
+
const result = new PACEProtocol()
|
|
12171
|
+
|
|
12172
|
+
result.version = jsonObject["version"]
|
|
12173
|
+
result.stdDomainParams = jsonObject["stdDomainParams"]
|
|
12174
|
+
result.keyAlgorithm = jsonObject["keyAlgorithm"]
|
|
12175
|
+
|
|
12176
|
+
return result
|
|
12177
|
+
}
|
|
12178
|
+
|
|
12179
|
+
toJson() {
|
|
12180
|
+
return {
|
|
12181
|
+
"version": this.version,
|
|
12182
|
+
"stdDomainParams": this.stdDomainParams,
|
|
12183
|
+
"keyAlgorithm": this.keyAlgorithm,
|
|
12184
|
+
}
|
|
12185
|
+
}
|
|
12186
|
+
}
|
|
12187
|
+
|
|
12188
|
+
|
|
12066
12189
|
/***/ },
|
|
12067
12190
|
|
|
12068
12191
|
/***/ "./src/rfid/PAResourcesIssuer.js"
|
|
@@ -5,6 +5,8 @@ import { RFIDNotification } from "../rfid/RFIDNotification";
|
|
|
5
5
|
import { PAResourcesIssuer } from "../rfid/PAResourcesIssuer";
|
|
6
6
|
import { PKDCertificate } from "../rfid/PKDCertificate";
|
|
7
7
|
import { TAChallenge } from "../rfid/TAChallenge";
|
|
8
|
+
import { PACEProtocol } from "../rfid/PACEProtocol";
|
|
9
|
+
import { CAProtocol } from "../rfid/CAProtocol";
|
|
8
10
|
|
|
9
11
|
export class RFIDConfig {
|
|
10
12
|
_completion
|
|
@@ -16,6 +18,8 @@ export class RFIDConfig {
|
|
|
16
18
|
onRequestPACertificates
|
|
17
19
|
onRequestTACertificates
|
|
18
20
|
onRequestTASignature
|
|
21
|
+
onRequestPACEProtocol
|
|
22
|
+
onRequestCAProtocol
|
|
19
23
|
|
|
20
24
|
constructor(completion) {
|
|
21
25
|
this._completion = completion
|
|
@@ -28,4 +32,14 @@ export class RFIDConfig {
|
|
|
28
32
|
result._disableUI = true
|
|
29
33
|
return result
|
|
30
34
|
}
|
|
35
|
+
|
|
36
|
+
toJson() {
|
|
37
|
+
return {
|
|
38
|
+
"paCertificates": this.onRequestPACertificates != null,
|
|
39
|
+
"taCertificates": this.onRequestTACertificates != null,
|
|
40
|
+
"taSignature": this.onRequestTASignature != null,
|
|
41
|
+
"paceProtocol": this.onRequestPACEProtocol != null,
|
|
42
|
+
"caProtocol": this.onRequestCAProtocol != null,
|
|
43
|
+
}
|
|
44
|
+
}
|
|
31
45
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { exec, serializeInterface, _setDocumentReaderCompletion, _setRFIDCompletion, _setDocumentReaderPrepareCompletion, _setCustomButtonTappedCompletion, _setVideoEncoderCompletion, _setRFIDProgressCompletion, _setChipDetectedCompletion, _setRetryReadChipCompletion, _setPaCertificateCompletion, _setTaCertificateCompletion, _setTaSignatureCompletion } from './internal/bridge'
|
|
1
|
+
import { exec, serializeInterface, _setDocumentReaderCompletion, _setRFIDCompletion, _setDocumentReaderPrepareCompletion, _setCustomButtonTappedCompletion, _setVideoEncoderCompletion, _setRFIDProgressCompletion, _setChipDetectedCompletion, _setRetryReadChipCompletion, _setPaCertificateCompletion, _setTaCertificateCompletion, _setTaSignatureCompletion, _setPACEProtocolCompletion, _setCAProtocolCompletion } from './internal/bridge'
|
|
2
2
|
|
|
3
3
|
import { OnlineProcessingConfig, ImageFormat, OnlineMode } from './config/OnlineProcessingConfig';
|
|
4
4
|
import { InitConfig } from './config/InitConfig';
|
|
@@ -135,8 +135,10 @@ import { TccParams } from './rfid/TccParams';
|
|
|
135
135
|
import { RFIDNotification, RFIDNotificationCodes } from './rfid/RFIDNotification';
|
|
136
136
|
import { PAAttribute } from './rfid/PAAttribute';
|
|
137
137
|
import { TAChallenge } from './rfid/TAChallenge';
|
|
138
|
+
import { PACEProtocol } from './rfid/PACEProtocol';
|
|
139
|
+
import { CAProtocol } from './rfid/CAProtocol';
|
|
138
140
|
import { PKDCertificate, PKDResourceType } from './rfid/PKDCertificate';
|
|
139
|
-
export { PAResourcesIssuer, RFIDErrorCodes, TccParams, RFIDNotification, RFIDNotificationCodes, PAAttribute, TAChallenge, PKDCertificate, PKDResourceType };
|
|
141
|
+
export { PAResourcesIssuer, RFIDErrorCodes, TccParams, RFIDNotification, RFIDNotificationCodes, PAAttribute, TAChallenge, PACEProtocol, CAProtocol, PKDCertificate, PKDResourceType };
|
|
140
142
|
|
|
141
143
|
import { DataRetrieval, MDLDocRequestPreset, MDLDeviceRetrieval } from './mdl/DataRetrieval';
|
|
142
144
|
import { DeviceEngagement, MDLDeviceEngagement } from './mdl/DeviceEngagement';
|
|
@@ -339,15 +341,15 @@ export class DocumentReader {
|
|
|
339
341
|
_setRFIDProgressCompletion(config.onProgress);
|
|
340
342
|
_setChipDetectedCompletion(config.onChipDetected);
|
|
341
343
|
_setRetryReadChipCompletion(config.onRetryReadChip);
|
|
344
|
+
|
|
342
345
|
_setPaCertificateCompletion(config.onRequestPACertificates);
|
|
343
346
|
_setTaCertificateCompletion(config.onRequestTACertificates);
|
|
344
347
|
_setTaSignatureCompletion(config.onRequestTASignature);
|
|
345
348
|
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
]);
|
|
349
|
+
_setPACEProtocolCompletion(config.onRequestPACEProtocol);
|
|
350
|
+
_setCAProtocolCompletion(config.onRequestCAProtocol);
|
|
351
|
+
|
|
352
|
+
exec(config._disableUI ? "readRFID" : "startRFIDReader", [config.toJson()]);
|
|
351
353
|
}
|
|
352
354
|
|
|
353
355
|
stopScanner() {
|