@regulaforensics/react-native-document-reader-api 5.8.0 → 6.1.2
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/README.md +2 -2
- package/RNDocumentReaderApi.podspec +2 -2
- package/android/build.gradle +4 -6
- package/android/src/main/java/com/regula/documentreader/Helpers.java +8 -3
- package/android/src/main/java/com/regula/documentreader/JSONConstructor.java +110 -10
- package/android/src/main/java/com/regula/documentreader/RNRegulaDocumentReaderModule.java +58 -26
- package/android/src/main/java/com/regula/documentreader/RegulaConfig.java +72 -9
- package/example/.editorconfig +3 -0
- package/example/.flowconfig +4 -13
- package/example/.gitattributes +3 -1
- package/example/.prettierrc.js +1 -0
- package/example/App.js +30 -18
- package/example/android/app/BUCK +55 -0
- package/example/android/app/build.gradle +35 -17
- package/example/android/app/debug.keystore +0 -0
- package/example/android/app/src/debug/AndroidManifest.xml +6 -1
- package/example/android/app/src/main/AndroidManifest.xml +21 -22
- package/example/android/app/src/main/assets/index.android.bundle +636 -0
- package/example/android/app/src/main/java/com/regula/dr/fullrfid/MainApplication.java +1 -2
- package/example/android/app/src/main/res/drawable-mdpi/images_id.png +0 -0
- package/example/android/app/src/main/res/drawable-mdpi/images_portrait.png +0 -0
- package/example/android/app/src/main/res/drawable-mdpi/node_modules_reactnativecheckbox_img_ic_check_box.png +0 -0
- package/example/android/app/src/main/res/drawable-mdpi/node_modules_reactnativecheckbox_img_ic_check_box_outline_blank.png +0 -0
- package/example/android/app/src/main/res/drawable-mdpi/node_modules_reactnativecheckbox_img_ic_indeterminate_check_box.png +0 -0
- package/example/android/app/src/main/res/drawable-xhdpi/node_modules_reactnativecheckbox_img_ic_check_box.png +0 -0
- package/example/android/app/src/main/res/drawable-xhdpi/node_modules_reactnativecheckbox_img_ic_check_box_outline_blank.png +0 -0
- package/example/android/app/src/main/res/drawable-xxhdpi/node_modules_reactnativecheckbox_img_ic_check_box.png +0 -0
- package/example/android/app/src/main/res/drawable-xxhdpi/node_modules_reactnativecheckbox_img_ic_check_box_outline_blank.png +0 -0
- package/example/android/build.gradle +12 -6
- package/example/android/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/example/android/gradle/wrapper/gradle-wrapper.properties +1 -1
- package/example/android/gradle.properties +2 -1
- package/example/android/gradlew +14 -17
- package/example/android/gradlew.bat +7 -18
- package/example/android/settings.gradle +0 -2
- package/example/ios/DocumentReader/AppDelegate.m +7 -3
- package/example/ios/DocumentReader/Info.plist +8 -10
- package/example/ios/DocumentReader/LaunchScreen.storyboard +47 -0
- package/example/ios/DocumentReader.xcodeproj/project.pbxproj +257 -96
- package/example/ios/DocumentReader.xcodeproj/xcshareddata/xcschemes/DocumentReader.xcscheme +1 -1
- package/example/ios/DocumentReaderTests/DocumentReaderTests.m +65 -0
- package/example/ios/DocumentReaderTests/Info.plist +24 -0
- package/example/ios/Podfile +13 -4
- package/example/metro.config.js +1 -1
- package/example/package.json +17 -18
- package/index.d.ts +724 -514
- package/index.js +672 -510
- package/ios/RGLWJSONConstructor.h +6 -0
- package/ios/RGLWJSONConstructor.m +92 -0
- package/ios/RNRegulaDocumentReader.m +34 -25
- package/ios/RegulaConfig.h +2 -0
- package/ios/RegulaConfig.m +119 -31
- package/package.json +1 -1
- package/example/ios/DocumentReader.xcodeproj/xcshareddata/xcschemes/DocumentReader-tvOS.xcscheme +0 -88
package/index.d.ts
CHANGED
|
@@ -2,8 +2,6 @@ import { NativeModules } from 'react-native'
|
|
|
2
2
|
export const { RNRegulaDocumentReader } = NativeModules
|
|
3
3
|
|
|
4
4
|
export class DocumentReaderScenario {
|
|
5
|
-
uvTorch?: boolean
|
|
6
|
-
seriesProcessMode?: boolean
|
|
7
5
|
name?: string
|
|
8
6
|
caption?: string
|
|
9
7
|
description?: string
|
|
@@ -12,8 +10,6 @@ export class DocumentReaderScenario {
|
|
|
12
10
|
if (jsonObject == null) return null
|
|
13
11
|
const result = new DocumentReaderScenario
|
|
14
12
|
|
|
15
|
-
result.uvTorch = jsonObject["uvTorch"]
|
|
16
|
-
result.seriesProcessMode = jsonObject["seriesProcessMode"]
|
|
17
13
|
result.name = jsonObject["name"]
|
|
18
14
|
result.caption = jsonObject["caption"]
|
|
19
15
|
result.description = jsonObject["description"]
|
|
@@ -22,7 +18,7 @@ export class DocumentReaderScenario {
|
|
|
22
18
|
}
|
|
23
19
|
}
|
|
24
20
|
|
|
25
|
-
export class
|
|
21
|
+
export class CoreDetailedScenario {
|
|
26
22
|
uvTorch?: boolean
|
|
27
23
|
frameOrientation?: number
|
|
28
24
|
faceExt?: boolean
|
|
@@ -37,9 +33,9 @@ export class DocumentReaderScenarioFull {
|
|
|
37
33
|
description?: string
|
|
38
34
|
manualCrop?: boolean
|
|
39
35
|
|
|
40
|
-
static fromJson(jsonObject?: any):
|
|
36
|
+
static fromJson(jsonObject?: any): CoreDetailedScenario {
|
|
41
37
|
if (jsonObject == null) return null
|
|
42
|
-
const result = new
|
|
38
|
+
const result = new CoreDetailedScenario
|
|
43
39
|
|
|
44
40
|
result.uvTorch = jsonObject["uvTorch"]
|
|
45
41
|
result.frameOrientation = jsonObject["frameOrientation"]
|
|
@@ -1039,6 +1035,21 @@ export class DocumentReaderCompletion {
|
|
|
1039
1035
|
}
|
|
1040
1036
|
}
|
|
1041
1037
|
|
|
1038
|
+
export class RfidNotificationCompletion {
|
|
1039
|
+
notification?: number
|
|
1040
|
+
value?: number
|
|
1041
|
+
|
|
1042
|
+
static fromJson(jsonObject?: any): RfidNotificationCompletion {
|
|
1043
|
+
if (jsonObject == null) return null
|
|
1044
|
+
const result = new RfidNotificationCompletion
|
|
1045
|
+
|
|
1046
|
+
result.notification = jsonObject["notification"]
|
|
1047
|
+
result.value = jsonObject["value"]
|
|
1048
|
+
|
|
1049
|
+
return result
|
|
1050
|
+
}
|
|
1051
|
+
}
|
|
1052
|
+
|
|
1042
1053
|
export class DocumentReaderException {
|
|
1043
1054
|
errorCode?: number
|
|
1044
1055
|
localizedMessage?: string
|
|
@@ -1214,6 +1225,143 @@ export class TAChallenge {
|
|
|
1214
1225
|
}
|
|
1215
1226
|
}
|
|
1216
1227
|
|
|
1228
|
+
export class DocumentReaderResultsStatus {
|
|
1229
|
+
overallStatus?: number
|
|
1230
|
+
optical?: number
|
|
1231
|
+
detailsOptical?: DetailsOptical
|
|
1232
|
+
rfid?: number
|
|
1233
|
+
detailsRFID?: DetailsRFID
|
|
1234
|
+
portrait?: number
|
|
1235
|
+
stopList?: number
|
|
1236
|
+
|
|
1237
|
+
static fromJson(jsonObject?: any): DocumentReaderResultsStatus {
|
|
1238
|
+
if (jsonObject == null) return null
|
|
1239
|
+
const result = new DocumentReaderResultsStatus
|
|
1240
|
+
|
|
1241
|
+
result.overallStatus = jsonObject["overallStatus"]
|
|
1242
|
+
result.optical = jsonObject["optical"]
|
|
1243
|
+
result.detailsOptical = DetailsOptical.fromJson(jsonObject["detailsOptical"])
|
|
1244
|
+
result.rfid = jsonObject["rfid"]
|
|
1245
|
+
result.detailsRFID = DetailsRFID.fromJson(jsonObject["detailsRFID"])
|
|
1246
|
+
result.portrait = jsonObject["portrait"]
|
|
1247
|
+
result.stopList = jsonObject["stopList"]
|
|
1248
|
+
|
|
1249
|
+
return result
|
|
1250
|
+
}
|
|
1251
|
+
}
|
|
1252
|
+
|
|
1253
|
+
export class DetailsOptical {
|
|
1254
|
+
overallStatus?: number
|
|
1255
|
+
mrz?: number
|
|
1256
|
+
text?: number
|
|
1257
|
+
docType?: number
|
|
1258
|
+
security?: number
|
|
1259
|
+
imageQA?: number
|
|
1260
|
+
expiry?: number
|
|
1261
|
+
vds?: number
|
|
1262
|
+
pagesCount?: number
|
|
1263
|
+
|
|
1264
|
+
static fromJson(jsonObject?: any): DetailsOptical {
|
|
1265
|
+
if (jsonObject == null) return null
|
|
1266
|
+
const result = new DetailsOptical
|
|
1267
|
+
|
|
1268
|
+
result.overallStatus = jsonObject["overallStatus"]
|
|
1269
|
+
result.mrz = jsonObject["mrz"]
|
|
1270
|
+
result.text = jsonObject["text"]
|
|
1271
|
+
result.docType = jsonObject["docType"]
|
|
1272
|
+
result.security = jsonObject["security"]
|
|
1273
|
+
result.imageQA = jsonObject["imageQA"]
|
|
1274
|
+
result.expiry = jsonObject["expiry"]
|
|
1275
|
+
result.vds = jsonObject["vds"]
|
|
1276
|
+
result.pagesCount = jsonObject["pagesCount"]
|
|
1277
|
+
|
|
1278
|
+
return result
|
|
1279
|
+
}
|
|
1280
|
+
}
|
|
1281
|
+
|
|
1282
|
+
export class DetailsRFID {
|
|
1283
|
+
pa?: number
|
|
1284
|
+
ca?: number
|
|
1285
|
+
aa?: number
|
|
1286
|
+
ta?: number
|
|
1287
|
+
bac?: number
|
|
1288
|
+
pace?: number
|
|
1289
|
+
overallStatus?: number
|
|
1290
|
+
|
|
1291
|
+
static fromJson(jsonObject?: any): DetailsRFID {
|
|
1292
|
+
if (jsonObject == null) return null
|
|
1293
|
+
const result = new DetailsRFID
|
|
1294
|
+
|
|
1295
|
+
result.pa = jsonObject["pa"]
|
|
1296
|
+
result.ca = jsonObject["ca"]
|
|
1297
|
+
result.aa = jsonObject["aa"]
|
|
1298
|
+
result.ta = jsonObject["ta"]
|
|
1299
|
+
result.bac = jsonObject["bac"]
|
|
1300
|
+
result.pace = jsonObject["pace"]
|
|
1301
|
+
result.overallStatus = jsonObject["overallStatus"]
|
|
1302
|
+
|
|
1303
|
+
return result
|
|
1304
|
+
}
|
|
1305
|
+
}
|
|
1306
|
+
|
|
1307
|
+
export class VDSNCData {
|
|
1308
|
+
type?: string
|
|
1309
|
+
version?: number
|
|
1310
|
+
issuingCountry?: string
|
|
1311
|
+
message?: any
|
|
1312
|
+
signatureAlgorithm?: string
|
|
1313
|
+
signature?: BytesData
|
|
1314
|
+
certificate?: BytesData
|
|
1315
|
+
certificateChain?: CertificateChain[]
|
|
1316
|
+
notifications?: number[]
|
|
1317
|
+
|
|
1318
|
+
static fromJson(jsonObject?: any): VDSNCData {
|
|
1319
|
+
if (jsonObject == null) return null
|
|
1320
|
+
const result = new VDSNCData
|
|
1321
|
+
|
|
1322
|
+
result.type = jsonObject["type"]
|
|
1323
|
+
result.version = jsonObject["version"]
|
|
1324
|
+
result.issuingCountry = jsonObject["issuingCountry"]
|
|
1325
|
+
result.message = jsonObject["message"]
|
|
1326
|
+
result.signatureAlgorithm = jsonObject["signatureAlgorithm"]
|
|
1327
|
+
result.signature = BytesData.fromJson(jsonObject["signature"])
|
|
1328
|
+
result.certificate = BytesData.fromJson(jsonObject["certificate"])
|
|
1329
|
+
result.certificateChain = []
|
|
1330
|
+
if (jsonObject["certificateChain"] != null) {
|
|
1331
|
+
for (const i in jsonObject["certificateChain"]) {
|
|
1332
|
+
result.certificateChain.push(CertificateChain.fromJson(jsonObject["certificateChain"][i]))
|
|
1333
|
+
}
|
|
1334
|
+
}
|
|
1335
|
+
result.notifications = []
|
|
1336
|
+
if (jsonObject["notifications"] != null) {
|
|
1337
|
+
for (const i in jsonObject["notifications"]) {
|
|
1338
|
+
result.notifications.push(jsonObject["notifications"][i])
|
|
1339
|
+
}
|
|
1340
|
+
}
|
|
1341
|
+
|
|
1342
|
+
return result
|
|
1343
|
+
}
|
|
1344
|
+
}
|
|
1345
|
+
|
|
1346
|
+
export class BytesData {
|
|
1347
|
+
data?: string
|
|
1348
|
+
length?: number
|
|
1349
|
+
status?: number
|
|
1350
|
+
type?: number
|
|
1351
|
+
|
|
1352
|
+
static fromJson(jsonObject?: any): BytesData {
|
|
1353
|
+
if (jsonObject == null) return null
|
|
1354
|
+
const result = new BytesData
|
|
1355
|
+
|
|
1356
|
+
result.data = jsonObject["data"]
|
|
1357
|
+
result.length = jsonObject["length"]
|
|
1358
|
+
result.status = jsonObject["status"]
|
|
1359
|
+
result.type = jsonObject["type"]
|
|
1360
|
+
|
|
1361
|
+
return result
|
|
1362
|
+
}
|
|
1363
|
+
}
|
|
1364
|
+
|
|
1217
1365
|
export class DocumentReaderResults {
|
|
1218
1366
|
chipPage?: number
|
|
1219
1367
|
overallResult?: number
|
|
@@ -1235,6 +1383,8 @@ export class DocumentReaderResults {
|
|
|
1235
1383
|
authenticityResult?: DocumentReaderAuthenticityResult
|
|
1236
1384
|
barcodeResult?: DocumentReaderBarcodeResult
|
|
1237
1385
|
documentType?: DocumentReaderDocumentType[]
|
|
1386
|
+
status?: DocumentReaderResultsStatus
|
|
1387
|
+
vdsncData?: VDSNCData
|
|
1238
1388
|
getTextFieldValueByType?({ fieldType, lcid = 0, source = -1, original = false }: { fieldType: number, lcid?: number, source?: number, original?: boolean }): string {
|
|
1239
1389
|
if (this.textResult == null)
|
|
1240
1390
|
return null
|
|
@@ -1399,6 +1549,8 @@ export class DocumentReaderResults {
|
|
|
1399
1549
|
result.documentType.push(DocumentReaderDocumentType.fromJson(jsonObject["documentType"][i]))
|
|
1400
1550
|
}
|
|
1401
1551
|
}
|
|
1552
|
+
result.status = DocumentReaderResultsStatus.fromJson(jsonObject["status"])
|
|
1553
|
+
result.vdsncData = VDSNCData.fromJson(jsonObject["vdsncData"])
|
|
1402
1554
|
|
|
1403
1555
|
return result
|
|
1404
1556
|
}
|
|
@@ -2002,6 +2154,10 @@ export const eRFID_CertificateType = {
|
|
|
2002
2154
|
CT_MLS: 4,
|
|
2003
2155
|
CT_DEV_LS: 5,
|
|
2004
2156
|
CT_DEF_LS: 6,
|
|
2157
|
+
CT_BLS: 7,
|
|
2158
|
+
CT_LDS2: 8,
|
|
2159
|
+
CT_BCS: 9,
|
|
2160
|
+
CT_BCSNC: 10,
|
|
2005
2161
|
}
|
|
2006
2162
|
|
|
2007
2163
|
export const eRFID_DataFile_Type = {
|
|
@@ -2085,165 +2241,173 @@ export const eRFID_DataFile_Type = {
|
|
|
2085
2241
|
DFT_SESSION: 701,
|
|
2086
2242
|
DFT_LOGDATA: 702,
|
|
2087
2243
|
DFT_CHIP_PROPERTIES: 703,
|
|
2244
|
+
DFT_SAM_DATA: 800,
|
|
2245
|
+
DFT_SAM_DATA_MAX: 832,
|
|
2246
|
+
DFT_VDS: 900,
|
|
2247
|
+
DFT_VDSNC: 901,
|
|
2088
2248
|
DFT_USERDEFINED: 1000,
|
|
2089
2249
|
|
|
2090
2250
|
getTranslation(value: number) {
|
|
2091
2251
|
switch (value) {
|
|
2092
|
-
case
|
|
2093
|
-
return "
|
|
2094
|
-
case
|
|
2095
|
-
return "EF.COM"
|
|
2096
|
-
case this.DFT_PASSPORT_DG1:
|
|
2252
|
+
case 0:
|
|
2253
|
+
return "DFT_UNSPECIFIED"
|
|
2254
|
+
case 1:
|
|
2097
2255
|
return "Machine Readable Zone (DG1)"
|
|
2098
|
-
case
|
|
2099
|
-
return "Document type" + " (DG1)"
|
|
2100
|
-
case this.DFT_DL_DG1:
|
|
2101
|
-
return "Text data elements (DG1)"
|
|
2102
|
-
case this.DFT_PASSPORT_DG2:
|
|
2256
|
+
case 2:
|
|
2103
2257
|
return "Biometry - Facial data (DG2)"
|
|
2104
|
-
case
|
|
2105
|
-
return "Issuing state" + " (DG2)"
|
|
2106
|
-
case this.DFT_DL_DG2:
|
|
2107
|
-
return "License holder information (DG2)"
|
|
2108
|
-
case this.DFT_PASSPORT_DG3:
|
|
2258
|
+
case 3:
|
|
2109
2259
|
return "Biometry - Fingerprint(s) (DG3)"
|
|
2110
|
-
case
|
|
2111
|
-
return "Date of expiry" + " (DG3)"
|
|
2112
|
-
case this.DFT_DL_DG3:
|
|
2113
|
-
return "Issuing authority details (DG3)"
|
|
2114
|
-
case this.DFT_PASSPORT_DG4:
|
|
2260
|
+
case 4:
|
|
2115
2261
|
return "Biometry - Iris Data (DG4)"
|
|
2116
|
-
case
|
|
2117
|
-
return "Given name" + " (DG4)"
|
|
2118
|
-
case this.DFT_DL_DG4:
|
|
2119
|
-
return "Portrait image (DG4)"
|
|
2120
|
-
case this.DFT_PASSPORT_DG5:
|
|
2262
|
+
case 5:
|
|
2121
2263
|
return "Portrait(s) (DG5)"
|
|
2122
|
-
case
|
|
2123
|
-
return "Surname/given name at birth" + " (DG5)"
|
|
2124
|
-
case this.DFT_DL_DG5:
|
|
2125
|
-
return "Signature / usual mark image (DG5)"
|
|
2126
|
-
case this.DFT_PASSPORT_DG6:
|
|
2264
|
+
case 6:
|
|
2127
2265
|
return "not defined (DG6)"
|
|
2128
|
-
case
|
|
2129
|
-
return "Pseudonym" + " (DG6)"
|
|
2130
|
-
case this.DFT_DL_DG6:
|
|
2131
|
-
return "Biometry - Facial data (DG6)"
|
|
2132
|
-
case this.DFT_PASSPORT_DG7:
|
|
2266
|
+
case 7:
|
|
2133
2267
|
return "Signature / usual mark image (DG7)"
|
|
2134
|
-
case
|
|
2135
|
-
return "Academic title" + " (DG7)"
|
|
2136
|
-
case this.DFT_DL_DG7:
|
|
2137
|
-
return "Biometry - Fingerprint(s) (DG7)"
|
|
2138
|
-
case this.DFT_PASSPORT_DG8:
|
|
2268
|
+
case 8:
|
|
2139
2269
|
return "not defined (DG8)"
|
|
2140
|
-
case
|
|
2141
|
-
return "Date of birth" + " (DG8)"
|
|
2142
|
-
case this.DFT_DL_DG8:
|
|
2143
|
-
return "Biometry - Iris Data (DG8)"
|
|
2144
|
-
case this.DFT_PASSPORT_DG9:
|
|
2270
|
+
case 9:
|
|
2145
2271
|
return "not defined (DG9)"
|
|
2146
|
-
case
|
|
2147
|
-
return "Place of birth" + " (DG9)"
|
|
2148
|
-
case this.DFT_DL_DG9:
|
|
2149
|
-
return "Biometry - Other (DG9)"
|
|
2150
|
-
case this.DFT_PASSPORT_DG10:
|
|
2151
|
-
return "not defined (DG10)"
|
|
2152
|
-
case this.DFT_ID_DG10:
|
|
2153
|
-
return "Nationality" + " (DG10)"
|
|
2154
|
-
case this.DFT_DL_DG10:
|
|
2272
|
+
case 10:
|
|
2155
2273
|
return "not defined (DG10)"
|
|
2156
|
-
case
|
|
2274
|
+
case 11:
|
|
2157
2275
|
return "Additional personal detail(s) (DG11)"
|
|
2158
|
-
case
|
|
2159
|
-
return "Sex" + " (DG11)"
|
|
2160
|
-
case this.DFT_DL_DG11:
|
|
2161
|
-
return "Optional domestic data (DG11)"
|
|
2162
|
-
case this.DFT_PASSPORT_DG12:
|
|
2276
|
+
case 12:
|
|
2163
2277
|
return "Additional document details (DG12)"
|
|
2164
|
-
case
|
|
2165
|
-
return "Optional details" + " (DG12)"
|
|
2166
|
-
case this.DFT_DL_DG12:
|
|
2167
|
-
return "Non-match alert (DG12)"
|
|
2168
|
-
case this.DFT_PASSPORT_DG13:
|
|
2278
|
+
case 13:
|
|
2169
2279
|
return "Optional detail(s) (DG13)"
|
|
2170
|
-
case
|
|
2171
|
-
return "Undefined" + " (DG13)"
|
|
2172
|
-
case this.DFT_DL_DG13:
|
|
2173
|
-
return "Active Authentication info (DG13)"
|
|
2174
|
-
case this.DFT_PASSPORT_DG14:
|
|
2175
|
-
return "EAC info (DG14)"
|
|
2176
|
-
case this.DFT_ID_DG14:
|
|
2177
|
-
return "Undefined" + " (DG14)"
|
|
2178
|
-
case this.DFT_DL_DG14:
|
|
2280
|
+
case 14:
|
|
2179
2281
|
return "EAC info (DG14)"
|
|
2180
|
-
case
|
|
2282
|
+
case 15:
|
|
2181
2283
|
return "Active Authentication info (DG15)"
|
|
2182
|
-
case
|
|
2183
|
-
return "Undefined" + " (DG15)"
|
|
2184
|
-
case this.DFT_PASSPORT_DG16:
|
|
2284
|
+
case 16:
|
|
2185
2285
|
return "Person(s) to notify (DG16)"
|
|
2186
|
-
case
|
|
2187
|
-
return "Undefined" + " (DG16)"
|
|
2188
|
-
case this.DFT_PASSPORT_DG17:
|
|
2286
|
+
case 17:
|
|
2189
2287
|
return "DG17"
|
|
2190
|
-
case
|
|
2191
|
-
return "Place of registration" + " (DG17)"
|
|
2192
|
-
case this.DFT_PASSPORT_DG18:
|
|
2288
|
+
case 18:
|
|
2193
2289
|
return "DG18"
|
|
2194
|
-
case
|
|
2195
|
-
return "Place of registration" + " (DG18)"
|
|
2196
|
-
case this.DFT_PASSPORT_DG19:
|
|
2290
|
+
case 19:
|
|
2197
2291
|
return "DG19"
|
|
2198
|
-
case
|
|
2199
|
-
return "Residence permit 1" + " (DG19)"
|
|
2200
|
-
case this.DFT_PASSPORT_DG20:
|
|
2292
|
+
case 20:
|
|
2201
2293
|
return "DG20"
|
|
2202
|
-
case
|
|
2203
|
-
return "
|
|
2204
|
-
case
|
|
2205
|
-
return "Optional details" + " (DG21)"
|
|
2206
|
-
case this.DFT_DL_SOD:
|
|
2294
|
+
case 21:
|
|
2295
|
+
return "EF.SOD"
|
|
2296
|
+
case 165:
|
|
2207
2297
|
return "EF.SOD"
|
|
2208
|
-
case
|
|
2298
|
+
case 22:
|
|
2209
2299
|
return "EF.CVCA"
|
|
2210
|
-
case
|
|
2211
|
-
return "
|
|
2212
|
-
case
|
|
2300
|
+
case 23:
|
|
2301
|
+
return "EF.COM"
|
|
2302
|
+
case 150:
|
|
2303
|
+
return "EF.COM"
|
|
2304
|
+
case 101:
|
|
2305
|
+
return "Document type" + " (DG1)"
|
|
2306
|
+
case 102:
|
|
2307
|
+
return "Issuing state" + " (DG2)"
|
|
2308
|
+
case 103:
|
|
2309
|
+
return "Date of expiry" + " (DG3)"
|
|
2310
|
+
case 104:
|
|
2311
|
+
return "Given name" + " (DG4)"
|
|
2312
|
+
case 105:
|
|
2313
|
+
return "Surname/given name at birth" + " (DG5)"
|
|
2314
|
+
case 106:
|
|
2315
|
+
return "Pseudonym" + " (DG6)"
|
|
2316
|
+
case 107:
|
|
2317
|
+
return "Academic title" + " (DG7)"
|
|
2318
|
+
case 108:
|
|
2319
|
+
return "Date of birth" + " (DG8)"
|
|
2320
|
+
case 109:
|
|
2321
|
+
return "Place of birth" + " (DG9)"
|
|
2322
|
+
case 110:
|
|
2323
|
+
return "Nationality" + " (DG10)"
|
|
2324
|
+
case 111:
|
|
2325
|
+
return "Sex" + " (DG11)"
|
|
2326
|
+
case 112:
|
|
2327
|
+
return "Optional details" + " (DG12)"
|
|
2328
|
+
case 113:
|
|
2329
|
+
return "Undefined" + " (DG13)"
|
|
2330
|
+
case 114:
|
|
2331
|
+
return "Undefined" + " (DG14)"
|
|
2332
|
+
case 115:
|
|
2333
|
+
return "Undefined" + " (DG15)"
|
|
2334
|
+
case 116:
|
|
2335
|
+
return "Undefined" + " (DG16)"
|
|
2336
|
+
case 117:
|
|
2337
|
+
return "Place of registration" + " (DG17)"
|
|
2338
|
+
case 118:
|
|
2339
|
+
return "Place of registration" + " (DG18)"
|
|
2340
|
+
case 119:
|
|
2341
|
+
return "Residence permit 1" + " (DG19)"
|
|
2342
|
+
case 120:
|
|
2343
|
+
return "Residence permit 2" + " (DG20)"
|
|
2344
|
+
case 121:
|
|
2345
|
+
return "Optional details" + " (DG21)"
|
|
2346
|
+
case 151:
|
|
2347
|
+
return "Text data elements (DG1)"
|
|
2348
|
+
case 152:
|
|
2349
|
+
return "License holder information (DG2)"
|
|
2350
|
+
case 153:
|
|
2351
|
+
return "Issuing authority details (DG3)"
|
|
2352
|
+
case 154:
|
|
2353
|
+
return "Portrait image (DG4)"
|
|
2354
|
+
case 155:
|
|
2355
|
+
return "Signature / usual mark image (DG5)"
|
|
2356
|
+
case 156:
|
|
2357
|
+
return "Biometry - Facial data (DG6)"
|
|
2358
|
+
case 157:
|
|
2359
|
+
return "Biometry - Fingerprint(s) (DG7)"
|
|
2360
|
+
case 158:
|
|
2361
|
+
return "Biometry - Iris Data (DG8)"
|
|
2362
|
+
case 159:
|
|
2363
|
+
return "Biometry - Other (DG9)"
|
|
2364
|
+
case 160:
|
|
2365
|
+
return "not defined (DG10)"
|
|
2366
|
+
case 161:
|
|
2367
|
+
return "Optional domestic data (DG11)"
|
|
2368
|
+
case 162:
|
|
2369
|
+
return "Non-match alert (DG12)"
|
|
2370
|
+
case 163:
|
|
2371
|
+
return "Active Authentication info (DG13)"
|
|
2372
|
+
case 164:
|
|
2373
|
+
return "EAC info (DG14)"
|
|
2374
|
+
case 166:
|
|
2375
|
+
return "DFT_DL_CE"
|
|
2376
|
+
case 167:
|
|
2377
|
+
return "DFT_DL_CVCA"
|
|
2378
|
+
case 200:
|
|
2213
2379
|
return "EF.CardAccess"
|
|
2214
|
-
case
|
|
2380
|
+
case 201:
|
|
2215
2381
|
return "EF.CardSecurity"
|
|
2216
|
-
case
|
|
2382
|
+
case 202:
|
|
2217
2383
|
return "EF.ChipSecurity"
|
|
2218
|
-
case
|
|
2219
|
-
return "
|
|
2220
|
-
case
|
|
2221
|
-
return "
|
|
2222
|
-
case
|
|
2384
|
+
case 300:
|
|
2385
|
+
return "MIFARE data"
|
|
2386
|
+
case 301:
|
|
2387
|
+
return "MIFARE validity"
|
|
2388
|
+
case 400:
|
|
2223
2389
|
return "DFT_ATR"
|
|
2224
|
-
case
|
|
2225
|
-
return "DFT_CHIP_PROPERTIES"
|
|
2226
|
-
case this.DFT_DEFECTLIST:
|
|
2227
|
-
return "DFT_DEFECTLIST"
|
|
2228
|
-
case this.DFT_DEVIATIONLIST:
|
|
2229
|
-
return "DFT_DEVIATIONLIST"
|
|
2230
|
-
case this.DFT_DL_CE:
|
|
2231
|
-
return "DFT_DL_CE"
|
|
2232
|
-
case this.DFT_DL_CVCA:
|
|
2233
|
-
return "DFT_DL_CVCA"
|
|
2234
|
-
case this.DFT_ESIGN_PK:
|
|
2390
|
+
case 500:
|
|
2235
2391
|
return "DFT_ESIGN_PK"
|
|
2236
|
-
case
|
|
2392
|
+
case 501:
|
|
2237
2393
|
return "DFT_ESIGN_SIGNEDDATA"
|
|
2238
|
-
case
|
|
2239
|
-
return "
|
|
2240
|
-
case
|
|
2394
|
+
case 600:
|
|
2395
|
+
return "Certificate"
|
|
2396
|
+
case 601:
|
|
2241
2397
|
return "DFT_MASTERLIST"
|
|
2242
|
-
case
|
|
2398
|
+
case 602:
|
|
2399
|
+
return "DFT_DEFECTLIST"
|
|
2400
|
+
case 603:
|
|
2401
|
+
return "DFT_DEVIATIONLIST"
|
|
2402
|
+
case 700:
|
|
2403
|
+
return "App directory"
|
|
2404
|
+
case 701:
|
|
2243
2405
|
return "DFT_SESSION"
|
|
2244
|
-
case
|
|
2245
|
-
return "
|
|
2246
|
-
case
|
|
2406
|
+
case 702:
|
|
2407
|
+
return "DFT_LOGDATA"
|
|
2408
|
+
case 703:
|
|
2409
|
+
return "DFT_CHIP_PROPERTIES"
|
|
2410
|
+
case 1000:
|
|
2247
2411
|
return "DFT_USERDEFINED"
|
|
2248
2412
|
default:
|
|
2249
2413
|
return value.toString()
|
|
@@ -2308,6 +2472,7 @@ export const eRFID_NotificationAndErrorCodes = {
|
|
|
2308
2472
|
RFID_ERROR_INVALID_PARAMETER: -2147418108,
|
|
2309
2473
|
RFID_ERROR_NOT_INITIALIZED: -2147418107,
|
|
2310
2474
|
RFID_Error_NotEnoughMemory: -2147418106,
|
|
2475
|
+
RFID_ERROR_NOT_ENOUGH_DATA: -2147418105,
|
|
2311
2476
|
RFID_ERROR_INVALID_DIRECTORY: -2147418104,
|
|
2312
2477
|
RFID_ERROR_UNKNOWN_COMMAND: -2147418103,
|
|
2313
2478
|
RFID_ERROR_FILE_IO_ERROR: -2147418102,
|
|
@@ -2386,11 +2551,25 @@ export const eRFID_NotificationAndErrorCodes = {
|
|
|
2386
2551
|
RFID_LAYER6_EXT_AUTH_FAILURE: -2046819576,
|
|
2387
2552
|
RFID_LAYER6_GENERAL_AUTH_FAILURE: -2046819575,
|
|
2388
2553
|
RFID_ERROR_FAILED: -1,
|
|
2554
|
+
RFID_ERROR_CODES_LAYER_34_NO_ERROR: -2080374784,
|
|
2555
|
+
RFID_ERROR_CODES_LAYER_34_TIMEOUT: -2080309248,
|
|
2556
|
+
RFID_ERROR_CODES_LAYER_34_COLLISION: -2080243712,
|
|
2557
|
+
RFID_ERROR_CODES_LAYER_34_CRC: -2080178176,
|
|
2558
|
+
RFID_ERROR_CODES_LAYER_34_DATA_INTEGRITY: -2080112640,
|
|
2559
|
+
RFID_ERROR_CODES_LAYER_34_DATA_LENGTH: -2080047104,
|
|
2560
|
+
RFID_ERROR_CODES_LAYER_34_RFU: -2079981568,
|
|
2561
|
+
RFID_ERROR_CODES_LAYER_34_COLLISION_TOO_MANY: -2079916032,
|
|
2562
|
+
RFID_ERROR_CODES_LAYER_34_PROTOCOL_B: -2079850496,
|
|
2563
|
+
RFID_ERROR_CODES_LAYER_34_DATA_CONTENTS: -2079784960,
|
|
2564
|
+
RFID_ERROR_CODES_LAYER_34_PROTOCOL: -2079719424,
|
|
2565
|
+
RFID_ERROR_CODES_LAYER_34_GLOBAL_TIMEOUT: -2079653888,
|
|
2566
|
+
RFID_ERROR_CODES_LAYER_34_MIFARE_AUTH: -2079588352,
|
|
2567
|
+
RFID_ERROR_CODES_LAYER_34_SAM_ERROR: -2079522816,
|
|
2568
|
+
RFID_ERROR_CODES_LAYER_34_SAM_COLLISION: -2079457280,
|
|
2569
|
+
RFID_ERROR_CODES_LAYER_34_SAM_ACKNOWLEDGE: -2079391744,
|
|
2389
2570
|
|
|
2390
2571
|
getTranslation(value: number) {
|
|
2391
2572
|
switch (value) {
|
|
2392
|
-
case this.RFID_ERROR_NO_ERROR:
|
|
2393
|
-
return "OK"
|
|
2394
2573
|
case -2147483647:
|
|
2395
2574
|
return "Error - ASN: Incorrect data"
|
|
2396
2575
|
case -2147483646:
|
|
@@ -2405,6 +2584,8 @@ export const eRFID_NotificationAndErrorCodes = {
|
|
|
2405
2584
|
return "Error - ASN Signed data: Version incorrect data"
|
|
2406
2585
|
case -2147483631:
|
|
2407
2586
|
return "Error - ASN Signed data: Digest algorithms incorrect data"
|
|
2587
|
+
case -2147483630:
|
|
2588
|
+
return "Error - ASN LDS object: Version info incorrect data"
|
|
2408
2589
|
case -2147483629:
|
|
2409
2590
|
return "Error - ASN LDS object: Incorrect data"
|
|
2410
2591
|
case -2147483628:
|
|
@@ -2413,8 +2594,6 @@ export const eRFID_NotificationAndErrorCodes = {
|
|
|
2413
2594
|
return "Error - ASN LDS object: Digest algorithm incorrect data"
|
|
2414
2595
|
case -2147483626:
|
|
2415
2596
|
return "Error - ASN LDS object: DG hashes incorrect data"
|
|
2416
|
-
case -2147483630:
|
|
2417
|
-
return "Error - ASN LDS object: Version info incorrect data"
|
|
2418
2597
|
case -2147483625:
|
|
2419
2598
|
return "Error - ASN Certificate: Incorrect data"
|
|
2420
2599
|
case -2147483624:
|
|
@@ -2459,10 +2638,10 @@ export const eRFID_NotificationAndErrorCodes = {
|
|
|
2459
2638
|
return "Error - ICAO Signer info: Unsupported signature algorithm"
|
|
2460
2639
|
case -2147483596:
|
|
2461
2640
|
return "Error - ICAO Signer info: Message digest error"
|
|
2462
|
-
case -2147483594:
|
|
2463
|
-
return "Error - ICAO Signer info: Signed attributes missed"
|
|
2464
2641
|
case -2147483595:
|
|
2465
2642
|
return "Error - Auth: Signer info cannot find certificate"
|
|
2643
|
+
case -2147483594:
|
|
2644
|
+
return "Error - ICAO Signer info: Signed attributes missed"
|
|
2466
2645
|
case -2147483568:
|
|
2467
2646
|
return "Error - Auth: Error"
|
|
2468
2647
|
case -2147483567:
|
|
@@ -2487,6 +2666,68 @@ export const eRFID_NotificationAndErrorCodes = {
|
|
|
2487
2666
|
return "Error - Auth: Signature check failed"
|
|
2488
2667
|
case -2147483536:
|
|
2489
2668
|
return "Error - DG: Wrong Tag"
|
|
2669
|
+
case -2147458430:
|
|
2670
|
+
return "LAYER6: Reading beyond EOF / Unexpected EOF"
|
|
2671
|
+
case -2147458429:
|
|
2672
|
+
return "LAYER6: PWD Deactivated"
|
|
2673
|
+
case -2147458112:
|
|
2674
|
+
return "LAYER6: PWD Blocked"
|
|
2675
|
+
case -2147458111:
|
|
2676
|
+
return "LAYER6: PWD Suspended"
|
|
2677
|
+
case -2147456637:
|
|
2678
|
+
return "LAYER6: PWD Blocked 2"
|
|
2679
|
+
case -2147456636:
|
|
2680
|
+
return "LAYER6: PWD Deactivated 2"
|
|
2681
|
+
case -2147456635:
|
|
2682
|
+
return "LAYER6: PWD Suspended 2"
|
|
2683
|
+
case -2147456384:
|
|
2684
|
+
return "LAYER6: Incorrect Params"
|
|
2685
|
+
case -2147456382:
|
|
2686
|
+
return "LAYER6: File selection failure / file not found"
|
|
2687
|
+
case -2147456376:
|
|
2688
|
+
return "LAYER6: No Reference Data"
|
|
2689
|
+
case -2147456256:
|
|
2690
|
+
return "LAYER6: Reading beyond EOF / Unexpected EOF"
|
|
2691
|
+
case -2147418112:
|
|
2692
|
+
return "RFID: Creation or connection to Graph Manager COM server failed"
|
|
2693
|
+
case -2147418111:
|
|
2694
|
+
return "RFID: No chip is detected"
|
|
2695
|
+
case -2147418110:
|
|
2696
|
+
return "RFID: Unavailable"
|
|
2697
|
+
case -2147418108:
|
|
2698
|
+
return "RFID: Invalid parameter in ExecuteCommand() call found"
|
|
2699
|
+
case -2147418107:
|
|
2700
|
+
return "RFID: Device is uninitialized"
|
|
2701
|
+
case -2147418106:
|
|
2702
|
+
return "RFID: Out of memory"
|
|
2703
|
+
case -2147418104:
|
|
2704
|
+
return "RFID: Invalid directory"
|
|
2705
|
+
case -2147418103:
|
|
2706
|
+
return "RFID: Unknown command"
|
|
2707
|
+
case -2147418102:
|
|
2708
|
+
return "RFID File: IO Error"
|
|
2709
|
+
case -2147418101:
|
|
2710
|
+
return "RFID: RFID is Busy"
|
|
2711
|
+
case -2147418100:
|
|
2712
|
+
return "RFID: Firmware need to be updated with newer version"
|
|
2713
|
+
case -2147352576:
|
|
2714
|
+
return "PCSC: Failed"
|
|
2715
|
+
case -2147352575:
|
|
2716
|
+
return "PCSC: Reader is unavailable"
|
|
2717
|
+
case -2147352574:
|
|
2718
|
+
return "PCSC: Card cannot be connected"
|
|
2719
|
+
case -2147352573:
|
|
2720
|
+
return "PCSC: Card is not connected"
|
|
2721
|
+
case -2147352572:
|
|
2722
|
+
return "PCSC: Operation is cancelled"
|
|
2723
|
+
case -2147352571:
|
|
2724
|
+
return "PCSC: Card Is Busy"
|
|
2725
|
+
case -2147352570:
|
|
2726
|
+
return "PCSC: Failed Smart Card"
|
|
2727
|
+
case -2147352560:
|
|
2728
|
+
return "PCSC: ExtLe Failed"
|
|
2729
|
+
case -2146409536:
|
|
2730
|
+
return "LAYER6: PWD Failed"
|
|
2490
2731
|
case -2130706400:
|
|
2491
2732
|
return "Error - PACE: Info Not Available"
|
|
2492
2733
|
case -2130706399:
|
|
@@ -2555,12 +2796,6 @@ export const eRFID_NotificationAndErrorCodes = {
|
|
|
2555
2796
|
return "Error - AA: Incorrect Trailer"
|
|
2556
2797
|
case -2130706345:
|
|
2557
2798
|
return "Error - AA: Unsupported Digest Algorithm"
|
|
2558
|
-
case -2130706320:
|
|
2559
|
-
return "Error - RI: Sector Key Cannot Find"
|
|
2560
|
-
case -2130706319:
|
|
2561
|
-
return "Error - RI: Sector Key Incorrect Data"
|
|
2562
|
-
case -2130706318:
|
|
2563
|
-
return "Error - RI: Sector Key Incomplete Data"
|
|
2564
2799
|
case -2130706336:
|
|
2565
2800
|
return "Error - CV Certificate: Missing mandatory data PK"
|
|
2566
2801
|
case -2130706334:
|
|
@@ -2571,6 +2806,12 @@ export const eRFID_NotificationAndErrorCodes = {
|
|
|
2571
2806
|
return "Error - CV Certificate: Private key unsupported"
|
|
2572
2807
|
case -2130706331:
|
|
2573
2808
|
return "Error - CV Certificate: Private key invalid params"
|
|
2809
|
+
case -2130706320:
|
|
2810
|
+
return "Error - RI: Sector Key Cannot Find"
|
|
2811
|
+
case -2130706319:
|
|
2812
|
+
return "Error - RI: Sector Key Incorrect Data"
|
|
2813
|
+
case -2130706318:
|
|
2814
|
+
return "Error - RI: Sector Key Incomplete Data"
|
|
2574
2815
|
case -2130706080:
|
|
2575
2816
|
return "Error - CV Certificate: Incorrect data"
|
|
2576
2817
|
case -2130706079:
|
|
@@ -2593,6 +2834,134 @@ export const eRFID_NotificationAndErrorCodes = {
|
|
|
2593
2834
|
return "Error - CV Certificate: Private key incorrect data"
|
|
2594
2835
|
case -2130706070:
|
|
2595
2836
|
return "Error - CV Certificate: Private key missing"
|
|
2837
|
+
case -2097152000:
|
|
2838
|
+
return "RFID: Not Performed"
|
|
2839
|
+
case -2097151999:
|
|
2840
|
+
return "RFID: Session Is Closed"
|
|
2841
|
+
case -2097151998:
|
|
2842
|
+
return "RFID: Terminal Unsupported Operation"
|
|
2843
|
+
case -2097151984:
|
|
2844
|
+
return "RFID: Terminal Type Unknown"
|
|
2845
|
+
case -2097151983:
|
|
2846
|
+
return "RFID: Terminal Type Bad Certificate"
|
|
2847
|
+
case -2097151982:
|
|
2848
|
+
return "RFID: Terminal Type Not Set"
|
|
2849
|
+
case -2097151981:
|
|
2850
|
+
return "RFID: Procedure Type Unknown"
|
|
2851
|
+
case -2097151980:
|
|
2852
|
+
return "RFID: Procedure Type Unsupported"
|
|
2853
|
+
case -2097151979:
|
|
2854
|
+
return "RFID: Procedure Type Not Set"
|
|
2855
|
+
case -2097151978:
|
|
2856
|
+
return "RFID: Access Key Unknown Type"
|
|
2857
|
+
case -2097151977:
|
|
2858
|
+
return "RFID: Access Key Unsupported SM Type"
|
|
2859
|
+
case -2097151976:
|
|
2860
|
+
return "RFID: Access Key Incorrect SM Type"
|
|
2861
|
+
case -2097151975:
|
|
2862
|
+
return "RFID: Access Key Restricted"
|
|
2863
|
+
case -2097151974:
|
|
2864
|
+
return "RFID: Access Key Incorrect Data"
|
|
2865
|
+
case -2097151973:
|
|
2866
|
+
return "RFID: Access Key Not Set"
|
|
2867
|
+
case -2097151972:
|
|
2868
|
+
return "RFID: Pwd Management Not Authorized"
|
|
2869
|
+
case -2097151968:
|
|
2870
|
+
return "RFID: Access Control UnknownType"
|
|
2871
|
+
case -2097151967:
|
|
2872
|
+
return "RFID: Requires SM"
|
|
2873
|
+
case -2097151966:
|
|
2874
|
+
return "RFID: Requires PACE"
|
|
2875
|
+
case -2097151965:
|
|
2876
|
+
return "RFID: Requires CA Keys"
|
|
2877
|
+
case -2097151964:
|
|
2878
|
+
return "RFID: Requires TA"
|
|
2879
|
+
case -2097151963:
|
|
2880
|
+
return "RFID: Requires CA"
|
|
2881
|
+
case -2097151962:
|
|
2882
|
+
return "RFID: Incorrect Option CA"
|
|
2883
|
+
case -2097151961:
|
|
2884
|
+
return "RFID: CA Failed"
|
|
2885
|
+
case -2097151960:
|
|
2886
|
+
return "RFID: TA Failed"
|
|
2887
|
+
case -2097151959:
|
|
2888
|
+
return "RFID: AA Failed"
|
|
2889
|
+
case -2097151958:
|
|
2890
|
+
return "RFID: RI Failed"
|
|
2891
|
+
case -2097151952:
|
|
2892
|
+
return "RFID: SO Signature Check Failed"
|
|
2893
|
+
case -2097151951:
|
|
2894
|
+
return "RFID: Hash Check Failed"
|
|
2895
|
+
case -2097151936:
|
|
2896
|
+
return "RFID: Invalid Aux Data Date Of Expiry"
|
|
2897
|
+
case -2097151935:
|
|
2898
|
+
return "RFID: Invalid Aux Data Date Of Birth"
|
|
2899
|
+
case -2097151934:
|
|
2900
|
+
return "RFID: Invalid Aux Data Community ID"
|
|
2901
|
+
case -2097151920:
|
|
2902
|
+
return "RFID: eSign Requires App Selection"
|
|
2903
|
+
case -2097151919:
|
|
2904
|
+
return "RFID: eSign PIN Not Set"
|
|
2905
|
+
case -2097151918:
|
|
2906
|
+
return "RFID: eSign PIN Not Verified"
|
|
2907
|
+
case -2097151904:
|
|
2908
|
+
return "RFID: Incorrect data"
|
|
2909
|
+
case -2097086464:
|
|
2910
|
+
return "RFID File: Not Enough Data"
|
|
2911
|
+
case -2097020928:
|
|
2912
|
+
return "RFID File: Incorrect Data"
|
|
2913
|
+
case -2096955392:
|
|
2914
|
+
return "RFID File: Unexpected Data"
|
|
2915
|
+
case -2096889856:
|
|
2916
|
+
return "RFID File: Contents Unexpected Data"
|
|
2917
|
+
case -2096824320:
|
|
2918
|
+
return "RFID File: Wrong Tag"
|
|
2919
|
+
case -2096758784:
|
|
2920
|
+
return "RFID File: Cannot Use Data"
|
|
2921
|
+
case -2096693248:
|
|
2922
|
+
return "RFID File: Cannot Read Data"
|
|
2923
|
+
case -2096627712:
|
|
2924
|
+
return "RFID File: Access Denied"
|
|
2925
|
+
case -2046820352:
|
|
2926
|
+
return "LAYER6: Secure Messaging was not activated"
|
|
2927
|
+
case -2046820351:
|
|
2928
|
+
return "LAYER6: ISO7816_A_03 \"Application selection failure\""
|
|
2929
|
+
case -2046820096:
|
|
2930
|
+
return "LAYER6: ISO7816_B_01 \"Mutual authentication MAC failure\""
|
|
2931
|
+
case -2046820095:
|
|
2932
|
+
return "LAYER6: ISO7816_B_02 \"Mutual authentication encryption failure\""
|
|
2933
|
+
case -2046820094:
|
|
2934
|
+
return "LAYER6: ISO7816_B_03 \"Mutual authentication failure\""
|
|
2935
|
+
case -2046819840:
|
|
2936
|
+
return "LAYER6: SM failure – MAC missing"
|
|
2937
|
+
case -2046819839:
|
|
2938
|
+
return "LAYER6: SM failure – cryptogram missing"
|
|
2939
|
+
case -2046819838:
|
|
2940
|
+
return "LAYER6: SM failure – secured status bytes missing"
|
|
2941
|
+
case -2046819837:
|
|
2942
|
+
return "LAYER6: SM failure – incorrect MAC"
|
|
2943
|
+
case -2046819836:
|
|
2944
|
+
return "LAYER6: SM failure – incorrect cryptogram"
|
|
2945
|
+
case -2046819584:
|
|
2946
|
+
return "LAYER6: Not TLV response data"
|
|
2947
|
+
case -2046819583:
|
|
2948
|
+
return "LAYER6: Wrong data length (APDU_INS_GET_CHALLENGE)"
|
|
2949
|
+
case -2046819582:
|
|
2950
|
+
return "LAYER6: APDU_INS_INTERNAL_AUTHENTICATE failure"
|
|
2951
|
+
case -2046819581:
|
|
2952
|
+
return "LAYER6: MSE:Set KAT failure"
|
|
2953
|
+
case -2046819580:
|
|
2954
|
+
return "LAYER6: MSE:Set DST failure"
|
|
2955
|
+
case -2046819579:
|
|
2956
|
+
return "LAYER6: PSO CERTIFICATE failure"
|
|
2957
|
+
case -2046819578:
|
|
2958
|
+
return "LAYER6: MSE:Set AT failure"
|
|
2959
|
+
case -2046819577:
|
|
2960
|
+
return "LAYER6: GET CHALLENGE failure"
|
|
2961
|
+
case -2046819576:
|
|
2962
|
+
return "LAYER6: APDU_INS_EXTERNAL_AUTHENTICATE (External Authentication) failure"
|
|
2963
|
+
case -2046819575:
|
|
2964
|
+
return "LAYER6: General Authenticity Failure"
|
|
2596
2965
|
case -1879048191:
|
|
2597
2966
|
return "Notification - ASN certificate: Incorrect version"
|
|
2598
2967
|
case -1879048190:
|
|
@@ -2615,128 +2984,6 @@ export const eRFID_NotificationAndErrorCodes = {
|
|
|
2615
2984
|
return "Notification - ASN certificate: Incorrect issuer subject DS"
|
|
2616
2985
|
case -1879048169:
|
|
2617
2986
|
return "Notification - ASN certificate: Duplicating extensions"
|
|
2618
|
-
case -1879047680:
|
|
2619
|
-
return "Notification - ICAO certificate: Version missed"
|
|
2620
|
-
case -1879047679:
|
|
2621
|
-
return "Notification - ICAO certificate: Version incorrect"
|
|
2622
|
-
case -1879047678:
|
|
2623
|
-
return "Notification - ICAO certificate: Issuer country missed"
|
|
2624
|
-
case -1879047677:
|
|
2625
|
-
return "Notification - ICAO certificate: Issuer common name missed"
|
|
2626
|
-
case -1879047676:
|
|
2627
|
-
return "Notification - ICAO certificate: Issuer country non-compliant"
|
|
2628
|
-
case -1879047675:
|
|
2629
|
-
return "Notification - ICAO certificate: Subject country missed"
|
|
2630
|
-
case -1879047674:
|
|
2631
|
-
return "Notification - ICAO certificate: Subject common name missed"
|
|
2632
|
-
case -1879047673:
|
|
2633
|
-
return "Notification - ICAO certificate: Subject country non-compliant"
|
|
2634
|
-
case -1879047672:
|
|
2635
|
-
return "Notification - ICAO certificate: Using non-compliant data"
|
|
2636
|
-
case -1879047671:
|
|
2637
|
-
return "Notification - ICAO certificate: Unsupported signature algorithm"
|
|
2638
|
-
case -1879047670:
|
|
2639
|
-
return "Notification - ICAO certificate: Unsupported public key algorithm"
|
|
2640
|
-
case -1879047669:
|
|
2641
|
-
return "Notification - ICAO certificate: Missed extensions"
|
|
2642
|
-
case -1879047668:
|
|
2643
|
-
return "Notification - ICAO certificate: Validity"
|
|
2644
|
-
case -1879047667:
|
|
2645
|
-
return "Notification - ICAO certificate extension: Using non-compliant data"
|
|
2646
|
-
case -1879047666:
|
|
2647
|
-
return "Notification - ICAO certificate extension: Key usage missed"
|
|
2648
|
-
case -1879047665:
|
|
2649
|
-
return "Notification - ICAO certificate extension: Key usage not critical"
|
|
2650
|
-
case -1879047664:
|
|
2651
|
-
return "Notification - ICAO certificate extension: Ext key usage incorrect data"
|
|
2652
|
-
case -1879047663:
|
|
2653
|
-
return "Notification - ICAO certificate extension: Basic constraints missed"
|
|
2654
|
-
case -1879047662:
|
|
2655
|
-
return "Notification - ICAO certificate extension: Basic constraints incorrect usage 1"
|
|
2656
|
-
case -1879047661:
|
|
2657
|
-
return "Notification - ICAO certificate extension: Basic constraints incorrect usage 2"
|
|
2658
|
-
case -1879047660:
|
|
2659
|
-
return "Notification - ICAO certificate extension: Basic constraints not critical"
|
|
2660
|
-
case -1879047659:
|
|
2661
|
-
return "Notification - ICAO certificate extension: Basic constraints incorrect data"
|
|
2662
|
-
case -1879047658:
|
|
2663
|
-
return "Notification - ICAO certificate extension: Basic constraints path LenC missed"
|
|
2664
|
-
case -1879047657:
|
|
2665
|
-
return "Notification - ICAO certificate extension: Basic constraints path LenC incorrect"
|
|
2666
|
-
case -1879047656:
|
|
2667
|
-
return "Notification - ICAO certificate extension: Ext key usage not critical"
|
|
2668
|
-
case -1879047655:
|
|
2669
|
-
return "Notification - ICAO certificate extension: Ext key usage incorrect usage"
|
|
2670
|
-
case -1879047654:
|
|
2671
|
-
return "Notification - ICAO certificate extension: Ext key usage incorrect data"
|
|
2672
|
-
case -1879047653:
|
|
2673
|
-
return "Notification - ICAO certificate extension Auth key: ID missed"
|
|
2674
|
-
case -1879047652:
|
|
2675
|
-
return "Notification - ICAO certificate extension Auth key: Incorrect data"
|
|
2676
|
-
case -1879047651:
|
|
2677
|
-
return "Notification - ICAO certificate extension Auth key: Key ID missed"
|
|
2678
|
-
case -1879047650:
|
|
2679
|
-
return "Notification - ICAO certificate extension: Subject key ID missed"
|
|
2680
|
-
case -1879047649:
|
|
2681
|
-
return "Notification - ICAO certificate extension: Subject key ID incorrect data"
|
|
2682
|
-
case -1879047648:
|
|
2683
|
-
return "Notification - ICAO certificate extension: Private key UP missed"
|
|
2684
|
-
case -1879047647:
|
|
2685
|
-
return "Notification - ICAO certificate extension: Private key UP incorrect data"
|
|
2686
|
-
case -1879047646:
|
|
2687
|
-
return "Notification - ICAO certificate extension: Private key UP empty"
|
|
2688
|
-
case -1879047645:
|
|
2689
|
-
return "Notification - ICAO certificate extension: Subject alt name missed"
|
|
2690
|
-
case -1879047644:
|
|
2691
|
-
return "Notification - ICAO certificate extension: Subject alt name incorrect data"
|
|
2692
|
-
case -1879047643:
|
|
2693
|
-
return "Notification - ICAO certificate extension: Subject alt name empty"
|
|
2694
|
-
case -1879047642:
|
|
2695
|
-
return "Notification - ICAO certificate extension: Subject alt name non-compliant"
|
|
2696
|
-
case -1879047639:
|
|
2697
|
-
return "Notification - ICAO certificate extension: Subject alt name DN empty"
|
|
2698
|
-
case -1879047638:
|
|
2699
|
-
return "Notification - ICAO certificate extension: Subject alt name DN incorrect"
|
|
2700
|
-
case -1879047637:
|
|
2701
|
-
return "Notification - ICAO certificate extension: Subject alt name DN non-compliant"
|
|
2702
|
-
case -1879047636:
|
|
2703
|
-
return "Notification - ICAO certificate extension: Issuer alt name missed"
|
|
2704
|
-
case -1879047635:
|
|
2705
|
-
return "Notification - ICAO certificate extension: Issuer alt name incorrect data"
|
|
2706
|
-
case -1879047634:
|
|
2707
|
-
return "Notification - ICAO certificate extension: Issuer alt name empty"
|
|
2708
|
-
case -1879047633:
|
|
2709
|
-
return "Notification - ICAO certificate extension: Issuer alt name non-compliant"
|
|
2710
|
-
case -1879047630:
|
|
2711
|
-
return "Notification - ICAO certificate extension: Issuer alt name DN empty"
|
|
2712
|
-
case -1879047629:
|
|
2713
|
-
return "Notification - ICAO certificate extension: Issuer alt name DN incorrect"
|
|
2714
|
-
case -1879047628:
|
|
2715
|
-
return "Notification - ICAO certificate extension: Issuer alt name DN non-compliant"
|
|
2716
|
-
case -1879047627:
|
|
2717
|
-
return "Notification - ICAO certificate extension Doc type list: Missed"
|
|
2718
|
-
case -1879047626:
|
|
2719
|
-
return "Notification - ICAO certificate extension Doc type list: Incorrect data"
|
|
2720
|
-
case -1879047625:
|
|
2721
|
-
return "Notification - ICAO certificate extension Doc type list: Version"
|
|
2722
|
-
case -1879047624:
|
|
2723
|
-
return "Notification - ICAO certificate extension Doc type list: Doc types"
|
|
2724
|
-
case -1879047623:
|
|
2725
|
-
return "Notification - ICAO certificate extension Doc type list: Doc types empty"
|
|
2726
|
-
case -1879047622:
|
|
2727
|
-
return "Notification - ICAO certificate extension: Dert policies incorrect data"
|
|
2728
|
-
case -1879047621:
|
|
2729
|
-
return "Notification - ICAO certificate extension: Cert policies empty"
|
|
2730
|
-
case -1879047620:
|
|
2731
|
-
return "Notification - ICAO certificate extension: Cert policies policy ID missed"
|
|
2732
|
-
case -1879047619:
|
|
2733
|
-
return "Notification - ICAO certificate extension: CRL dist point missed"
|
|
2734
|
-
case -1879047618:
|
|
2735
|
-
return "Notification - ICAO certificate extension: CRL dist point incorrect data"
|
|
2736
|
-
case -1879047617:
|
|
2737
|
-
return "Notification - ICAO certificate extension: CRL dist point empty"
|
|
2738
|
-
case -1879047616:
|
|
2739
|
-
return "Notification - ICAO certificate extension: CRL dist point point missed"
|
|
2740
2987
|
case -1879048160:
|
|
2741
2988
|
return "Notification - ICAO COM: LDS version incorrect"
|
|
2742
2989
|
case -1879048159:
|
|
@@ -2761,22 +3008,12 @@ export const eRFID_NotificationAndErrorCodes = {
|
|
|
2761
3008
|
return "Notification - ICAO application: Unicode version inconsistent"
|
|
2762
3009
|
case -1879047936:
|
|
2763
3010
|
return "Notification - ASN signed data: OID incorrect"
|
|
2764
|
-
case -1879047776:
|
|
2765
|
-
return "Notification - ASN signed data: Version incorrect"
|
|
2766
3011
|
case -1879047935:
|
|
2767
3012
|
return "Notification - ICAO signed data: Version incorrect"
|
|
2768
3013
|
case -1879047934:
|
|
2769
3014
|
return "Notification - ICAO signed data: Digest algorithms empty"
|
|
2770
3015
|
case -1879047933:
|
|
2771
3016
|
return "Notification - ICAO signed data: Digest algorithms unsupported"
|
|
2772
|
-
case -1879047927:
|
|
2773
|
-
return "Notification - ICAO signed data: Signer infos multiple entries"
|
|
2774
|
-
case -1879047760:
|
|
2775
|
-
return "Notification - ICAO signed data: Certificates missed"
|
|
2776
|
-
case -1879047759:
|
|
2777
|
-
return "Notification - ICAO signed data: Certificates empty"
|
|
2778
|
-
case -1879047758:
|
|
2779
|
-
return "Notification - ICAO signed data: CRLs incorrect usage"
|
|
2780
3017
|
case -1879047932:
|
|
2781
3018
|
return "Notification - ICAO LDS object: Incorrect content OID"
|
|
2782
3019
|
case -1879047931:
|
|
@@ -2787,8 +3024,8 @@ export const eRFID_NotificationAndErrorCodes = {
|
|
|
2787
3024
|
return "Notification - ICAO LDS object: DG hash extra"
|
|
2788
3025
|
case -1879047928:
|
|
2789
3026
|
return "Notification - ICAO LDS object: Version incorrect"
|
|
2790
|
-
case -
|
|
2791
|
-
return "Notification - ICAO
|
|
3027
|
+
case -1879047927:
|
|
3028
|
+
return "Notification - ICAO signed data: Signer infos multiple entries"
|
|
2792
3029
|
case -1879047926:
|
|
2793
3030
|
return "Notification - ASN signer info: Version incorrect"
|
|
2794
3031
|
case -1879047925:
|
|
@@ -2807,12 +3044,6 @@ export const eRFID_NotificationAndErrorCodes = {
|
|
|
2807
3044
|
return "Notification - ASN signer info: Content type attr data"
|
|
2808
3045
|
case -1879047918:
|
|
2809
3046
|
return "Notification - ASN signer info: Content type attr value"
|
|
2810
|
-
case -1879047909:
|
|
2811
|
-
return "Notification - ASN signer info: Signing time attr missing"
|
|
2812
|
-
case -1879047908:
|
|
2813
|
-
return "Notification - ASN signer info: Signing time attr data"
|
|
2814
|
-
case -1879047907:
|
|
2815
|
-
return "Notification - ASN signer info: Signing time attr value"
|
|
2816
3047
|
case -1879047915:
|
|
2817
3048
|
return "Notification - Auth signer info: Certificate validity"
|
|
2818
3049
|
case -1879047914:
|
|
@@ -2825,36 +3056,144 @@ export const eRFID_NotificationAndErrorCodes = {
|
|
|
2825
3056
|
return "Notification - Auth signer info: Certificate signature invalid"
|
|
2826
3057
|
case -1879047910:
|
|
2827
3058
|
return "Notification: Unsupported image format"
|
|
2828
|
-
case
|
|
2829
|
-
return "Notification -
|
|
2830
|
-
case
|
|
2831
|
-
return "Notification -
|
|
2832
|
-
case
|
|
2833
|
-
return "Notification -
|
|
2834
|
-
case
|
|
2835
|
-
return "Notification -
|
|
2836
|
-
case
|
|
2837
|
-
return "Notification -
|
|
2838
|
-
case
|
|
2839
|
-
return "Notification -
|
|
2840
|
-
case
|
|
2841
|
-
return "Notification -
|
|
2842
|
-
case
|
|
2843
|
-
return "Notification -
|
|
2844
|
-
case
|
|
2845
|
-
return "Notification -
|
|
2846
|
-
case
|
|
2847
|
-
return "Notification -
|
|
2848
|
-
case
|
|
2849
|
-
return "Notification -
|
|
2850
|
-
case
|
|
2851
|
-
return "Notification -
|
|
2852
|
-
case
|
|
2853
|
-
return "Notification -
|
|
2854
|
-
case
|
|
2855
|
-
return "Notification -
|
|
2856
|
-
case
|
|
2857
|
-
return "Notification -
|
|
3059
|
+
case -1879047909:
|
|
3060
|
+
return "Notification - ASN signer info: Signing time attr missing"
|
|
3061
|
+
case -1879047908:
|
|
3062
|
+
return "Notification - ASN signer info: Signing time attr data"
|
|
3063
|
+
case -1879047907:
|
|
3064
|
+
return "Notification - ASN signer info: Signing time attr value"
|
|
3065
|
+
case -1879047776:
|
|
3066
|
+
return "Notification - ASN signed data: Version incorrect"
|
|
3067
|
+
case -1879047760:
|
|
3068
|
+
return "Notification - ICAO signed data: Certificates missed"
|
|
3069
|
+
case -1879047759:
|
|
3070
|
+
return "Notification - ICAO signed data: Certificates empty"
|
|
3071
|
+
case -1879047758:
|
|
3072
|
+
return "Notification - ICAO signed data: CRLs incorrect usage"
|
|
3073
|
+
case -1879047744:
|
|
3074
|
+
return "Notification - ICAO master list: Version incorrect"
|
|
3075
|
+
case -1879047680:
|
|
3076
|
+
return "Notification - ICAO certificate: Version missed"
|
|
3077
|
+
case -1879047679:
|
|
3078
|
+
return "Notification - ICAO certificate: Version incorrect"
|
|
3079
|
+
case -1879047678:
|
|
3080
|
+
return "Notification - ICAO certificate: Issuer country missed"
|
|
3081
|
+
case -1879047677:
|
|
3082
|
+
return "Notification - ICAO certificate: Issuer common name missed"
|
|
3083
|
+
case -1879047676:
|
|
3084
|
+
return "Notification - ICAO certificate: Issuer country non-compliant"
|
|
3085
|
+
case -1879047675:
|
|
3086
|
+
return "Notification - ICAO certificate: Subject country missed"
|
|
3087
|
+
case -1879047674:
|
|
3088
|
+
return "Notification - ICAO certificate: Subject common name missed"
|
|
3089
|
+
case -1879047673:
|
|
3090
|
+
return "Notification - ICAO certificate: Subject country non-compliant"
|
|
3091
|
+
case -1879047672:
|
|
3092
|
+
return "Notification - ICAO certificate: Using non-compliant data"
|
|
3093
|
+
case -1879047671:
|
|
3094
|
+
return "Notification - ICAO certificate: Unsupported signature algorithm"
|
|
3095
|
+
case -1879047670:
|
|
3096
|
+
return "Notification - ICAO certificate: Unsupported public key algorithm"
|
|
3097
|
+
case -1879047669:
|
|
3098
|
+
return "Notification - ICAO certificate: Missed extensions"
|
|
3099
|
+
case -1879047668:
|
|
3100
|
+
return "Notification - ICAO certificate: Validity"
|
|
3101
|
+
case -1879047667:
|
|
3102
|
+
return "Notification - ICAO certificate extension: Using non-compliant data"
|
|
3103
|
+
case -1879047666:
|
|
3104
|
+
return "Notification - ICAO certificate extension: Key usage missed"
|
|
3105
|
+
case -1879047665:
|
|
3106
|
+
return "Notification - ICAO certificate extension: Key usage not critical"
|
|
3107
|
+
case -1879047664:
|
|
3108
|
+
return "Notification - ICAO certificate extension: Ext key usage incorrect data"
|
|
3109
|
+
case -1879047663:
|
|
3110
|
+
return "Notification - ICAO certificate extension: Basic constraints missed"
|
|
3111
|
+
case -1879047662:
|
|
3112
|
+
return "Notification - ICAO certificate extension: Basic constraints incorrect usage 1"
|
|
3113
|
+
case -1879047661:
|
|
3114
|
+
return "Notification - ICAO certificate extension: Basic constraints incorrect usage 2"
|
|
3115
|
+
case -1879047660:
|
|
3116
|
+
return "Notification - ICAO certificate extension: Basic constraints not critical"
|
|
3117
|
+
case -1879047659:
|
|
3118
|
+
return "Notification - ICAO certificate extension: Basic constraints incorrect data"
|
|
3119
|
+
case -1879047658:
|
|
3120
|
+
return "Notification - ICAO certificate extension: Basic constraints path LenC missed"
|
|
3121
|
+
case -1879047657:
|
|
3122
|
+
return "Notification - ICAO certificate extension: Basic constraints path LenC incorrect"
|
|
3123
|
+
case -1879047656:
|
|
3124
|
+
return "Notification - ICAO certificate extension: Ext key usage not critical"
|
|
3125
|
+
case -1879047655:
|
|
3126
|
+
return "Notification - ICAO certificate extension: Ext key usage incorrect usage"
|
|
3127
|
+
case -1879047654:
|
|
3128
|
+
return "Notification - ICAO certificate extension: Ext key usage incorrect data"
|
|
3129
|
+
case -1879047653:
|
|
3130
|
+
return "Notification - ICAO certificate extension Auth key: ID missed"
|
|
3131
|
+
case -1879047652:
|
|
3132
|
+
return "Notification - ICAO certificate extension Auth key: Incorrect data"
|
|
3133
|
+
case -1879047651:
|
|
3134
|
+
return "Notification - ICAO certificate extension Auth key: Key ID missed"
|
|
3135
|
+
case -1879047650:
|
|
3136
|
+
return "Notification - ICAO certificate extension: Subject key ID missed"
|
|
3137
|
+
case -1879047649:
|
|
3138
|
+
return "Notification - ICAO certificate extension: Subject key ID incorrect data"
|
|
3139
|
+
case -1879047648:
|
|
3140
|
+
return "Notification - ICAO certificate extension: Private key UP missed"
|
|
3141
|
+
case -1879047647:
|
|
3142
|
+
return "Notification - ICAO certificate extension: Private key UP incorrect data"
|
|
3143
|
+
case -1879047646:
|
|
3144
|
+
return "Notification - ICAO certificate extension: Private key UP empty"
|
|
3145
|
+
case -1879047645:
|
|
3146
|
+
return "Notification - ICAO certificate extension: Subject alt name missed"
|
|
3147
|
+
case -1879047644:
|
|
3148
|
+
return "Notification - ICAO certificate extension: Subject alt name incorrect data"
|
|
3149
|
+
case -1879047643:
|
|
3150
|
+
return "Notification - ICAO certificate extension: Subject alt name empty"
|
|
3151
|
+
case -1879047642:
|
|
3152
|
+
return "Notification - ICAO certificate extension: Subject alt name non-compliant"
|
|
3153
|
+
case -1879047639:
|
|
3154
|
+
return "Notification - ICAO certificate extension: Subject alt name DN empty"
|
|
3155
|
+
case -1879047638:
|
|
3156
|
+
return "Notification - ICAO certificate extension: Subject alt name DN incorrect"
|
|
3157
|
+
case -1879047637:
|
|
3158
|
+
return "Notification - ICAO certificate extension: Subject alt name DN non-compliant"
|
|
3159
|
+
case -1879047636:
|
|
3160
|
+
return "Notification - ICAO certificate extension: Issuer alt name missed"
|
|
3161
|
+
case -1879047635:
|
|
3162
|
+
return "Notification - ICAO certificate extension: Issuer alt name incorrect data"
|
|
3163
|
+
case -1879047634:
|
|
3164
|
+
return "Notification - ICAO certificate extension: Issuer alt name empty"
|
|
3165
|
+
case -1879047633:
|
|
3166
|
+
return "Notification - ICAO certificate extension: Issuer alt name non-compliant"
|
|
3167
|
+
case -1879047630:
|
|
3168
|
+
return "Notification - ICAO certificate extension: Issuer alt name DN empty"
|
|
3169
|
+
case -1879047629:
|
|
3170
|
+
return "Notification - ICAO certificate extension: Issuer alt name DN incorrect"
|
|
3171
|
+
case -1879047628:
|
|
3172
|
+
return "Notification - ICAO certificate extension: Issuer alt name DN non-compliant"
|
|
3173
|
+
case -1879047627:
|
|
3174
|
+
return "Notification - ICAO certificate extension Doc type list: Missed"
|
|
3175
|
+
case -1879047626:
|
|
3176
|
+
return "Notification - ICAO certificate extension Doc type list: Incorrect data"
|
|
3177
|
+
case -1879047625:
|
|
3178
|
+
return "Notification - ICAO certificate extension Doc type list: Version"
|
|
3179
|
+
case -1879047624:
|
|
3180
|
+
return "Notification - ICAO certificate extension Doc type list: Doc types"
|
|
3181
|
+
case -1879047623:
|
|
3182
|
+
return "Notification - ICAO certificate extension Doc type list: Doc types empty"
|
|
3183
|
+
case -1879047622:
|
|
3184
|
+
return "Notification - ICAO certificate extension: Dert policies incorrect data"
|
|
3185
|
+
case -1879047621:
|
|
3186
|
+
return "Notification - ICAO certificate extension: Cert policies empty"
|
|
3187
|
+
case -1879047620:
|
|
3188
|
+
return "Notification - ICAO certificate extension: Cert policies policy ID missed"
|
|
3189
|
+
case -1879047619:
|
|
3190
|
+
return "Notification - ICAO certificate extension: CRL dist point missed"
|
|
3191
|
+
case -1879047618:
|
|
3192
|
+
return "Notification - ICAO certificate extension: CRL dist point incorrect data"
|
|
3193
|
+
case -1879047617:
|
|
3194
|
+
return "Notification - ICAO certificate extension: CRL dist point empty"
|
|
3195
|
+
case -1879047616:
|
|
3196
|
+
return "Notification - ICAO certificate extension: CRL dist point point missed"
|
|
2858
3197
|
case -1878982656:
|
|
2859
3198
|
return "Notification - Biometrics: Format owner missing"
|
|
2860
3199
|
case -1878917120:
|
|
@@ -2983,200 +3322,42 @@ export const eRFID_NotificationAndErrorCodes = {
|
|
|
2983
3322
|
return "Notification - Auth ML signer info: Certificate revoked"
|
|
2984
3323
|
case -1845493479:
|
|
2985
3324
|
return "Notification - Auth ML signer info: Certificate signature invalid"
|
|
2986
|
-
case
|
|
2987
|
-
return "RFID: Requested operation is already done"
|
|
2988
|
-
case this.RFID_ERROR_FAILED:
|
|
3325
|
+
case -1:
|
|
2989
3326
|
return "RFID: Failed"
|
|
2990
|
-
case
|
|
2991
|
-
return "
|
|
2992
|
-
case
|
|
2993
|
-
return "RFID:
|
|
2994
|
-
case
|
|
2995
|
-
return "
|
|
2996
|
-
case
|
|
2997
|
-
return "
|
|
2998
|
-
case
|
|
2999
|
-
return "
|
|
3000
|
-
case
|
|
3001
|
-
return "
|
|
3002
|
-
case
|
|
3003
|
-
return "
|
|
3004
|
-
case
|
|
3005
|
-
return "
|
|
3006
|
-
case
|
|
3007
|
-
return "
|
|
3008
|
-
case
|
|
3009
|
-
return "
|
|
3010
|
-
case
|
|
3011
|
-
return "
|
|
3012
|
-
case
|
|
3013
|
-
return "
|
|
3014
|
-
case
|
|
3015
|
-
return "
|
|
3016
|
-
case
|
|
3017
|
-
return "
|
|
3018
|
-
case
|
|
3019
|
-
return "
|
|
3020
|
-
case
|
|
3021
|
-
return "
|
|
3022
|
-
case
|
|
3023
|
-
return "
|
|
3024
|
-
case -2147352570:
|
|
3025
|
-
return "PCSC: Failed Smart Card"
|
|
3026
|
-
case -2147352560:
|
|
3027
|
-
return "PCSC: ExtLe Failed"
|
|
3028
|
-
case -2046820352:
|
|
3029
|
-
return "LAYER6: Secure Messaging was not activated"
|
|
3030
|
-
case -2046820351:
|
|
3031
|
-
return "LAYER6: ISO7816_A_03 \"Application selection failure\""
|
|
3032
|
-
case -2046820096:
|
|
3033
|
-
return "LAYER6: ISO7816_B_01 \"Mutual authentication MAC failure\""
|
|
3034
|
-
case -2046820095:
|
|
3035
|
-
return "LAYER6: ISO7816_B_02 \"Mutual authentication encryption failure\""
|
|
3036
|
-
case -2046820094:
|
|
3037
|
-
return "LAYER6: ISO7816_B_03 \"Mutual authentication failure\""
|
|
3038
|
-
case -2046819840:
|
|
3039
|
-
return "LAYER6: SM failure – MAC missing"
|
|
3040
|
-
case -2046819839:
|
|
3041
|
-
return "LAYER6: SM failure – cryptogram missing"
|
|
3042
|
-
case -2046819838:
|
|
3043
|
-
return "LAYER6: SM failure – secured status bytes missing"
|
|
3044
|
-
case -2046819837:
|
|
3045
|
-
return "LAYER6: SM failure – incorrect MAC"
|
|
3046
|
-
case -2046819836:
|
|
3047
|
-
return "LAYER6: SM failure – incorrect cryptogram"
|
|
3048
|
-
case -2046819584:
|
|
3049
|
-
return "LAYER6: Not TLV response data"
|
|
3050
|
-
case -2046819583:
|
|
3051
|
-
return "LAYER6: Wrong data length (APDU_INS_GET_CHALLENGE)"
|
|
3052
|
-
case -2046819582:
|
|
3053
|
-
return "LAYER6: APDU_INS_INTERNAL_AUTHENTICATE failure"
|
|
3054
|
-
case -2046819581:
|
|
3055
|
-
return "LAYER6: MSE:Set KAT failure"
|
|
3056
|
-
case -2046819580:
|
|
3057
|
-
return "LAYER6: MSE:Set DST failure"
|
|
3058
|
-
case -2046819579:
|
|
3059
|
-
return "LAYER6: PSO CERTIFICATE failure"
|
|
3060
|
-
case -2046819578:
|
|
3061
|
-
return "LAYER6: MSE:Set AT failure"
|
|
3062
|
-
case -2046819577:
|
|
3063
|
-
return "LAYER6: GET CHALLENGE failure"
|
|
3064
|
-
case -2046819576:
|
|
3065
|
-
return "LAYER6: APDU_INS_EXTERNAL_AUTHENTICATE (External Authentication) failure"
|
|
3066
|
-
case -2046819575:
|
|
3067
|
-
return "LAYER6: General Authenticity Failure"
|
|
3068
|
-
case -2147456382:
|
|
3069
|
-
return "LAYER6: File selection failure / file not found"
|
|
3070
|
-
case -2147458430:
|
|
3071
|
-
return "LAYER6: Reading beyond EOF / Unexpected EOF"
|
|
3072
|
-
case -2147456256:
|
|
3073
|
-
return "LAYER6: Reading beyond EOF / Unexpected EOF"
|
|
3074
|
-
case -2147456384:
|
|
3075
|
-
return "LAYER6: Incorrect Params"
|
|
3076
|
-
case -2147456376:
|
|
3077
|
-
return "LAYER6: No Reference Data"
|
|
3078
|
-
case -2147458111:
|
|
3079
|
-
return "LAYER6: PWD Suspended"
|
|
3080
|
-
case -2147458112:
|
|
3081
|
-
return "LAYER6: PWD Blocked"
|
|
3082
|
-
case -2147458429:
|
|
3083
|
-
return "LAYER6: PWD Deactivated"
|
|
3084
|
-
case -2147456637:
|
|
3085
|
-
return "LAYER6: PWD Blocked 2"
|
|
3086
|
-
case -2147456636:
|
|
3087
|
-
return "LAYER6: PWD Deactivated 2"
|
|
3088
|
-
case -2147456635:
|
|
3089
|
-
return "LAYER6: PWD Suspended 2"
|
|
3090
|
-
case -2146409536:
|
|
3091
|
-
return "LAYER6: PWD Failed"
|
|
3092
|
-
case -2097152000:
|
|
3093
|
-
return "RFID: Not Performed"
|
|
3094
|
-
case -2097151999:
|
|
3095
|
-
return "RFID: Session Is Closed"
|
|
3096
|
-
case -2097151998:
|
|
3097
|
-
return "RFID: Terminal Unsupported Operation"
|
|
3098
|
-
case -2097151984:
|
|
3099
|
-
return "RFID: Terminal Type Unknown"
|
|
3100
|
-
case -2097151983:
|
|
3101
|
-
return "RFID: Terminal Type Bad Certificate"
|
|
3102
|
-
case -2097151982:
|
|
3103
|
-
return "RFID: Terminal Type Not Set"
|
|
3104
|
-
case -2097151981:
|
|
3105
|
-
return "RFID: Procedure Type Unknown"
|
|
3106
|
-
case -2097151980:
|
|
3107
|
-
return "RFID: Procedure Type Unsupported"
|
|
3108
|
-
case -2097151979:
|
|
3109
|
-
return "RFID: Procedure Type Not Set"
|
|
3110
|
-
case -2097151978:
|
|
3111
|
-
return "RFID: Access Key Unknown Type"
|
|
3112
|
-
case -2097151977:
|
|
3113
|
-
return "RFID: Access Key Unsupported SM Type"
|
|
3114
|
-
case -2097151976:
|
|
3115
|
-
return "RFID: Access Key Incorrect SM Type"
|
|
3116
|
-
case -2097151975:
|
|
3117
|
-
return "RFID: Access Key Restricted"
|
|
3118
|
-
case -2097151974:
|
|
3119
|
-
return "RFID: Access Key Incorrect Data"
|
|
3120
|
-
case -2097151973:
|
|
3121
|
-
return "RFID: Access Key Not Set"
|
|
3122
|
-
case -2097151972:
|
|
3123
|
-
return "RFID: Pwd Management Not Authorized"
|
|
3124
|
-
case -2097151968:
|
|
3125
|
-
return "RFID: Access Control UnknownType"
|
|
3126
|
-
case -2097151967:
|
|
3127
|
-
return "RFID: Requires SM"
|
|
3128
|
-
case -2097151966:
|
|
3129
|
-
return "RFID: Requires PACE"
|
|
3130
|
-
case -2097151965:
|
|
3131
|
-
return "RFID: Requires CA Keys"
|
|
3132
|
-
case -2097151964:
|
|
3133
|
-
return "RFID: Requires TA"
|
|
3134
|
-
case -2097151963:
|
|
3135
|
-
return "RFID: Requires CA"
|
|
3136
|
-
case -2097151962:
|
|
3137
|
-
return "RFID: Incorrect Option CA"
|
|
3138
|
-
case -2097151961:
|
|
3139
|
-
return "RFID: CA Failed"
|
|
3140
|
-
case -2097151960:
|
|
3141
|
-
return "RFID: TA Failed"
|
|
3142
|
-
case -2097151959:
|
|
3143
|
-
return "RFID: AA Failed"
|
|
3144
|
-
case -2097151958:
|
|
3145
|
-
return "RFID: RI Failed"
|
|
3146
|
-
case -2097151952:
|
|
3147
|
-
return "RFID: SO Signature Check Failed"
|
|
3148
|
-
case -2097151951:
|
|
3149
|
-
return "RFID: Hash Check Failed"
|
|
3150
|
-
case -2097151936:
|
|
3151
|
-
return "RFID: Invalid Aux Data Date Of Expiry"
|
|
3152
|
-
case -2097151935:
|
|
3153
|
-
return "RFID: Invalid Aux Data Date Of Birth"
|
|
3154
|
-
case -2097151934:
|
|
3155
|
-
return "RFID: Invalid Aux Data Community ID"
|
|
3156
|
-
case -2097151920:
|
|
3157
|
-
return "RFID: eSign Requires App Selection"
|
|
3158
|
-
case -2097151919:
|
|
3159
|
-
return "RFID: eSign PIN Not Set"
|
|
3160
|
-
case -2097151918:
|
|
3161
|
-
return "RFID: eSign PIN Not Verified"
|
|
3162
|
-
case -2097151904:
|
|
3163
|
-
return "RFID: Incorrect data"
|
|
3164
|
-
case -2097086464:
|
|
3165
|
-
return "RFID File: Not Enough Data"
|
|
3166
|
-
case -2097020928:
|
|
3167
|
-
return "RFID File: Incorrect Data"
|
|
3168
|
-
case -2096955392:
|
|
3169
|
-
return "RFID File: Unexpected Data"
|
|
3170
|
-
case -2096889856:
|
|
3171
|
-
return "RFID File: Contents Unexpected Data"
|
|
3172
|
-
case -2096824320:
|
|
3173
|
-
return "RFID File: Wrong Tag"
|
|
3174
|
-
case -2096758784:
|
|
3175
|
-
return "RFID File: Cannot Use Data"
|
|
3176
|
-
case -2096693248:
|
|
3177
|
-
return "RFID File: Cannot Read Data"
|
|
3178
|
-
case this.RFID_ERROR_SESSION_FILE_ACCESS_DENIED:
|
|
3179
|
-
return "RFID File: Access Denied"
|
|
3327
|
+
case 1:
|
|
3328
|
+
return "OK"
|
|
3329
|
+
case 2:
|
|
3330
|
+
return "RFID: Requested operation is already done"
|
|
3331
|
+
case 139272:
|
|
3332
|
+
return "Notification - MRZ: Document type unknown"
|
|
3333
|
+
case 139273:
|
|
3334
|
+
return "Notification - MRZ: Issuing state syntax error"
|
|
3335
|
+
case 139274:
|
|
3336
|
+
return "Notification - MRZ: Name is void"
|
|
3337
|
+
case 139277:
|
|
3338
|
+
return "Notification - MRZ: Number incorrect checksum"
|
|
3339
|
+
case 139278:
|
|
3340
|
+
return "Notification - MRZ: Nationality syntax error"
|
|
3341
|
+
case 139279:
|
|
3342
|
+
return "Notification - MRZ: DOB syntax error"
|
|
3343
|
+
case 139280:
|
|
3344
|
+
return "Notification - MRZ: DOB error"
|
|
3345
|
+
case 139281:
|
|
3346
|
+
return "Notification - MRZ: DOB incorrect checksum"
|
|
3347
|
+
case 139282:
|
|
3348
|
+
return "Notification - MRZ: Sex incorrect"
|
|
3349
|
+
case 139283:
|
|
3350
|
+
return "Notification - MRZ: DOE syntax error"
|
|
3351
|
+
case 139284:
|
|
3352
|
+
return "Notification - MRZ: DOE error"
|
|
3353
|
+
case 139285:
|
|
3354
|
+
return "Notification - MRZ: DOE incorrect checksum"
|
|
3355
|
+
case 139286:
|
|
3356
|
+
return "Notification - MRZ: Optional data incorrect checksum"
|
|
3357
|
+
case 139287:
|
|
3358
|
+
return "Notification - MRZ: Incorrect checksum"
|
|
3359
|
+
case 139288:
|
|
3360
|
+
return "Notification - MRZ: Incorrect"
|
|
3180
3361
|
default:
|
|
3181
3362
|
return value.toString()
|
|
3182
3363
|
}
|
|
@@ -3276,6 +3457,8 @@ export const eRPRM_ResultType = {
|
|
|
3276
3457
|
RPRM_RESULT_TYPE_DATABASE_CHECK: 28,
|
|
3277
3458
|
RPRM_RESULT_TYPE_FINGERPRINT_TEMPLATE_ISO: 29,
|
|
3278
3459
|
RPRM_RESULT_TYPE_INPUT_IMAGE_QUALITY: 30,
|
|
3460
|
+
RPRM_RESULT_TYPE_IMAGES: 37,
|
|
3461
|
+
RPRM_RESULT_TYPE_HOLO_PARAMS: 47,
|
|
3279
3462
|
RPRM_RESULT_TYPE_DOCUMENT_POSITION: 85,
|
|
3280
3463
|
RPRM_RESULT_TYPE_CUSTOM: 100,
|
|
3281
3464
|
RFID_RESULT_TYPE_RFID_RAW_DATA: 101,
|
|
@@ -3285,6 +3468,7 @@ export const eRPRM_ResultType = {
|
|
|
3285
3468
|
RFID_RESULT_TYPE_RFID_ORIGINAL_GRAPHICS: 105,
|
|
3286
3469
|
RPRM_RESULT_TYPE_BARCODE_POSITION: 62,
|
|
3287
3470
|
RPRM_RESULT_TYPE_MRZ_POSITION: 61,
|
|
3471
|
+
RPRM_RESULT_TYPE_STATUS: 33,
|
|
3288
3472
|
}
|
|
3289
3473
|
|
|
3290
3474
|
export const eRPRM_SecurityFeatureType = {
|
|
@@ -3919,6 +4103,14 @@ export const eVisualFieldType = {
|
|
|
3919
4103
|
FT_DLCLASSCODE_D3_TO: 635,
|
|
3920
4104
|
FT_DLCLASSCODE_D3_NOTES: 636,
|
|
3921
4105
|
FT_ALT_DATE_OF_EXPIRY: 637,
|
|
4106
|
+
FT_DLCLASSCODE_CD_FROM: 638,
|
|
4107
|
+
FT_DLCLASSCODE_CD_TO: 639,
|
|
4108
|
+
FT_DLCLASSCODE_CD_NOTES: 640,
|
|
4109
|
+
FT_PAYMENT_PERIOD_TO: 643,
|
|
4110
|
+
FT_PAYMENT_PERIOD_FROM: 642,
|
|
4111
|
+
FT_ISSUER_IDENTIFICATION_NUMBER: 641,
|
|
4112
|
+
FT_VACCINATION_CERTIFICATE_IDENTIFIER: 644,
|
|
4113
|
+
FT_FIRST_NAME: 645,
|
|
3922
4114
|
|
|
3923
4115
|
getTranslation(value: number) {
|
|
3924
4116
|
switch (value) {
|
|
@@ -4071,9 +4263,9 @@ export const eVisualFieldType = {
|
|
|
4071
4263
|
case 73:
|
|
4072
4264
|
return "Issuing authority code"
|
|
4073
4265
|
case 74:
|
|
4074
|
-
return "
|
|
4266
|
+
return "Country/region of birth"
|
|
4075
4267
|
case 75:
|
|
4076
|
-
return "
|
|
4268
|
+
return "Birth state code"
|
|
4077
4269
|
case 76:
|
|
4078
4270
|
return "Street"
|
|
4079
4271
|
case 77:
|
|
@@ -4347,15 +4539,15 @@ export const eVisualFieldType = {
|
|
|
4347
4539
|
case 259:
|
|
4348
4540
|
return "Residence permit 2"
|
|
4349
4541
|
case 260:
|
|
4350
|
-
return "Place of
|
|
4542
|
+
return "Place of birth: Street"
|
|
4351
4543
|
case 261:
|
|
4352
|
-
return "Place of
|
|
4544
|
+
return "Place of birth: City"
|
|
4353
4545
|
case 262:
|
|
4354
|
-
return "Place of
|
|
4546
|
+
return "Place of birth: State"
|
|
4355
4547
|
case 263:
|
|
4356
|
-
return "Place of
|
|
4548
|
+
return "Place of birth: Country"
|
|
4357
4549
|
case 264:
|
|
4358
|
-
return "Place of
|
|
4550
|
+
return "Place of birth: Postal code"
|
|
4359
4551
|
case 265:
|
|
4360
4552
|
return "CDL Class"
|
|
4361
4553
|
case 266:
|
|
@@ -5096,6 +5288,22 @@ export const eVisualFieldType = {
|
|
|
5096
5288
|
return "DL category D3 codes"
|
|
5097
5289
|
case 637:
|
|
5098
5290
|
return "Alternative date of expiry"
|
|
5291
|
+
case 638:
|
|
5292
|
+
return "DL category CD valid from"
|
|
5293
|
+
case 639:
|
|
5294
|
+
return "DL category CD valid to"
|
|
5295
|
+
case 640:
|
|
5296
|
+
return "DL category CD codes"
|
|
5297
|
+
case 641:
|
|
5298
|
+
return "Issuer identification number"
|
|
5299
|
+
case 642:
|
|
5300
|
+
return "Payment period from"
|
|
5301
|
+
case 643:
|
|
5302
|
+
return "Payment period to"
|
|
5303
|
+
case 644:
|
|
5304
|
+
return "Unique vaccination certificate identifier"
|
|
5305
|
+
case 645:
|
|
5306
|
+
return "First name"
|
|
5099
5307
|
default:
|
|
5100
5308
|
return value.toString()
|
|
5101
5309
|
}
|
|
@@ -5731,6 +5939,7 @@ export const Enum = {
|
|
|
5731
5939
|
}
|
|
5732
5940
|
|
|
5733
5941
|
export default class DocumentReader {
|
|
5942
|
+
static initializeReaderAutomatically(successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
|
|
5734
5943
|
static getAPIVersion(successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
|
|
5735
5944
|
static getAvailableScenarios(successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
|
|
5736
5945
|
static isRFIDAvailableForUse(successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
|
|
@@ -5783,6 +5992,7 @@ export default class DocumentReader {
|
|
|
5783
5992
|
static providePACertificates(certificates: PKDCertificate[], successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
|
|
5784
5993
|
static provideTACertificates(certificates: PKDCertificate[], successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
|
|
5785
5994
|
static provideTASignature(certificates: byte[], successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
|
|
5995
|
+
static parseCoreResults(json: string, successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
|
|
5786
5996
|
static initializeReaderWithDatabasePath(license: string, path: string, successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
|
|
5787
5997
|
static initializeReaderWithDatabase(license: string, db: string, successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
|
|
5788
5998
|
static recognizeImageFrame(image: string, params: ImageInputParam, successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
|