@regulaforensics/cordova-plugin-document-reader-api 5.5.0 → 6.1.0
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 +1 -1
- package/example/package.json +6 -4
- package/example/www/index.html +6 -1
- package/example/www/js/index.js +58 -4
- package/package.json +1 -1
- package/plugin.xml +4 -4
- package/src/android/DocumentReader.java +204 -9
- package/src/android/Helpers.java +16 -7
- package/src/android/JSONConstructor.java +691 -330
- package/src/android/RegulaConfig.java +78 -15
- package/src/android/build.gradle +11 -11
- package/src/ios/RGLDocumentReader.h +8 -3
- package/src/ios/RGLDocumentReader.m +152 -12
- package/src/ios/{JSONConstructor.h → RGLWJSONConstructor.h} +14 -3
- package/src/ios/{JSONConstructor.m → RGLWJSONConstructor.m} +149 -4
- package/src/ios/RegulaConfig.h +2 -0
- package/src/ios/RegulaConfig.m +126 -31
- package/www/DocumentReader.js +923 -576
package/www/DocumentReader.js
CHANGED
|
@@ -6,8 +6,6 @@ class DocumentReaderScenario {
|
|
|
6
6
|
if (jsonObject == null) return null
|
|
7
7
|
const result = new DocumentReaderScenario()
|
|
8
8
|
|
|
9
|
-
result.uvTorch = jsonObject["uvTorch"]
|
|
10
|
-
result.seriesProcessMode = jsonObject["seriesProcessMode"]
|
|
11
9
|
result.name = jsonObject["name"]
|
|
12
10
|
result.caption = jsonObject["caption"]
|
|
13
11
|
result.description = jsonObject["description"]
|
|
@@ -16,10 +14,10 @@ class DocumentReaderScenario {
|
|
|
16
14
|
}
|
|
17
15
|
}
|
|
18
16
|
|
|
19
|
-
class
|
|
17
|
+
class CoreDetailedScenario {
|
|
20
18
|
static fromJson(jsonObject) {
|
|
21
19
|
if (jsonObject == null) return null
|
|
22
|
-
const result = new
|
|
20
|
+
const result = new CoreDetailedScenario()
|
|
23
21
|
|
|
24
22
|
result.uvTorch = jsonObject["uvTorch"]
|
|
25
23
|
result.frameOrientation = jsonObject["frameOrientation"]
|
|
@@ -244,6 +242,7 @@ class ImageQualityGroup {
|
|
|
244
242
|
if (jsonObject["imageQualityList"] != null)
|
|
245
243
|
for (const i in jsonObject["imageQualityList"])
|
|
246
244
|
result.imageQualityList.push(ImageQuality.fromJson(jsonObject["imageQualityList"][i]))
|
|
245
|
+
result.pageIndex = jsonObject["pageIndex"]
|
|
247
246
|
|
|
248
247
|
return result
|
|
249
248
|
}
|
|
@@ -711,7 +710,37 @@ class DocumentReaderCompletion {
|
|
|
711
710
|
|
|
712
711
|
result.action = jsonObject["action"]
|
|
713
712
|
result.results = DocumentReaderResults.fromJson(jsonObject["results"])
|
|
714
|
-
result.error =
|
|
713
|
+
result.error = DocumentReaderException.fromJson(jsonObject["error"])
|
|
714
|
+
|
|
715
|
+
return result
|
|
716
|
+
}
|
|
717
|
+
}
|
|
718
|
+
|
|
719
|
+
class RfidNotificationCompletion {
|
|
720
|
+
static fromJson(jsonObject) {
|
|
721
|
+
if (jsonObject == null) return null
|
|
722
|
+
const result = new RfidNotificationCompletion()
|
|
723
|
+
|
|
724
|
+
result.notification = jsonObject["notification"]
|
|
725
|
+
result.value = jsonObject["value"]
|
|
726
|
+
|
|
727
|
+
return result
|
|
728
|
+
}
|
|
729
|
+
}
|
|
730
|
+
|
|
731
|
+
class DocumentReaderException {
|
|
732
|
+
static fromJson(jsonObject) {
|
|
733
|
+
if (jsonObject == null) return null
|
|
734
|
+
const result = new DocumentReaderException()
|
|
735
|
+
|
|
736
|
+
result.errorCode = jsonObject["errorCode"]
|
|
737
|
+
result.localizedMessage = jsonObject["localizedMessage"]
|
|
738
|
+
result.message = jsonObject["message"]
|
|
739
|
+
result.string = jsonObject["string"]
|
|
740
|
+
result.stackTrace = []
|
|
741
|
+
if (jsonObject["stackTrace"] != null)
|
|
742
|
+
for (const i in jsonObject["stackTrace"])
|
|
743
|
+
result.stackTrace.push(StackTraceElement.fromJson(jsonObject["stackTrace"][i]))
|
|
715
744
|
|
|
716
745
|
return result
|
|
717
746
|
}
|
|
@@ -750,6 +779,173 @@ class StackTraceElement {
|
|
|
750
779
|
}
|
|
751
780
|
}
|
|
752
781
|
|
|
782
|
+
class PKDCertificate {
|
|
783
|
+
static fromJson(jsonObject) {
|
|
784
|
+
if (jsonObject == null) return null
|
|
785
|
+
const result = new PKDCertificate()
|
|
786
|
+
|
|
787
|
+
result.binaryData = jsonObject["binaryData"]
|
|
788
|
+
result.resourceType = jsonObject["resourceType"]
|
|
789
|
+
result.privateKey = jsonObject["privateKey"]
|
|
790
|
+
|
|
791
|
+
return result
|
|
792
|
+
}
|
|
793
|
+
}
|
|
794
|
+
|
|
795
|
+
class ImageInputParam {
|
|
796
|
+
static fromJson(jsonObject) {
|
|
797
|
+
if (jsonObject == null) return null
|
|
798
|
+
const result = new ImageInputParam()
|
|
799
|
+
|
|
800
|
+
result.width = jsonObject["width"]
|
|
801
|
+
result.height = jsonObject["height"]
|
|
802
|
+
result.type = jsonObject["type"]
|
|
803
|
+
|
|
804
|
+
return result
|
|
805
|
+
}
|
|
806
|
+
}
|
|
807
|
+
|
|
808
|
+
class PAResourcesIssuer {
|
|
809
|
+
static fromJson(jsonObject) {
|
|
810
|
+
if (jsonObject == null) return null
|
|
811
|
+
const result = new PAResourcesIssuer()
|
|
812
|
+
|
|
813
|
+
result.data = []
|
|
814
|
+
if (jsonObject["data"] != null)
|
|
815
|
+
for (const i in jsonObject["data"])
|
|
816
|
+
result.data.push(jsonObject["data"][i])
|
|
817
|
+
result.friendlyName = jsonObject["friendlyName"]
|
|
818
|
+
result.attributes = []
|
|
819
|
+
if (jsonObject["attributes"] != null)
|
|
820
|
+
for (const i in jsonObject["attributes"])
|
|
821
|
+
result.attributes.push(PAAttribute.fromJson(jsonObject["attributes"][i]))
|
|
822
|
+
|
|
823
|
+
return result
|
|
824
|
+
}
|
|
825
|
+
}
|
|
826
|
+
|
|
827
|
+
class PAAttribute {
|
|
828
|
+
static fromJson(jsonObject) {
|
|
829
|
+
if (jsonObject == null) return null
|
|
830
|
+
const result = new PAAttribute()
|
|
831
|
+
|
|
832
|
+
result.type = jsonObject["type"]
|
|
833
|
+
result.value = jsonObject["value"]
|
|
834
|
+
|
|
835
|
+
return result
|
|
836
|
+
}
|
|
837
|
+
}
|
|
838
|
+
|
|
839
|
+
class TAChallenge {
|
|
840
|
+
static fromJson(jsonObject) {
|
|
841
|
+
if (jsonObject == null) return null
|
|
842
|
+
const result = new TAChallenge()
|
|
843
|
+
|
|
844
|
+
result.data = []
|
|
845
|
+
if (jsonObject["data"] != null)
|
|
846
|
+
for (const i in jsonObject["data"])
|
|
847
|
+
result.data.push(jsonObject["data"][i])
|
|
848
|
+
result.auxPCD = jsonObject["auxPCD"]
|
|
849
|
+
result.challengePICC = jsonObject["challengePICC"]
|
|
850
|
+
result.hashPK = jsonObject["hashPK"]
|
|
851
|
+
result.idPICC = jsonObject["idPICC"]
|
|
852
|
+
|
|
853
|
+
return result
|
|
854
|
+
}
|
|
855
|
+
}
|
|
856
|
+
|
|
857
|
+
class DocumentReaderResultsStatus {
|
|
858
|
+
static fromJson(jsonObject) {
|
|
859
|
+
if (jsonObject == null) return null
|
|
860
|
+
const result = new DocumentReaderResultsStatus()
|
|
861
|
+
|
|
862
|
+
result.overallStatus = jsonObject["overallStatus"]
|
|
863
|
+
result.optical = jsonObject["optical"]
|
|
864
|
+
result.detailsOptical = DetailsOptical.fromJson(jsonObject["detailsOptical"])
|
|
865
|
+
result.rfid = jsonObject["rfid"]
|
|
866
|
+
result.detailsRFID = DetailsRFID.fromJson(jsonObject["detailsRFID"])
|
|
867
|
+
result.portrait = jsonObject["portrait"]
|
|
868
|
+
result.stopList = jsonObject["stopList"]
|
|
869
|
+
|
|
870
|
+
return result
|
|
871
|
+
}
|
|
872
|
+
}
|
|
873
|
+
|
|
874
|
+
class DetailsOptical {
|
|
875
|
+
static fromJson(jsonObject) {
|
|
876
|
+
if (jsonObject == null) return null
|
|
877
|
+
const result = new DetailsOptical()
|
|
878
|
+
|
|
879
|
+
result.overallStatus = jsonObject["overallStatus"]
|
|
880
|
+
result.mrz = jsonObject["mrz"]
|
|
881
|
+
result.text = jsonObject["text"]
|
|
882
|
+
result.docType = jsonObject["docType"]
|
|
883
|
+
result.security = jsonObject["security"]
|
|
884
|
+
result.imageQA = jsonObject["imageQA"]
|
|
885
|
+
result.expiry = jsonObject["expiry"]
|
|
886
|
+
result.vds = jsonObject["vds"]
|
|
887
|
+
result.pagesCount = jsonObject["pagesCount"]
|
|
888
|
+
|
|
889
|
+
return result
|
|
890
|
+
}
|
|
891
|
+
}
|
|
892
|
+
|
|
893
|
+
class DetailsRFID {
|
|
894
|
+
static fromJson(jsonObject) {
|
|
895
|
+
if (jsonObject == null) return null
|
|
896
|
+
const result = new DetailsRFID()
|
|
897
|
+
|
|
898
|
+
result.pa = jsonObject["pa"]
|
|
899
|
+
result.ca = jsonObject["ca"]
|
|
900
|
+
result.aa = jsonObject["aa"]
|
|
901
|
+
result.ta = jsonObject["ta"]
|
|
902
|
+
result.bac = jsonObject["bac"]
|
|
903
|
+
result.pace = jsonObject["pace"]
|
|
904
|
+
result.overallStatus = jsonObject["overallStatus"]
|
|
905
|
+
|
|
906
|
+
return result
|
|
907
|
+
}
|
|
908
|
+
}
|
|
909
|
+
|
|
910
|
+
class VDSNCData {
|
|
911
|
+
static fromJson(jsonObject) {
|
|
912
|
+
if (jsonObject == null) return null
|
|
913
|
+
const result = new VDSNCData()
|
|
914
|
+
|
|
915
|
+
result.type = jsonObject["type"]
|
|
916
|
+
result.version = jsonObject["version"]
|
|
917
|
+
result.issuingCountry = jsonObject["issuingCountry"]
|
|
918
|
+
result.message = jsonObject["message"]
|
|
919
|
+
result.signatureAlgorithm = jsonObject["signatureAlgorithm"]
|
|
920
|
+
result.signature = BytesData.fromJson(jsonObject["signature"])
|
|
921
|
+
result.certificate = BytesData.fromJson(jsonObject["certificate"])
|
|
922
|
+
result.certificateChain = []
|
|
923
|
+
if (jsonObject["certificateChain"] != null)
|
|
924
|
+
for (const i in jsonObject["certificateChain"])
|
|
925
|
+
result.certificateChain.push(CertificateChain.fromJson(jsonObject["certificateChain"][i]))
|
|
926
|
+
result.notifications = []
|
|
927
|
+
if (jsonObject["notifications"] != null)
|
|
928
|
+
for (const i in jsonObject["notifications"])
|
|
929
|
+
result.notifications.push(jsonObject["notifications"][i])
|
|
930
|
+
|
|
931
|
+
return result
|
|
932
|
+
}
|
|
933
|
+
}
|
|
934
|
+
|
|
935
|
+
class BytesData {
|
|
936
|
+
static fromJson(jsonObject) {
|
|
937
|
+
if (jsonObject == null) return null
|
|
938
|
+
const result = new BytesData()
|
|
939
|
+
|
|
940
|
+
result.data = jsonObject["data"]
|
|
941
|
+
result.length = jsonObject["length"]
|
|
942
|
+
result.status = jsonObject["status"]
|
|
943
|
+
result.type = jsonObject["type"]
|
|
944
|
+
|
|
945
|
+
return result
|
|
946
|
+
}
|
|
947
|
+
}
|
|
948
|
+
|
|
753
949
|
class DocumentReaderResults {
|
|
754
950
|
getTextFieldValueByType({ fieldType, lcid = 0, source = -1, original = false }) {
|
|
755
951
|
if (this.textResult == null) return null
|
|
@@ -789,11 +985,19 @@ class DocumentReaderResults {
|
|
|
789
985
|
return foundFields[0].value
|
|
790
986
|
}
|
|
791
987
|
|
|
792
|
-
getQualityResult(imageQualityCheckType, securityFeature = -1) {
|
|
988
|
+
getQualityResult(imageQualityCheckType, securityFeature = -1, pageIndex = 0) {
|
|
793
989
|
let resultSum = 2
|
|
794
990
|
if (this.imageQuality == null) return resultSum
|
|
795
991
|
|
|
796
|
-
|
|
992
|
+
let imageQualityGroup
|
|
993
|
+
|
|
994
|
+
for (const iq of this.imageQuality)
|
|
995
|
+
if (iq != null && iq.pageIndex === pageIndex)
|
|
996
|
+
imageQualityGroup = iq
|
|
997
|
+
if (imageQualityGroup == null)
|
|
998
|
+
return resultSum
|
|
999
|
+
|
|
1000
|
+
for (const field of imageQualityGroup.imageQualityList)
|
|
797
1001
|
if (field.type === imageQualityCheckType)
|
|
798
1002
|
if (securityFeature === -1) {
|
|
799
1003
|
if (field.result === 0) {
|
|
@@ -891,6 +1095,8 @@ class DocumentReaderResults {
|
|
|
891
1095
|
if (jsonObject["documentType"] != null)
|
|
892
1096
|
for (const i in jsonObject["documentType"])
|
|
893
1097
|
result.documentType.push(DocumentReaderDocumentType.fromJson(jsonObject["documentType"][i]))
|
|
1098
|
+
result.status = DocumentReaderResultsStatus.fromJson(jsonObject["status"])
|
|
1099
|
+
result.vdsncData = VDSNCData.fromJson(jsonObject["vdsncData"])
|
|
894
1100
|
|
|
895
1101
|
return result
|
|
896
1102
|
}
|
|
@@ -1233,6 +1439,25 @@ const DocReaderOrientation = {
|
|
|
1233
1439
|
LANDSCAPE_RIGHT: 4,
|
|
1234
1440
|
}
|
|
1235
1441
|
|
|
1442
|
+
const DocumentReaderExceptionEnum = {
|
|
1443
|
+
NATIVE_JAVA_EXCEPTION: 0,
|
|
1444
|
+
DOCUMENT_READER_STATE_EXCEPTION: 1,
|
|
1445
|
+
DOCUMENT_READER_WRONG_INPUT: 2,
|
|
1446
|
+
INITIALIZATION_FAILED: 3,
|
|
1447
|
+
DOCUMENT_READER_BLE_EXCEPTION: 201,
|
|
1448
|
+
DB_DOWNLOAD_ERROR: 301,
|
|
1449
|
+
LICENSE_ABSENT_OR_CORRUPTED: 101,
|
|
1450
|
+
LICENSE_INVALID_DATE: 102,
|
|
1451
|
+
LICENSE_INVALID_VERSION: 103,
|
|
1452
|
+
LICENSE_INVALID_DEVICE_ID: 104,
|
|
1453
|
+
LICENSE_INVALID_SYSTEM_OR_APP_ID: 105,
|
|
1454
|
+
LICENSE_NO_CAPABILITIES: 106,
|
|
1455
|
+
LICENSE_NO_AUTHENTICITY: 107,
|
|
1456
|
+
LICENSE_NO_DATABASE: 110,
|
|
1457
|
+
LICENSE_DATABASE_INCORRECT: 111,
|
|
1458
|
+
FEATURE_BLUETOOTH_LE_NOT_SUPPORTED: 701,
|
|
1459
|
+
}
|
|
1460
|
+
|
|
1236
1461
|
const eCheckDiagnose = {
|
|
1237
1462
|
UNKNOWN: 0,
|
|
1238
1463
|
PASS: 1,
|
|
@@ -1265,6 +1490,7 @@ const eCheckDiagnose = {
|
|
|
1265
1490
|
VISIBLE_ELEMENT_ABSENT: 41,
|
|
1266
1491
|
ELEMENT_SHOULD_BE_COLORED: 42,
|
|
1267
1492
|
ELEMENT_SHOULD_BE_GRAYSCALE: 43,
|
|
1493
|
+
PHOTO_WHITE_IR_DONT_MATCH: 44,
|
|
1268
1494
|
UV_DULL_PAPER_MRZ: 50,
|
|
1269
1495
|
FALSE_LUMINISCENCE_IN_MRZ: 51,
|
|
1270
1496
|
UV_DULL_PAPER_PHOTO: 52,
|
|
@@ -1274,6 +1500,7 @@ const eCheckDiagnose = {
|
|
|
1274
1500
|
BAD_AREA_IN_AXIAL: 60,
|
|
1275
1501
|
FALSE_IPI_PARAMETERS: 65,
|
|
1276
1502
|
FIELD_POS_CORRECTOR_HIGHLIGHT_IR: 80,
|
|
1503
|
+
FIELD_POS_CORRECTOR_GLARES_IN_PHOTO_AREA: 81,
|
|
1277
1504
|
OVI_IR_INVISIBLE: 90,
|
|
1278
1505
|
OVI_INSUFFICIENT_AREA: 91,
|
|
1279
1506
|
OVI_COLOR_INVARIABLE: 92,
|
|
@@ -1284,6 +1511,8 @@ const eCheckDiagnose = {
|
|
|
1284
1511
|
HOLOGRAM_ELEMENT_ABSENT: 100,
|
|
1285
1512
|
HOLOGRAM_SIDE_TOP_IMAGES_ABSENT: 101,
|
|
1286
1513
|
HOLOGRAM_ELEMENT_PRESENT: 102,
|
|
1514
|
+
HOLOGRAM_FRAMES_IS_ABSENT: 103,
|
|
1515
|
+
HOLOGRAM_HOLO_FIELD_IS_ABSENT: 104,
|
|
1287
1516
|
PHOTO_PATTERN_INTERRUPTED: 110,
|
|
1288
1517
|
PHOTO_PATTERN_SHIFTED: 111,
|
|
1289
1518
|
PHOTO_PATTERN_DIFFERENT_COLORS: 112,
|
|
@@ -1308,13 +1537,21 @@ const eCheckDiagnose = {
|
|
|
1308
1537
|
PORTRAIT_COMPARISON_PORTRAITS_DIFFER: 150,
|
|
1309
1538
|
PORTRAIT_COMPARISON_NO_SERVICE_REPLY: 151,
|
|
1310
1539
|
PORTRAIT_COMPARISON_SERVICE_ERROR: 152,
|
|
1311
|
-
|
|
1540
|
+
PORTRAIT_COMPARISON_NOT_ENOUGH_IMAGES: 153,
|
|
1312
1541
|
PORTRAIT_COMPARISON_NO_LIVE_PHOTO: 154,
|
|
1313
1542
|
PORTRAIT_COMPARISON_NO_SERVICE_LICENSE: 155,
|
|
1314
1543
|
PORTRAIT_COMPARISON_NO_PORTRAIT_DETECTED: 156,
|
|
1315
1544
|
MOBILE_IMAGES_UNSUITABLE_LIGHT_CONDITIONS: 160,
|
|
1316
1545
|
MOBILE_IMAGES_WHITE_UV_NO_DIFFERENCE: 161,
|
|
1317
|
-
|
|
1546
|
+
FINGERPRINTS_COMPARISON_MISMATCH: 170,
|
|
1547
|
+
HOLO_PHOTO_FACE_NOT_DETECTED: 180,
|
|
1548
|
+
HOLO_PHOTO_FACE_COMPARISON_FAILED: 181,
|
|
1549
|
+
HOLO_PHOTO_FACE_GLARE_IN_CENTER_ABSENT: 182,
|
|
1550
|
+
HOLO_ELEMENT_SHAPE_ERROR: 183,
|
|
1551
|
+
ALGORITHM_STEPS_ERROR: 184,
|
|
1552
|
+
HOLO_AREAS_NOT_LOADED: 185,
|
|
1553
|
+
FINISHED_BY_TIMEOUT: 186,
|
|
1554
|
+
LAST_DIAGNOSE_VALUE: 190,
|
|
1318
1555
|
}
|
|
1319
1556
|
|
|
1320
1557
|
const eCheckResult = {
|
|
@@ -1406,6 +1643,8 @@ const eImageQualityCheckType = {
|
|
|
1406
1643
|
IQC_IMAGE_COLORNESS: 3,
|
|
1407
1644
|
IQC_PERSPECTIVE: 4,
|
|
1408
1645
|
IQC_BOUNDS: 5,
|
|
1646
|
+
IQC_SCREEN_CAPTURE: 6,
|
|
1647
|
+
IQC_PORTRAIT: 7,
|
|
1409
1648
|
}
|
|
1410
1649
|
|
|
1411
1650
|
const eProcessGLCommands = {
|
|
@@ -1463,6 +1702,10 @@ const eRFID_CertificateType = {
|
|
|
1463
1702
|
CT_MLS: 4,
|
|
1464
1703
|
CT_DEV_LS: 5,
|
|
1465
1704
|
CT_DEF_LS: 6,
|
|
1705
|
+
CT_BLS: 7,
|
|
1706
|
+
CT_LDS2: 8,
|
|
1707
|
+
CT_BCS: 9,
|
|
1708
|
+
CT_BCSNC: 10,
|
|
1466
1709
|
}
|
|
1467
1710
|
|
|
1468
1711
|
const eRFID_DataFile_Type = {
|
|
@@ -1546,195 +1789,203 @@ const eRFID_DataFile_Type = {
|
|
|
1546
1789
|
DFT_SESSION: 701,
|
|
1547
1790
|
DFT_LOGDATA: 702,
|
|
1548
1791
|
DFT_CHIP_PROPERTIES: 703,
|
|
1792
|
+
DFT_SAM_DATA: 800,
|
|
1793
|
+
DFT_SAM_DATA_MAX: 832,
|
|
1794
|
+
DFT_VDS: 900,
|
|
1795
|
+
DFT_VDSNC: 901,
|
|
1549
1796
|
DFT_USERDEFINED: 1000,
|
|
1550
1797
|
|
|
1551
1798
|
getTranslation: function (value) {
|
|
1552
1799
|
switch (value) {
|
|
1553
|
-
case
|
|
1554
|
-
return "
|
|
1555
|
-
case
|
|
1556
|
-
return "EF.COM"
|
|
1557
|
-
case this.DFT_PASSPORT_DG1:
|
|
1800
|
+
case 0:
|
|
1801
|
+
return "DFT_UNSPECIFIED"
|
|
1802
|
+
case 1:
|
|
1558
1803
|
return "Machine Readable Zone (DG1)"
|
|
1559
|
-
case
|
|
1560
|
-
return "Document type" + " (DG1)"
|
|
1561
|
-
case this.DFT_DL_DG1:
|
|
1562
|
-
return "Text data elements (DG1)"
|
|
1563
|
-
case this.DFT_PASSPORT_DG2:
|
|
1804
|
+
case 2:
|
|
1564
1805
|
return "Biometry - Facial data (DG2)"
|
|
1565
|
-
case
|
|
1566
|
-
return "Issuing state" + " (DG2)"
|
|
1567
|
-
case this.DFT_DL_DG2:
|
|
1568
|
-
return "License holder information (DG2)"
|
|
1569
|
-
case this.DFT_PASSPORT_DG3:
|
|
1806
|
+
case 3:
|
|
1570
1807
|
return "Biometry - Fingerprint(s) (DG3)"
|
|
1571
|
-
case
|
|
1572
|
-
return "Date of expiry" + " (DG3)"
|
|
1573
|
-
case this.DFT_DL_DG3:
|
|
1574
|
-
return "Issuing authority details (DG3)"
|
|
1575
|
-
case this.DFT_PASSPORT_DG4:
|
|
1808
|
+
case 4:
|
|
1576
1809
|
return "Biometry - Iris Data (DG4)"
|
|
1577
|
-
case
|
|
1578
|
-
return "Given name" + " (DG4)"
|
|
1579
|
-
case this.DFT_DL_DG4:
|
|
1580
|
-
return "Portrait image (DG4)"
|
|
1581
|
-
case this.DFT_PASSPORT_DG5:
|
|
1810
|
+
case 5:
|
|
1582
1811
|
return "Portrait(s) (DG5)"
|
|
1583
|
-
case
|
|
1584
|
-
return "Surname/given name at birth" + " (DG5)"
|
|
1585
|
-
case this.DFT_DL_DG5:
|
|
1586
|
-
return "Signature / usual mark image (DG5)"
|
|
1587
|
-
case this.DFT_PASSPORT_DG6:
|
|
1812
|
+
case 6:
|
|
1588
1813
|
return "not defined (DG6)"
|
|
1589
|
-
case
|
|
1590
|
-
return "Pseudonym" + " (DG6)"
|
|
1591
|
-
case this.DFT_DL_DG6:
|
|
1592
|
-
return "Biometry - Facial data (DG6)"
|
|
1593
|
-
case this.DFT_PASSPORT_DG7:
|
|
1814
|
+
case 7:
|
|
1594
1815
|
return "Signature / usual mark image (DG7)"
|
|
1595
|
-
case
|
|
1596
|
-
return "Academic title" + " (DG7)"
|
|
1597
|
-
case this.DFT_DL_DG7:
|
|
1598
|
-
return "Biometry - Fingerprint(s) (DG7)"
|
|
1599
|
-
case this.DFT_PASSPORT_DG8:
|
|
1816
|
+
case 8:
|
|
1600
1817
|
return "not defined (DG8)"
|
|
1601
|
-
case
|
|
1602
|
-
return "Date of birth" + " (DG8)"
|
|
1603
|
-
case this.DFT_DL_DG8:
|
|
1604
|
-
return "Biometry - Iris Data (DG8)"
|
|
1605
|
-
case this.DFT_PASSPORT_DG9:
|
|
1818
|
+
case 9:
|
|
1606
1819
|
return "not defined (DG9)"
|
|
1607
|
-
case
|
|
1608
|
-
return "Place of birth" + " (DG9)"
|
|
1609
|
-
case this.DFT_DL_DG9:
|
|
1610
|
-
return "Biometry - Other (DG9)"
|
|
1611
|
-
case this.DFT_PASSPORT_DG10:
|
|
1612
|
-
return "not defined (DG10)"
|
|
1613
|
-
case this.DFT_ID_DG10:
|
|
1614
|
-
return "Nationality" + " (DG10)"
|
|
1615
|
-
case this.DFT_DL_DG10:
|
|
1820
|
+
case 10:
|
|
1616
1821
|
return "not defined (DG10)"
|
|
1617
|
-
case
|
|
1822
|
+
case 11:
|
|
1618
1823
|
return "Additional personal detail(s) (DG11)"
|
|
1619
|
-
case
|
|
1620
|
-
return "Sex" + " (DG11)"
|
|
1621
|
-
case this.DFT_DL_DG11:
|
|
1622
|
-
return "Optional domestic data (DG11)"
|
|
1623
|
-
case this.DFT_PASSPORT_DG12:
|
|
1824
|
+
case 12:
|
|
1624
1825
|
return "Additional document details (DG12)"
|
|
1625
|
-
case
|
|
1626
|
-
return "Optional details" + " (DG12)"
|
|
1627
|
-
case this.DFT_DL_DG12:
|
|
1628
|
-
return "Non-match alert (DG12)"
|
|
1629
|
-
case this.DFT_PASSPORT_DG13:
|
|
1826
|
+
case 13:
|
|
1630
1827
|
return "Optional detail(s) (DG13)"
|
|
1631
|
-
case
|
|
1632
|
-
return "Undefined" + " (DG13)"
|
|
1633
|
-
case this.DFT_DL_DG13:
|
|
1634
|
-
return "Active Authentication info (DG13)"
|
|
1635
|
-
case this.DFT_PASSPORT_DG14:
|
|
1636
|
-
return "EAC info (DG14)"
|
|
1637
|
-
case this.DFT_ID_DG14:
|
|
1638
|
-
return "Undefined" + " (DG14)"
|
|
1639
|
-
case this.DFT_DL_DG14:
|
|
1828
|
+
case 14:
|
|
1640
1829
|
return "EAC info (DG14)"
|
|
1641
|
-
case
|
|
1830
|
+
case 15:
|
|
1642
1831
|
return "Active Authentication info (DG15)"
|
|
1643
|
-
case
|
|
1644
|
-
return "Undefined" + " (DG15)"
|
|
1645
|
-
case this.DFT_PASSPORT_DG16:
|
|
1832
|
+
case 16:
|
|
1646
1833
|
return "Person(s) to notify (DG16)"
|
|
1647
|
-
case
|
|
1648
|
-
return "Undefined" + " (DG16)"
|
|
1649
|
-
case this.DFT_PASSPORT_DG17:
|
|
1834
|
+
case 17:
|
|
1650
1835
|
return "DG17"
|
|
1651
|
-
case
|
|
1652
|
-
return "Place of registration" + " (DG17)"
|
|
1653
|
-
case this.DFT_PASSPORT_DG18:
|
|
1836
|
+
case 18:
|
|
1654
1837
|
return "DG18"
|
|
1655
|
-
case
|
|
1656
|
-
return "Place of registration" + " (DG18)"
|
|
1657
|
-
case this.DFT_PASSPORT_DG19:
|
|
1838
|
+
case 19:
|
|
1658
1839
|
return "DG19"
|
|
1659
|
-
case
|
|
1660
|
-
return "Residence permit 1" + " (DG19)"
|
|
1661
|
-
case this.DFT_PASSPORT_DG20:
|
|
1840
|
+
case 20:
|
|
1662
1841
|
return "DG20"
|
|
1663
|
-
case
|
|
1664
|
-
return "
|
|
1665
|
-
case
|
|
1666
|
-
return "Optional details" + " (DG21)"
|
|
1667
|
-
case this.DFT_DL_SOD:
|
|
1842
|
+
case 21:
|
|
1843
|
+
return "EF.SOD"
|
|
1844
|
+
case 165:
|
|
1668
1845
|
return "EF.SOD"
|
|
1669
|
-
case
|
|
1846
|
+
case 22:
|
|
1670
1847
|
return "EF.CVCA"
|
|
1671
|
-
case
|
|
1672
|
-
return "
|
|
1673
|
-
case
|
|
1674
|
-
return "EF.
|
|
1675
|
-
case
|
|
1676
|
-
return "
|
|
1677
|
-
case
|
|
1678
|
-
return "
|
|
1679
|
-
case
|
|
1680
|
-
return "
|
|
1681
|
-
case
|
|
1682
|
-
return "
|
|
1683
|
-
case
|
|
1684
|
-
return "
|
|
1685
|
-
case
|
|
1686
|
-
return "
|
|
1687
|
-
case
|
|
1688
|
-
return "
|
|
1689
|
-
case
|
|
1690
|
-
return "
|
|
1691
|
-
case
|
|
1692
|
-
return "
|
|
1693
|
-
case
|
|
1694
|
-
return "
|
|
1695
|
-
case
|
|
1696
|
-
return "
|
|
1697
|
-
case
|
|
1698
|
-
return "
|
|
1699
|
-
case
|
|
1700
|
-
return "
|
|
1701
|
-
case
|
|
1702
|
-
return "
|
|
1703
|
-
case
|
|
1704
|
-
return "
|
|
1705
|
-
case
|
|
1706
|
-
return "
|
|
1707
|
-
case
|
|
1708
|
-
return "
|
|
1709
|
-
|
|
1710
|
-
return
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1848
|
+
case 23:
|
|
1849
|
+
return "EF.COM"
|
|
1850
|
+
case 150:
|
|
1851
|
+
return "EF.COM"
|
|
1852
|
+
case 101:
|
|
1853
|
+
return "Document type" + " (DG1)"
|
|
1854
|
+
case 102:
|
|
1855
|
+
return "Issuing state" + " (DG2)"
|
|
1856
|
+
case 103:
|
|
1857
|
+
return "Date of expiry" + " (DG3)"
|
|
1858
|
+
case 104:
|
|
1859
|
+
return "Given name" + " (DG4)"
|
|
1860
|
+
case 105:
|
|
1861
|
+
return "Surname/given name at birth" + " (DG5)"
|
|
1862
|
+
case 106:
|
|
1863
|
+
return "Pseudonym" + " (DG6)"
|
|
1864
|
+
case 107:
|
|
1865
|
+
return "Academic title" + " (DG7)"
|
|
1866
|
+
case 108:
|
|
1867
|
+
return "Date of birth" + " (DG8)"
|
|
1868
|
+
case 109:
|
|
1869
|
+
return "Place of birth" + " (DG9)"
|
|
1870
|
+
case 110:
|
|
1871
|
+
return "Nationality" + " (DG10)"
|
|
1872
|
+
case 111:
|
|
1873
|
+
return "Sex" + " (DG11)"
|
|
1874
|
+
case 112:
|
|
1875
|
+
return "Optional details" + " (DG12)"
|
|
1876
|
+
case 113:
|
|
1877
|
+
return "Undefined" + " (DG13)"
|
|
1878
|
+
case 114:
|
|
1879
|
+
return "Undefined" + " (DG14)"
|
|
1880
|
+
case 115:
|
|
1881
|
+
return "Undefined" + " (DG15)"
|
|
1882
|
+
case 116:
|
|
1883
|
+
return "Undefined" + " (DG16)"
|
|
1884
|
+
case 117:
|
|
1885
|
+
return "Place of registration" + " (DG17)"
|
|
1886
|
+
case 118:
|
|
1887
|
+
return "Place of registration" + " (DG18)"
|
|
1888
|
+
case 119:
|
|
1889
|
+
return "Residence permit 1" + " (DG19)"
|
|
1890
|
+
case 120:
|
|
1891
|
+
return "Residence permit 2" + " (DG20)"
|
|
1892
|
+
case 121:
|
|
1893
|
+
return "Optional details" + " (DG21)"
|
|
1894
|
+
case 151:
|
|
1895
|
+
return "Text data elements (DG1)"
|
|
1896
|
+
case 152:
|
|
1897
|
+
return "License holder information (DG2)"
|
|
1898
|
+
case 153:
|
|
1899
|
+
return "Issuing authority details (DG3)"
|
|
1900
|
+
case 154:
|
|
1901
|
+
return "Portrait image (DG4)"
|
|
1902
|
+
case 155:
|
|
1903
|
+
return "Signature / usual mark image (DG5)"
|
|
1904
|
+
case 156:
|
|
1905
|
+
return "Biometry - Facial data (DG6)"
|
|
1906
|
+
case 157:
|
|
1907
|
+
return "Biometry - Fingerprint(s) (DG7)"
|
|
1908
|
+
case 158:
|
|
1909
|
+
return "Biometry - Iris Data (DG8)"
|
|
1910
|
+
case 159:
|
|
1911
|
+
return "Biometry - Other (DG9)"
|
|
1912
|
+
case 160:
|
|
1913
|
+
return "not defined (DG10)"
|
|
1914
|
+
case 161:
|
|
1915
|
+
return "Optional domestic data (DG11)"
|
|
1916
|
+
case 162:
|
|
1917
|
+
return "Non-match alert (DG12)"
|
|
1918
|
+
case 163:
|
|
1919
|
+
return "Active Authentication info (DG13)"
|
|
1920
|
+
case 164:
|
|
1921
|
+
return "EAC info (DG14)"
|
|
1922
|
+
case 166:
|
|
1923
|
+
return "DFT_DL_CE"
|
|
1924
|
+
case 167:
|
|
1925
|
+
return "DFT_DL_CVCA"
|
|
1926
|
+
case 200:
|
|
1927
|
+
return "EF.CardAccess"
|
|
1928
|
+
case 201:
|
|
1929
|
+
return "EF.CardSecurity"
|
|
1930
|
+
case 202:
|
|
1931
|
+
return "EF.ChipSecurity"
|
|
1932
|
+
case 300:
|
|
1933
|
+
return "MIFARE data"
|
|
1934
|
+
case 301:
|
|
1935
|
+
return "MIFARE validity"
|
|
1936
|
+
case 400:
|
|
1937
|
+
return "DFT_ATR"
|
|
1938
|
+
case 500:
|
|
1939
|
+
return "DFT_ESIGN_PK"
|
|
1940
|
+
case 501:
|
|
1941
|
+
return "DFT_ESIGN_SIGNEDDATA"
|
|
1942
|
+
case 600:
|
|
1943
|
+
return "Certificate"
|
|
1944
|
+
case 601:
|
|
1945
|
+
return "DFT_MASTERLIST"
|
|
1946
|
+
case 602:
|
|
1947
|
+
return "DFT_DEFECTLIST"
|
|
1948
|
+
case 603:
|
|
1949
|
+
return "DFT_DEVIATIONLIST"
|
|
1950
|
+
case 700:
|
|
1951
|
+
return "App directory"
|
|
1952
|
+
case 701:
|
|
1953
|
+
return "DFT_SESSION"
|
|
1954
|
+
case 702:
|
|
1955
|
+
return "DFT_LOGDATA"
|
|
1956
|
+
case 703:
|
|
1957
|
+
return "DFT_CHIP_PROPERTIES"
|
|
1958
|
+
case 1000:
|
|
1959
|
+
return "DFT_USERDEFINED"
|
|
1960
|
+
default:
|
|
1961
|
+
return value
|
|
1962
|
+
}
|
|
1963
|
+
}
|
|
1964
|
+
}
|
|
1965
|
+
|
|
1966
|
+
const eRFID_NotificationAndErrorCodes = {
|
|
1967
|
+
RFID_NOTIFICATION_ERROR: 65536,
|
|
1968
|
+
RFID_NOTIFICATION_DOCUMENT_READY: 65537,
|
|
1969
|
+
RFID_NOTIFICATION_READ_PROTOCOL4: 65539,
|
|
1970
|
+
RFID_NOTIFICATION_READ_PROTOCOL3: 65546,
|
|
1971
|
+
RFID_NOTIFICATION_PROGRESS: 65547,
|
|
1972
|
+
RFID_NOTIFICATION_TA_STEP: 65550,
|
|
1973
|
+
RFID_NOTIFICATION_SM_REQUIRED: 65551,
|
|
1974
|
+
RFID_NOTIFICATION_ISO_ERROR: 69632,
|
|
1975
|
+
RFID_NOTIFICATION_PA_REQUEST: 77824,
|
|
1976
|
+
RFID_NOTIFICATION_SM_ESTABLISHED: 81935,
|
|
1977
|
+
RFID_NOTIFICATION_PCSC_READER_DISCONNECTED: 131072,
|
|
1978
|
+
RFID_NOTIFICATION_PCSC_READER_LIST_CHANGED: 131073,
|
|
1979
|
+
RFID_NOTIFICATION_PCSC_BYTES_RECEIVED: 131074,
|
|
1980
|
+
RFID_NOTIFICATION_PCSC_TOTAL_READING_TIME: 131075,
|
|
1981
|
+
RFID_NOTIFICATION_PCSC_DATA_RECEIVED: 131076,
|
|
1982
|
+
RFID_NOTIFICATION_PCSC_BYTES_SENT: 131077,
|
|
1983
|
+
RFID_NOTIFICATION_PCSC_TOTAL_READING_SPEED: 131078,
|
|
1984
|
+
RFID_NOTIFICATION_PCSC_TOTAL_PROCESS_TIME: 131079,
|
|
1985
|
+
RFID_NOTIFICATION_PCSC_READER_LIST_CHANGING: 131080,
|
|
1986
|
+
RFID_NOTIFICATION_PCSC_EXT_LENGTH_SUPPORT: 131088,
|
|
1987
|
+
RFID_NOTIFICATION_PA_CERTIFICATE_CHAIN: 131089,
|
|
1988
|
+
RFID_NOTIFICATION_PA_CERTIFICATE_CHAIN_ITEM: 131090,
|
|
1738
1989
|
RFID_NOTIFICATION_SCENARIO: 131104,
|
|
1739
1990
|
RFID_NOTIFICATION_PCSC_READING_DATAGROUP: 196608,
|
|
1740
1991
|
RFID_NOTIFICATION_PCSC_FILE_NOT_FOUND: 262144,
|
|
@@ -1769,6 +2020,7 @@ const eRFID_NotificationAndErrorCodes = {
|
|
|
1769
2020
|
RFID_ERROR_INVALID_PARAMETER: -2147418108,
|
|
1770
2021
|
RFID_ERROR_NOT_INITIALIZED: -2147418107,
|
|
1771
2022
|
RFID_Error_NotEnoughMemory: -2147418106,
|
|
2023
|
+
RFID_ERROR_NOT_ENOUGH_DATA: -2147418105,
|
|
1772
2024
|
RFID_ERROR_INVALID_DIRECTORY: -2147418104,
|
|
1773
2025
|
RFID_ERROR_UNKNOWN_COMMAND: -2147418103,
|
|
1774
2026
|
RFID_ERROR_FILE_IO_ERROR: -2147418102,
|
|
@@ -1847,11 +2099,25 @@ const eRFID_NotificationAndErrorCodes = {
|
|
|
1847
2099
|
RFID_LAYER6_EXT_AUTH_FAILURE: -2046819576,
|
|
1848
2100
|
RFID_LAYER6_GENERAL_AUTH_FAILURE: -2046819575,
|
|
1849
2101
|
RFID_ERROR_FAILED: -1,
|
|
2102
|
+
RFID_ERROR_CODES_LAYER_34_NO_ERROR: -2080374784,
|
|
2103
|
+
RFID_ERROR_CODES_LAYER_34_TIMEOUT: -2080309248,
|
|
2104
|
+
RFID_ERROR_CODES_LAYER_34_COLLISION: -2080243712,
|
|
2105
|
+
RFID_ERROR_CODES_LAYER_34_CRC: -2080178176,
|
|
2106
|
+
RFID_ERROR_CODES_LAYER_34_DATA_INTEGRITY: -2080112640,
|
|
2107
|
+
RFID_ERROR_CODES_LAYER_34_DATA_LENGTH: -2080047104,
|
|
2108
|
+
RFID_ERROR_CODES_LAYER_34_RFU: -2079981568,
|
|
2109
|
+
RFID_ERROR_CODES_LAYER_34_COLLISION_TOO_MANY: -2079916032,
|
|
2110
|
+
RFID_ERROR_CODES_LAYER_34_PROTOCOL_B: -2079850496,
|
|
2111
|
+
RFID_ERROR_CODES_LAYER_34_DATA_CONTENTS: -2079784960,
|
|
2112
|
+
RFID_ERROR_CODES_LAYER_34_PROTOCOL: -2079719424,
|
|
2113
|
+
RFID_ERROR_CODES_LAYER_34_GLOBAL_TIMEOUT: -2079653888,
|
|
2114
|
+
RFID_ERROR_CODES_LAYER_34_MIFARE_AUTH: -2079588352,
|
|
2115
|
+
RFID_ERROR_CODES_LAYER_34_SAM_ERROR: -2079522816,
|
|
2116
|
+
RFID_ERROR_CODES_LAYER_34_SAM_COLLISION: -2079457280,
|
|
2117
|
+
RFID_ERROR_CODES_LAYER_34_SAM_ACKNOWLEDGE: -2079391744,
|
|
1850
2118
|
|
|
1851
2119
|
getTranslation: function (value) {
|
|
1852
2120
|
switch (value) {
|
|
1853
|
-
case this.RFID_ERROR_NO_ERROR:
|
|
1854
|
-
return "OK"
|
|
1855
2121
|
case -2147483647:
|
|
1856
2122
|
return "Error - ASN: Incorrect data"
|
|
1857
2123
|
case -2147483646:
|
|
@@ -1866,6 +2132,8 @@ const eRFID_NotificationAndErrorCodes = {
|
|
|
1866
2132
|
return "Error - ASN Signed data: Version incorrect data"
|
|
1867
2133
|
case -2147483631:
|
|
1868
2134
|
return "Error - ASN Signed data: Digest algorithms incorrect data"
|
|
2135
|
+
case -2147483630:
|
|
2136
|
+
return "Error - ASN LDS object: Version info incorrect data"
|
|
1869
2137
|
case -2147483629:
|
|
1870
2138
|
return "Error - ASN LDS object: Incorrect data"
|
|
1871
2139
|
case -2147483628:
|
|
@@ -1874,8 +2142,6 @@ const eRFID_NotificationAndErrorCodes = {
|
|
|
1874
2142
|
return "Error - ASN LDS object: Digest algorithm incorrect data"
|
|
1875
2143
|
case -2147483626:
|
|
1876
2144
|
return "Error - ASN LDS object: DG hashes incorrect data"
|
|
1877
|
-
case -2147483630:
|
|
1878
|
-
return "Error - ASN LDS object: Version info incorrect data"
|
|
1879
2145
|
case -2147483625:
|
|
1880
2146
|
return "Error - ASN Certificate: Incorrect data"
|
|
1881
2147
|
case -2147483624:
|
|
@@ -1920,10 +2186,10 @@ const eRFID_NotificationAndErrorCodes = {
|
|
|
1920
2186
|
return "Error - ICAO Signer info: Unsupported signature algorithm"
|
|
1921
2187
|
case -2147483596:
|
|
1922
2188
|
return "Error - ICAO Signer info: Message digest error"
|
|
1923
|
-
case -2147483594:
|
|
1924
|
-
return "Error - ICAO Signer info: Signed attributes missed"
|
|
1925
2189
|
case -2147483595:
|
|
1926
2190
|
return "Error - Auth: Signer info cannot find certificate"
|
|
2191
|
+
case -2147483594:
|
|
2192
|
+
return "Error - ICAO Signer info: Signed attributes missed"
|
|
1927
2193
|
case -2147483568:
|
|
1928
2194
|
return "Error - Auth: Error"
|
|
1929
2195
|
case -2147483567:
|
|
@@ -1948,6 +2214,68 @@ const eRFID_NotificationAndErrorCodes = {
|
|
|
1948
2214
|
return "Error - Auth: Signature check failed"
|
|
1949
2215
|
case -2147483536:
|
|
1950
2216
|
return "Error - DG: Wrong Tag"
|
|
2217
|
+
case -2147458430:
|
|
2218
|
+
return "LAYER6: Reading beyond EOF / Unexpected EOF"
|
|
2219
|
+
case -2147458429:
|
|
2220
|
+
return "LAYER6: PWD Deactivated"
|
|
2221
|
+
case -2147458112:
|
|
2222
|
+
return "LAYER6: PWD Blocked"
|
|
2223
|
+
case -2147458111:
|
|
2224
|
+
return "LAYER6: PWD Suspended"
|
|
2225
|
+
case -2147456637:
|
|
2226
|
+
return "LAYER6: PWD Blocked 2"
|
|
2227
|
+
case -2147456636:
|
|
2228
|
+
return "LAYER6: PWD Deactivated 2"
|
|
2229
|
+
case -2147456635:
|
|
2230
|
+
return "LAYER6: PWD Suspended 2"
|
|
2231
|
+
case -2147456384:
|
|
2232
|
+
return "LAYER6: Incorrect Params"
|
|
2233
|
+
case -2147456382:
|
|
2234
|
+
return "LAYER6: File selection failure / file not found"
|
|
2235
|
+
case -2147456376:
|
|
2236
|
+
return "LAYER6: No Reference Data"
|
|
2237
|
+
case -2147456256:
|
|
2238
|
+
return "LAYER6: Reading beyond EOF / Unexpected EOF"
|
|
2239
|
+
case -2147418112:
|
|
2240
|
+
return "RFID: Creation or connection to Graph Manager COM server failed"
|
|
2241
|
+
case -2147418111:
|
|
2242
|
+
return "RFID: No chip is detected"
|
|
2243
|
+
case -2147418110:
|
|
2244
|
+
return "RFID: Unavailable"
|
|
2245
|
+
case -2147418108:
|
|
2246
|
+
return "RFID: Invalid parameter in ExecuteCommand() call found"
|
|
2247
|
+
case -2147418107:
|
|
2248
|
+
return "RFID: Device is uninitialized"
|
|
2249
|
+
case -2147418106:
|
|
2250
|
+
return "RFID: Out of memory"
|
|
2251
|
+
case -2147418104:
|
|
2252
|
+
return "RFID: Invalid directory"
|
|
2253
|
+
case -2147418103:
|
|
2254
|
+
return "RFID: Unknown command"
|
|
2255
|
+
case -2147418102:
|
|
2256
|
+
return "RFID File: IO Error"
|
|
2257
|
+
case -2147418101:
|
|
2258
|
+
return "RFID: RFID is Busy"
|
|
2259
|
+
case -2147418100:
|
|
2260
|
+
return "RFID: Firmware need to be updated with newer version"
|
|
2261
|
+
case -2147352576:
|
|
2262
|
+
return "PCSC: Failed"
|
|
2263
|
+
case -2147352575:
|
|
2264
|
+
return "PCSC: Reader is unavailable"
|
|
2265
|
+
case -2147352574:
|
|
2266
|
+
return "PCSC: Card cannot be connected"
|
|
2267
|
+
case -2147352573:
|
|
2268
|
+
return "PCSC: Card is not connected"
|
|
2269
|
+
case -2147352572:
|
|
2270
|
+
return "PCSC: Operation is cancelled"
|
|
2271
|
+
case -2147352571:
|
|
2272
|
+
return "PCSC: Card Is Busy"
|
|
2273
|
+
case -2147352570:
|
|
2274
|
+
return "PCSC: Failed Smart Card"
|
|
2275
|
+
case -2147352560:
|
|
2276
|
+
return "PCSC: ExtLe Failed"
|
|
2277
|
+
case -2146409536:
|
|
2278
|
+
return "LAYER6: PWD Failed"
|
|
1951
2279
|
case -2130706400:
|
|
1952
2280
|
return "Error - PACE: Info Not Available"
|
|
1953
2281
|
case -2130706399:
|
|
@@ -2016,12 +2344,6 @@ const eRFID_NotificationAndErrorCodes = {
|
|
|
2016
2344
|
return "Error - AA: Incorrect Trailer"
|
|
2017
2345
|
case -2130706345:
|
|
2018
2346
|
return "Error - AA: Unsupported Digest Algorithm"
|
|
2019
|
-
case -2130706320:
|
|
2020
|
-
return "Error - RI: Sector Key Cannot Find"
|
|
2021
|
-
case -2130706319:
|
|
2022
|
-
return "Error - RI: Sector Key Incorrect Data"
|
|
2023
|
-
case -2130706318:
|
|
2024
|
-
return "Error - RI: Sector Key Incomplete Data"
|
|
2025
2347
|
case -2130706336:
|
|
2026
2348
|
return "Error - CV Certificate: Missing mandatory data PK"
|
|
2027
2349
|
case -2130706334:
|
|
@@ -2032,6 +2354,12 @@ const eRFID_NotificationAndErrorCodes = {
|
|
|
2032
2354
|
return "Error - CV Certificate: Private key unsupported"
|
|
2033
2355
|
case -2130706331:
|
|
2034
2356
|
return "Error - CV Certificate: Private key invalid params"
|
|
2357
|
+
case -2130706320:
|
|
2358
|
+
return "Error - RI: Sector Key Cannot Find"
|
|
2359
|
+
case -2130706319:
|
|
2360
|
+
return "Error - RI: Sector Key Incorrect Data"
|
|
2361
|
+
case -2130706318:
|
|
2362
|
+
return "Error - RI: Sector Key Incomplete Data"
|
|
2035
2363
|
case -2130706080:
|
|
2036
2364
|
return "Error - CV Certificate: Incorrect data"
|
|
2037
2365
|
case -2130706079:
|
|
@@ -2054,150 +2382,156 @@ const eRFID_NotificationAndErrorCodes = {
|
|
|
2054
2382
|
return "Error - CV Certificate: Private key incorrect data"
|
|
2055
2383
|
case -2130706070:
|
|
2056
2384
|
return "Error - CV Certificate: Private key missing"
|
|
2057
|
-
case -
|
|
2058
|
-
return "
|
|
2059
|
-
case -
|
|
2060
|
-
return "
|
|
2061
|
-
case -
|
|
2062
|
-
return "
|
|
2063
|
-
case -
|
|
2064
|
-
return "
|
|
2065
|
-
case -
|
|
2066
|
-
return "
|
|
2067
|
-
case -
|
|
2068
|
-
return "
|
|
2069
|
-
case -
|
|
2070
|
-
return "
|
|
2071
|
-
case -
|
|
2072
|
-
return "
|
|
2073
|
-
case -
|
|
2074
|
-
return "
|
|
2075
|
-
case -
|
|
2076
|
-
return "
|
|
2077
|
-
case -
|
|
2078
|
-
return "
|
|
2079
|
-
case -
|
|
2080
|
-
return "
|
|
2081
|
-
case -
|
|
2082
|
-
return "
|
|
2083
|
-
case -
|
|
2084
|
-
return "
|
|
2085
|
-
case -
|
|
2086
|
-
return "
|
|
2087
|
-
case -
|
|
2088
|
-
return "
|
|
2089
|
-
case -
|
|
2090
|
-
return "
|
|
2091
|
-
case -
|
|
2092
|
-
return "
|
|
2093
|
-
case -
|
|
2094
|
-
return "
|
|
2095
|
-
case -
|
|
2096
|
-
return "
|
|
2097
|
-
case -
|
|
2098
|
-
return "
|
|
2099
|
-
case -
|
|
2100
|
-
return "
|
|
2101
|
-
case -
|
|
2102
|
-
return "
|
|
2103
|
-
case -
|
|
2104
|
-
return "
|
|
2105
|
-
case -
|
|
2106
|
-
return "
|
|
2107
|
-
case -
|
|
2108
|
-
return "
|
|
2109
|
-
case -
|
|
2110
|
-
return "
|
|
2111
|
-
case -
|
|
2112
|
-
return "
|
|
2113
|
-
case -
|
|
2114
|
-
return "
|
|
2115
|
-
case -
|
|
2116
|
-
return "
|
|
2117
|
-
case -
|
|
2118
|
-
return "
|
|
2119
|
-
case -
|
|
2120
|
-
return "
|
|
2121
|
-
case -
|
|
2122
|
-
return "
|
|
2123
|
-
case -
|
|
2124
|
-
return "
|
|
2125
|
-
case -
|
|
2126
|
-
return "
|
|
2127
|
-
case -
|
|
2128
|
-
return "
|
|
2129
|
-
case -
|
|
2130
|
-
return "
|
|
2131
|
-
case -
|
|
2132
|
-
return "
|
|
2133
|
-
case -
|
|
2134
|
-
return "
|
|
2135
|
-
case -
|
|
2136
|
-
return "
|
|
2137
|
-
case -
|
|
2138
|
-
return "
|
|
2139
|
-
case -
|
|
2140
|
-
return "
|
|
2141
|
-
case -
|
|
2142
|
-
return "
|
|
2143
|
-
case -
|
|
2144
|
-
return "
|
|
2145
|
-
case -
|
|
2146
|
-
return "
|
|
2147
|
-
case -
|
|
2148
|
-
return "
|
|
2149
|
-
case -
|
|
2150
|
-
return "
|
|
2151
|
-
case -
|
|
2152
|
-
return "
|
|
2153
|
-
case -
|
|
2154
|
-
return "
|
|
2155
|
-
case -
|
|
2156
|
-
return "
|
|
2157
|
-
case -
|
|
2158
|
-
return "
|
|
2159
|
-
case -
|
|
2160
|
-
return "
|
|
2161
|
-
case -
|
|
2162
|
-
return "
|
|
2163
|
-
case -
|
|
2164
|
-
return "
|
|
2165
|
-
case -
|
|
2166
|
-
return "
|
|
2167
|
-
case -
|
|
2168
|
-
return "
|
|
2169
|
-
case -
|
|
2170
|
-
return "
|
|
2171
|
-
case -
|
|
2172
|
-
return "
|
|
2173
|
-
case -
|
|
2174
|
-
return "
|
|
2175
|
-
case -
|
|
2176
|
-
return "
|
|
2177
|
-
case -
|
|
2178
|
-
return "
|
|
2179
|
-
case -
|
|
2180
|
-
return "
|
|
2181
|
-
case -
|
|
2182
|
-
return "
|
|
2183
|
-
case -
|
|
2184
|
-
return "
|
|
2185
|
-
case -
|
|
2186
|
-
return "Notification -
|
|
2187
|
-
case -
|
|
2188
|
-
return "Notification -
|
|
2189
|
-
case -
|
|
2190
|
-
return "Notification -
|
|
2191
|
-
case -
|
|
2192
|
-
return "Notification -
|
|
2193
|
-
case -
|
|
2194
|
-
return "Notification -
|
|
2195
|
-
case -
|
|
2196
|
-
return "Notification -
|
|
2197
|
-
case -
|
|
2198
|
-
return "Notification -
|
|
2199
|
-
case -
|
|
2200
|
-
return "Notification -
|
|
2385
|
+
case -2097152000:
|
|
2386
|
+
return "RFID: Not Performed"
|
|
2387
|
+
case -2097151999:
|
|
2388
|
+
return "RFID: Session Is Closed"
|
|
2389
|
+
case -2097151998:
|
|
2390
|
+
return "RFID: Terminal Unsupported Operation"
|
|
2391
|
+
case -2097151984:
|
|
2392
|
+
return "RFID: Terminal Type Unknown"
|
|
2393
|
+
case -2097151983:
|
|
2394
|
+
return "RFID: Terminal Type Bad Certificate"
|
|
2395
|
+
case -2097151982:
|
|
2396
|
+
return "RFID: Terminal Type Not Set"
|
|
2397
|
+
case -2097151981:
|
|
2398
|
+
return "RFID: Procedure Type Unknown"
|
|
2399
|
+
case -2097151980:
|
|
2400
|
+
return "RFID: Procedure Type Unsupported"
|
|
2401
|
+
case -2097151979:
|
|
2402
|
+
return "RFID: Procedure Type Not Set"
|
|
2403
|
+
case -2097151978:
|
|
2404
|
+
return "RFID: Access Key Unknown Type"
|
|
2405
|
+
case -2097151977:
|
|
2406
|
+
return "RFID: Access Key Unsupported SM Type"
|
|
2407
|
+
case -2097151976:
|
|
2408
|
+
return "RFID: Access Key Incorrect SM Type"
|
|
2409
|
+
case -2097151975:
|
|
2410
|
+
return "RFID: Access Key Restricted"
|
|
2411
|
+
case -2097151974:
|
|
2412
|
+
return "RFID: Access Key Incorrect Data"
|
|
2413
|
+
case -2097151973:
|
|
2414
|
+
return "RFID: Access Key Not Set"
|
|
2415
|
+
case -2097151972:
|
|
2416
|
+
return "RFID: Pwd Management Not Authorized"
|
|
2417
|
+
case -2097151968:
|
|
2418
|
+
return "RFID: Access Control UnknownType"
|
|
2419
|
+
case -2097151967:
|
|
2420
|
+
return "RFID: Requires SM"
|
|
2421
|
+
case -2097151966:
|
|
2422
|
+
return "RFID: Requires PACE"
|
|
2423
|
+
case -2097151965:
|
|
2424
|
+
return "RFID: Requires CA Keys"
|
|
2425
|
+
case -2097151964:
|
|
2426
|
+
return "RFID: Requires TA"
|
|
2427
|
+
case -2097151963:
|
|
2428
|
+
return "RFID: Requires CA"
|
|
2429
|
+
case -2097151962:
|
|
2430
|
+
return "RFID: Incorrect Option CA"
|
|
2431
|
+
case -2097151961:
|
|
2432
|
+
return "RFID: CA Failed"
|
|
2433
|
+
case -2097151960:
|
|
2434
|
+
return "RFID: TA Failed"
|
|
2435
|
+
case -2097151959:
|
|
2436
|
+
return "RFID: AA Failed"
|
|
2437
|
+
case -2097151958:
|
|
2438
|
+
return "RFID: RI Failed"
|
|
2439
|
+
case -2097151952:
|
|
2440
|
+
return "RFID: SO Signature Check Failed"
|
|
2441
|
+
case -2097151951:
|
|
2442
|
+
return "RFID: Hash Check Failed"
|
|
2443
|
+
case -2097151936:
|
|
2444
|
+
return "RFID: Invalid Aux Data Date Of Expiry"
|
|
2445
|
+
case -2097151935:
|
|
2446
|
+
return "RFID: Invalid Aux Data Date Of Birth"
|
|
2447
|
+
case -2097151934:
|
|
2448
|
+
return "RFID: Invalid Aux Data Community ID"
|
|
2449
|
+
case -2097151920:
|
|
2450
|
+
return "RFID: eSign Requires App Selection"
|
|
2451
|
+
case -2097151919:
|
|
2452
|
+
return "RFID: eSign PIN Not Set"
|
|
2453
|
+
case -2097151918:
|
|
2454
|
+
return "RFID: eSign PIN Not Verified"
|
|
2455
|
+
case -2097151904:
|
|
2456
|
+
return "RFID: Incorrect data"
|
|
2457
|
+
case -2097086464:
|
|
2458
|
+
return "RFID File: Not Enough Data"
|
|
2459
|
+
case -2097020928:
|
|
2460
|
+
return "RFID File: Incorrect Data"
|
|
2461
|
+
case -2096955392:
|
|
2462
|
+
return "RFID File: Unexpected Data"
|
|
2463
|
+
case -2096889856:
|
|
2464
|
+
return "RFID File: Contents Unexpected Data"
|
|
2465
|
+
case -2096824320:
|
|
2466
|
+
return "RFID File: Wrong Tag"
|
|
2467
|
+
case -2096758784:
|
|
2468
|
+
return "RFID File: Cannot Use Data"
|
|
2469
|
+
case -2096693248:
|
|
2470
|
+
return "RFID File: Cannot Read Data"
|
|
2471
|
+
case -2096627712:
|
|
2472
|
+
return "RFID File: Access Denied"
|
|
2473
|
+
case -2046820352:
|
|
2474
|
+
return "LAYER6: Secure Messaging was not activated"
|
|
2475
|
+
case -2046820351:
|
|
2476
|
+
return "LAYER6: ISO7816_A_03 \"Application selection failure\""
|
|
2477
|
+
case -2046820096:
|
|
2478
|
+
return "LAYER6: ISO7816_B_01 \"Mutual authentication MAC failure\""
|
|
2479
|
+
case -2046820095:
|
|
2480
|
+
return "LAYER6: ISO7816_B_02 \"Mutual authentication encryption failure\""
|
|
2481
|
+
case -2046820094:
|
|
2482
|
+
return "LAYER6: ISO7816_B_03 \"Mutual authentication failure\""
|
|
2483
|
+
case -2046819840:
|
|
2484
|
+
return "LAYER6: SM failure – MAC missing"
|
|
2485
|
+
case -2046819839:
|
|
2486
|
+
return "LAYER6: SM failure – cryptogram missing"
|
|
2487
|
+
case -2046819838:
|
|
2488
|
+
return "LAYER6: SM failure – secured status bytes missing"
|
|
2489
|
+
case -2046819837:
|
|
2490
|
+
return "LAYER6: SM failure – incorrect MAC"
|
|
2491
|
+
case -2046819836:
|
|
2492
|
+
return "LAYER6: SM failure – incorrect cryptogram"
|
|
2493
|
+
case -2046819584:
|
|
2494
|
+
return "LAYER6: Not TLV response data"
|
|
2495
|
+
case -2046819583:
|
|
2496
|
+
return "LAYER6: Wrong data length (APDU_INS_GET_CHALLENGE)"
|
|
2497
|
+
case -2046819582:
|
|
2498
|
+
return "LAYER6: APDU_INS_INTERNAL_AUTHENTICATE failure"
|
|
2499
|
+
case -2046819581:
|
|
2500
|
+
return "LAYER6: MSE:Set KAT failure"
|
|
2501
|
+
case -2046819580:
|
|
2502
|
+
return "LAYER6: MSE:Set DST failure"
|
|
2503
|
+
case -2046819579:
|
|
2504
|
+
return "LAYER6: PSO CERTIFICATE failure"
|
|
2505
|
+
case -2046819578:
|
|
2506
|
+
return "LAYER6: MSE:Set AT failure"
|
|
2507
|
+
case -2046819577:
|
|
2508
|
+
return "LAYER6: GET CHALLENGE failure"
|
|
2509
|
+
case -2046819576:
|
|
2510
|
+
return "LAYER6: APDU_INS_EXTERNAL_AUTHENTICATE (External Authentication) failure"
|
|
2511
|
+
case -2046819575:
|
|
2512
|
+
return "LAYER6: General Authenticity Failure"
|
|
2513
|
+
case -1879048191:
|
|
2514
|
+
return "Notification - ASN certificate: Incorrect version"
|
|
2515
|
+
case -1879048190:
|
|
2516
|
+
return "Notification - ASN certificate: Non-matching signature algorithm"
|
|
2517
|
+
case -1879048189:
|
|
2518
|
+
return "Notification - ASN certificate: Incorrect time coding"
|
|
2519
|
+
case -1879048188:
|
|
2520
|
+
return "Notification - ASN certificate: Incorrect use of generalized time"
|
|
2521
|
+
case -1879048187:
|
|
2522
|
+
return "Notification - ASN certificate: Empty issuer"
|
|
2523
|
+
case -1879048186:
|
|
2524
|
+
return "Notification - ASN certificate: Empty subject"
|
|
2525
|
+
case -1879048184:
|
|
2526
|
+
return "Notification - ASN certificate: Unsupported critical extension"
|
|
2527
|
+
case -1879048178:
|
|
2528
|
+
return "Notification - ASN certificate: Forced default CSCA role"
|
|
2529
|
+
case -1879048177:
|
|
2530
|
+
return "Notification - ASN certificate: Forced Default DS role"
|
|
2531
|
+
case -1879048176:
|
|
2532
|
+
return "Notification - ASN certificate: Incorrect issuer subject DS"
|
|
2533
|
+
case -1879048169:
|
|
2534
|
+
return "Notification - ASN certificate: Duplicating extensions"
|
|
2201
2535
|
case -1879048160:
|
|
2202
2536
|
return "Notification - ICAO COM: LDS version incorrect"
|
|
2203
2537
|
case -1879048159:
|
|
@@ -2222,22 +2556,12 @@ const eRFID_NotificationAndErrorCodes = {
|
|
|
2222
2556
|
return "Notification - ICAO application: Unicode version inconsistent"
|
|
2223
2557
|
case -1879047936:
|
|
2224
2558
|
return "Notification - ASN signed data: OID incorrect"
|
|
2225
|
-
case -1879047776:
|
|
2226
|
-
return "Notification - ASN signed data: Version incorrect"
|
|
2227
2559
|
case -1879047935:
|
|
2228
2560
|
return "Notification - ICAO signed data: Version incorrect"
|
|
2229
2561
|
case -1879047934:
|
|
2230
2562
|
return "Notification - ICAO signed data: Digest algorithms empty"
|
|
2231
2563
|
case -1879047933:
|
|
2232
2564
|
return "Notification - ICAO signed data: Digest algorithms unsupported"
|
|
2233
|
-
case -1879047927:
|
|
2234
|
-
return "Notification - ICAO signed data: Signer infos multiple entries"
|
|
2235
|
-
case -1879047760:
|
|
2236
|
-
return "Notification - ICAO signed data: Certificates missed"
|
|
2237
|
-
case -1879047759:
|
|
2238
|
-
return "Notification - ICAO signed data: Certificates empty"
|
|
2239
|
-
case -1879047758:
|
|
2240
|
-
return "Notification - ICAO signed data: CRLs incorrect usage"
|
|
2241
2565
|
case -1879047932:
|
|
2242
2566
|
return "Notification - ICAO LDS object: Incorrect content OID"
|
|
2243
2567
|
case -1879047931:
|
|
@@ -2248,8 +2572,8 @@ const eRFID_NotificationAndErrorCodes = {
|
|
|
2248
2572
|
return "Notification - ICAO LDS object: DG hash extra"
|
|
2249
2573
|
case -1879047928:
|
|
2250
2574
|
return "Notification - ICAO LDS object: Version incorrect"
|
|
2251
|
-
case -
|
|
2252
|
-
return "Notification - ICAO
|
|
2575
|
+
case -1879047927:
|
|
2576
|
+
return "Notification - ICAO signed data: Signer infos multiple entries"
|
|
2253
2577
|
case -1879047926:
|
|
2254
2578
|
return "Notification - ASN signer info: Version incorrect"
|
|
2255
2579
|
case -1879047925:
|
|
@@ -2268,12 +2592,6 @@ const eRFID_NotificationAndErrorCodes = {
|
|
|
2268
2592
|
return "Notification - ASN signer info: Content type attr data"
|
|
2269
2593
|
case -1879047918:
|
|
2270
2594
|
return "Notification - ASN signer info: Content type attr value"
|
|
2271
|
-
case -1879047909:
|
|
2272
|
-
return "Notification - ASN signer info: Signing time attr missing"
|
|
2273
|
-
case -1879047908:
|
|
2274
|
-
return "Notification - ASN signer info: Signing time attr data"
|
|
2275
|
-
case -1879047907:
|
|
2276
|
-
return "Notification - ASN signer info: Signing time attr value"
|
|
2277
2595
|
case -1879047915:
|
|
2278
2596
|
return "Notification - Auth signer info: Certificate validity"
|
|
2279
2597
|
case -1879047914:
|
|
@@ -2286,36 +2604,144 @@ const eRFID_NotificationAndErrorCodes = {
|
|
|
2286
2604
|
return "Notification - Auth signer info: Certificate signature invalid"
|
|
2287
2605
|
case -1879047910:
|
|
2288
2606
|
return "Notification: Unsupported image format"
|
|
2289
|
-
case
|
|
2290
|
-
return "Notification -
|
|
2291
|
-
case
|
|
2292
|
-
return "Notification -
|
|
2293
|
-
case
|
|
2294
|
-
return "Notification -
|
|
2295
|
-
case
|
|
2296
|
-
return "Notification -
|
|
2297
|
-
case
|
|
2298
|
-
return "Notification -
|
|
2299
|
-
case
|
|
2300
|
-
return "Notification -
|
|
2301
|
-
case
|
|
2302
|
-
return "Notification -
|
|
2303
|
-
case
|
|
2304
|
-
return "Notification -
|
|
2305
|
-
case
|
|
2306
|
-
return "Notification -
|
|
2307
|
-
case
|
|
2308
|
-
return "Notification -
|
|
2309
|
-
case
|
|
2310
|
-
return "Notification -
|
|
2311
|
-
case
|
|
2312
|
-
return "Notification -
|
|
2313
|
-
case
|
|
2314
|
-
return "Notification -
|
|
2315
|
-
case
|
|
2316
|
-
return "Notification -
|
|
2317
|
-
case
|
|
2318
|
-
return "Notification -
|
|
2607
|
+
case -1879047909:
|
|
2608
|
+
return "Notification - ASN signer info: Signing time attr missing"
|
|
2609
|
+
case -1879047908:
|
|
2610
|
+
return "Notification - ASN signer info: Signing time attr data"
|
|
2611
|
+
case -1879047907:
|
|
2612
|
+
return "Notification - ASN signer info: Signing time attr value"
|
|
2613
|
+
case -1879047776:
|
|
2614
|
+
return "Notification - ASN signed data: Version incorrect"
|
|
2615
|
+
case -1879047760:
|
|
2616
|
+
return "Notification - ICAO signed data: Certificates missed"
|
|
2617
|
+
case -1879047759:
|
|
2618
|
+
return "Notification - ICAO signed data: Certificates empty"
|
|
2619
|
+
case -1879047758:
|
|
2620
|
+
return "Notification - ICAO signed data: CRLs incorrect usage"
|
|
2621
|
+
case -1879047744:
|
|
2622
|
+
return "Notification - ICAO master list: Version incorrect"
|
|
2623
|
+
case -1879047680:
|
|
2624
|
+
return "Notification - ICAO certificate: Version missed"
|
|
2625
|
+
case -1879047679:
|
|
2626
|
+
return "Notification - ICAO certificate: Version incorrect"
|
|
2627
|
+
case -1879047678:
|
|
2628
|
+
return "Notification - ICAO certificate: Issuer country missed"
|
|
2629
|
+
case -1879047677:
|
|
2630
|
+
return "Notification - ICAO certificate: Issuer common name missed"
|
|
2631
|
+
case -1879047676:
|
|
2632
|
+
return "Notification - ICAO certificate: Issuer country non-compliant"
|
|
2633
|
+
case -1879047675:
|
|
2634
|
+
return "Notification - ICAO certificate: Subject country missed"
|
|
2635
|
+
case -1879047674:
|
|
2636
|
+
return "Notification - ICAO certificate: Subject common name missed"
|
|
2637
|
+
case -1879047673:
|
|
2638
|
+
return "Notification - ICAO certificate: Subject country non-compliant"
|
|
2639
|
+
case -1879047672:
|
|
2640
|
+
return "Notification - ICAO certificate: Using non-compliant data"
|
|
2641
|
+
case -1879047671:
|
|
2642
|
+
return "Notification - ICAO certificate: Unsupported signature algorithm"
|
|
2643
|
+
case -1879047670:
|
|
2644
|
+
return "Notification - ICAO certificate: Unsupported public key algorithm"
|
|
2645
|
+
case -1879047669:
|
|
2646
|
+
return "Notification - ICAO certificate: Missed extensions"
|
|
2647
|
+
case -1879047668:
|
|
2648
|
+
return "Notification - ICAO certificate: Validity"
|
|
2649
|
+
case -1879047667:
|
|
2650
|
+
return "Notification - ICAO certificate extension: Using non-compliant data"
|
|
2651
|
+
case -1879047666:
|
|
2652
|
+
return "Notification - ICAO certificate extension: Key usage missed"
|
|
2653
|
+
case -1879047665:
|
|
2654
|
+
return "Notification - ICAO certificate extension: Key usage not critical"
|
|
2655
|
+
case -1879047664:
|
|
2656
|
+
return "Notification - ICAO certificate extension: Ext key usage incorrect data"
|
|
2657
|
+
case -1879047663:
|
|
2658
|
+
return "Notification - ICAO certificate extension: Basic constraints missed"
|
|
2659
|
+
case -1879047662:
|
|
2660
|
+
return "Notification - ICAO certificate extension: Basic constraints incorrect usage 1"
|
|
2661
|
+
case -1879047661:
|
|
2662
|
+
return "Notification - ICAO certificate extension: Basic constraints incorrect usage 2"
|
|
2663
|
+
case -1879047660:
|
|
2664
|
+
return "Notification - ICAO certificate extension: Basic constraints not critical"
|
|
2665
|
+
case -1879047659:
|
|
2666
|
+
return "Notification - ICAO certificate extension: Basic constraints incorrect data"
|
|
2667
|
+
case -1879047658:
|
|
2668
|
+
return "Notification - ICAO certificate extension: Basic constraints path LenC missed"
|
|
2669
|
+
case -1879047657:
|
|
2670
|
+
return "Notification - ICAO certificate extension: Basic constraints path LenC incorrect"
|
|
2671
|
+
case -1879047656:
|
|
2672
|
+
return "Notification - ICAO certificate extension: Ext key usage not critical"
|
|
2673
|
+
case -1879047655:
|
|
2674
|
+
return "Notification - ICAO certificate extension: Ext key usage incorrect usage"
|
|
2675
|
+
case -1879047654:
|
|
2676
|
+
return "Notification - ICAO certificate extension: Ext key usage incorrect data"
|
|
2677
|
+
case -1879047653:
|
|
2678
|
+
return "Notification - ICAO certificate extension Auth key: ID missed"
|
|
2679
|
+
case -1879047652:
|
|
2680
|
+
return "Notification - ICAO certificate extension Auth key: Incorrect data"
|
|
2681
|
+
case -1879047651:
|
|
2682
|
+
return "Notification - ICAO certificate extension Auth key: Key ID missed"
|
|
2683
|
+
case -1879047650:
|
|
2684
|
+
return "Notification - ICAO certificate extension: Subject key ID missed"
|
|
2685
|
+
case -1879047649:
|
|
2686
|
+
return "Notification - ICAO certificate extension: Subject key ID incorrect data"
|
|
2687
|
+
case -1879047648:
|
|
2688
|
+
return "Notification - ICAO certificate extension: Private key UP missed"
|
|
2689
|
+
case -1879047647:
|
|
2690
|
+
return "Notification - ICAO certificate extension: Private key UP incorrect data"
|
|
2691
|
+
case -1879047646:
|
|
2692
|
+
return "Notification - ICAO certificate extension: Private key UP empty"
|
|
2693
|
+
case -1879047645:
|
|
2694
|
+
return "Notification - ICAO certificate extension: Subject alt name missed"
|
|
2695
|
+
case -1879047644:
|
|
2696
|
+
return "Notification - ICAO certificate extension: Subject alt name incorrect data"
|
|
2697
|
+
case -1879047643:
|
|
2698
|
+
return "Notification - ICAO certificate extension: Subject alt name empty"
|
|
2699
|
+
case -1879047642:
|
|
2700
|
+
return "Notification - ICAO certificate extension: Subject alt name non-compliant"
|
|
2701
|
+
case -1879047639:
|
|
2702
|
+
return "Notification - ICAO certificate extension: Subject alt name DN empty"
|
|
2703
|
+
case -1879047638:
|
|
2704
|
+
return "Notification - ICAO certificate extension: Subject alt name DN incorrect"
|
|
2705
|
+
case -1879047637:
|
|
2706
|
+
return "Notification - ICAO certificate extension: Subject alt name DN non-compliant"
|
|
2707
|
+
case -1879047636:
|
|
2708
|
+
return "Notification - ICAO certificate extension: Issuer alt name missed"
|
|
2709
|
+
case -1879047635:
|
|
2710
|
+
return "Notification - ICAO certificate extension: Issuer alt name incorrect data"
|
|
2711
|
+
case -1879047634:
|
|
2712
|
+
return "Notification - ICAO certificate extension: Issuer alt name empty"
|
|
2713
|
+
case -1879047633:
|
|
2714
|
+
return "Notification - ICAO certificate extension: Issuer alt name non-compliant"
|
|
2715
|
+
case -1879047630:
|
|
2716
|
+
return "Notification - ICAO certificate extension: Issuer alt name DN empty"
|
|
2717
|
+
case -1879047629:
|
|
2718
|
+
return "Notification - ICAO certificate extension: Issuer alt name DN incorrect"
|
|
2719
|
+
case -1879047628:
|
|
2720
|
+
return "Notification - ICAO certificate extension: Issuer alt name DN non-compliant"
|
|
2721
|
+
case -1879047627:
|
|
2722
|
+
return "Notification - ICAO certificate extension Doc type list: Missed"
|
|
2723
|
+
case -1879047626:
|
|
2724
|
+
return "Notification - ICAO certificate extension Doc type list: Incorrect data"
|
|
2725
|
+
case -1879047625:
|
|
2726
|
+
return "Notification - ICAO certificate extension Doc type list: Version"
|
|
2727
|
+
case -1879047624:
|
|
2728
|
+
return "Notification - ICAO certificate extension Doc type list: Doc types"
|
|
2729
|
+
case -1879047623:
|
|
2730
|
+
return "Notification - ICAO certificate extension Doc type list: Doc types empty"
|
|
2731
|
+
case -1879047622:
|
|
2732
|
+
return "Notification - ICAO certificate extension: Dert policies incorrect data"
|
|
2733
|
+
case -1879047621:
|
|
2734
|
+
return "Notification - ICAO certificate extension: Cert policies empty"
|
|
2735
|
+
case -1879047620:
|
|
2736
|
+
return "Notification - ICAO certificate extension: Cert policies policy ID missed"
|
|
2737
|
+
case -1879047619:
|
|
2738
|
+
return "Notification - ICAO certificate extension: CRL dist point missed"
|
|
2739
|
+
case -1879047618:
|
|
2740
|
+
return "Notification - ICAO certificate extension: CRL dist point incorrect data"
|
|
2741
|
+
case -1879047617:
|
|
2742
|
+
return "Notification - ICAO certificate extension: CRL dist point empty"
|
|
2743
|
+
case -1879047616:
|
|
2744
|
+
return "Notification - ICAO certificate extension: CRL dist point point missed"
|
|
2319
2745
|
case -1878982656:
|
|
2320
2746
|
return "Notification - Biometrics: Format owner missing"
|
|
2321
2747
|
case -1878917120:
|
|
@@ -2444,200 +2870,42 @@ const eRFID_NotificationAndErrorCodes = {
|
|
|
2444
2870
|
return "Notification - Auth ML signer info: Certificate revoked"
|
|
2445
2871
|
case -1845493479:
|
|
2446
2872
|
return "Notification - Auth ML signer info: Certificate signature invalid"
|
|
2447
|
-
case
|
|
2448
|
-
return "RFID: Requested operation is already done"
|
|
2449
|
-
case this.RFID_ERROR_FAILED:
|
|
2873
|
+
case -1:
|
|
2450
2874
|
return "RFID: Failed"
|
|
2451
|
-
case
|
|
2452
|
-
return "
|
|
2453
|
-
case
|
|
2454
|
-
return "RFID:
|
|
2455
|
-
case
|
|
2456
|
-
return "
|
|
2457
|
-
case
|
|
2458
|
-
return "
|
|
2459
|
-
case
|
|
2460
|
-
return "
|
|
2461
|
-
case
|
|
2462
|
-
return "
|
|
2463
|
-
case
|
|
2464
|
-
return "
|
|
2465
|
-
case
|
|
2466
|
-
return "
|
|
2467
|
-
case
|
|
2468
|
-
return "
|
|
2469
|
-
case
|
|
2470
|
-
return "
|
|
2471
|
-
case
|
|
2472
|
-
return "
|
|
2473
|
-
case
|
|
2474
|
-
return "
|
|
2475
|
-
case
|
|
2476
|
-
return "
|
|
2477
|
-
case
|
|
2478
|
-
return "
|
|
2479
|
-
case
|
|
2480
|
-
return "
|
|
2481
|
-
case
|
|
2482
|
-
return "
|
|
2483
|
-
case
|
|
2484
|
-
return "
|
|
2485
|
-
case -2147352570:
|
|
2486
|
-
return "PCSC: Failed Smart Card"
|
|
2487
|
-
case -2147352560:
|
|
2488
|
-
return "PCSC: ExtLe Failed"
|
|
2489
|
-
case -2046820352:
|
|
2490
|
-
return "LAYER6: Secure Messaging was not activated"
|
|
2491
|
-
case -2046820351:
|
|
2492
|
-
return "LAYER6: ISO7816_A_03 \"Application selection failure\""
|
|
2493
|
-
case -2046820096:
|
|
2494
|
-
return "LAYER6: ISO7816_B_01 \"Mutual authentication MAC failure\""
|
|
2495
|
-
case -2046820095:
|
|
2496
|
-
return "LAYER6: ISO7816_B_02 \"Mutual authentication encryption failure\""
|
|
2497
|
-
case -2046820094:
|
|
2498
|
-
return "LAYER6: ISO7816_B_03 \"Mutual authentication failure\""
|
|
2499
|
-
case -2046819840:
|
|
2500
|
-
return "LAYER6: SM failure – MAC missing"
|
|
2501
|
-
case -2046819839:
|
|
2502
|
-
return "LAYER6: SM failure – cryptogram missing"
|
|
2503
|
-
case -2046819838:
|
|
2504
|
-
return "LAYER6: SM failure – secured status bytes missing"
|
|
2505
|
-
case -2046819837:
|
|
2506
|
-
return "LAYER6: SM failure – incorrect MAC"
|
|
2507
|
-
case -2046819836:
|
|
2508
|
-
return "LAYER6: SM failure – incorrect cryptogram"
|
|
2509
|
-
case -2046819584:
|
|
2510
|
-
return "LAYER6: Not TLV response data"
|
|
2511
|
-
case -2046819583:
|
|
2512
|
-
return "LAYER6: Wrong data length (APDU_INS_GET_CHALLENGE)"
|
|
2513
|
-
case -2046819582:
|
|
2514
|
-
return "LAYER6: APDU_INS_INTERNAL_AUTHENTICATE failure"
|
|
2515
|
-
case -2046819581:
|
|
2516
|
-
return "LAYER6: MSE:Set KAT failure"
|
|
2517
|
-
case -2046819580:
|
|
2518
|
-
return "LAYER6: MSE:Set DST failure"
|
|
2519
|
-
case -2046819579:
|
|
2520
|
-
return "LAYER6: PSO CERTIFICATE failure"
|
|
2521
|
-
case -2046819578:
|
|
2522
|
-
return "LAYER6: MSE:Set AT failure"
|
|
2523
|
-
case -2046819577:
|
|
2524
|
-
return "LAYER6: GET CHALLENGE failure"
|
|
2525
|
-
case -2046819576:
|
|
2526
|
-
return "LAYER6: APDU_INS_EXTERNAL_AUTHENTICATE (External Authentication) failure"
|
|
2527
|
-
case -2046819575:
|
|
2528
|
-
return "LAYER6: General Authenticity Failure"
|
|
2529
|
-
case -2147456382:
|
|
2530
|
-
return "LAYER6: File selection failure / file not found"
|
|
2531
|
-
case -2147458430:
|
|
2532
|
-
return "LAYER6: Reading beyond EOF / Unexpected EOF"
|
|
2533
|
-
case -2147456256:
|
|
2534
|
-
return "LAYER6: Reading beyond EOF / Unexpected EOF"
|
|
2535
|
-
case -2147456384:
|
|
2536
|
-
return "LAYER6: Incorrect Params"
|
|
2537
|
-
case -2147456376:
|
|
2538
|
-
return "LAYER6: No Reference Data"
|
|
2539
|
-
case -2147458111:
|
|
2540
|
-
return "LAYER6: PWD Suspended"
|
|
2541
|
-
case -2147458112:
|
|
2542
|
-
return "LAYER6: PWD Blocked"
|
|
2543
|
-
case -2147458429:
|
|
2544
|
-
return "LAYER6: PWD Deactivated"
|
|
2545
|
-
case -2147456637:
|
|
2546
|
-
return "LAYER6: PWD Blocked 2"
|
|
2547
|
-
case -2147456636:
|
|
2548
|
-
return "LAYER6: PWD Deactivated 2"
|
|
2549
|
-
case -2147456635:
|
|
2550
|
-
return "LAYER6: PWD Suspended 2"
|
|
2551
|
-
case -2146409536:
|
|
2552
|
-
return "LAYER6: PWD Failed"
|
|
2553
|
-
case -2097152000:
|
|
2554
|
-
return "RFID: Not Performed"
|
|
2555
|
-
case -2097151999:
|
|
2556
|
-
return "RFID: Session Is Closed"
|
|
2557
|
-
case -2097151998:
|
|
2558
|
-
return "RFID: Terminal Unsupported Operation"
|
|
2559
|
-
case -2097151984:
|
|
2560
|
-
return "RFID: Terminal Type Unknown"
|
|
2561
|
-
case -2097151983:
|
|
2562
|
-
return "RFID: Terminal Type Bad Certificate"
|
|
2563
|
-
case -2097151982:
|
|
2564
|
-
return "RFID: Terminal Type Not Set"
|
|
2565
|
-
case -2097151981:
|
|
2566
|
-
return "RFID: Procedure Type Unknown"
|
|
2567
|
-
case -2097151980:
|
|
2568
|
-
return "RFID: Procedure Type Unsupported"
|
|
2569
|
-
case -2097151979:
|
|
2570
|
-
return "RFID: Procedure Type Not Set"
|
|
2571
|
-
case -2097151978:
|
|
2572
|
-
return "RFID: Access Key Unknown Type"
|
|
2573
|
-
case -2097151977:
|
|
2574
|
-
return "RFID: Access Key Unsupported SM Type"
|
|
2575
|
-
case -2097151976:
|
|
2576
|
-
return "RFID: Access Key Incorrect SM Type"
|
|
2577
|
-
case -2097151975:
|
|
2578
|
-
return "RFID: Access Key Restricted"
|
|
2579
|
-
case -2097151974:
|
|
2580
|
-
return "RFID: Access Key Incorrect Data"
|
|
2581
|
-
case -2097151973:
|
|
2582
|
-
return "RFID: Access Key Not Set"
|
|
2583
|
-
case -2097151972:
|
|
2584
|
-
return "RFID: Pwd Management Not Authorized"
|
|
2585
|
-
case -2097151968:
|
|
2586
|
-
return "RFID: Access Control UnknownType"
|
|
2587
|
-
case -2097151967:
|
|
2588
|
-
return "RFID: Requires SM"
|
|
2589
|
-
case -2097151966:
|
|
2590
|
-
return "RFID: Requires PACE"
|
|
2591
|
-
case -2097151965:
|
|
2592
|
-
return "RFID: Requires CA Keys"
|
|
2593
|
-
case -2097151964:
|
|
2594
|
-
return "RFID: Requires TA"
|
|
2595
|
-
case -2097151963:
|
|
2596
|
-
return "RFID: Requires CA"
|
|
2597
|
-
case -2097151962:
|
|
2598
|
-
return "RFID: Incorrect Option CA"
|
|
2599
|
-
case -2097151961:
|
|
2600
|
-
return "RFID: CA Failed"
|
|
2601
|
-
case -2097151960:
|
|
2602
|
-
return "RFID: TA Failed"
|
|
2603
|
-
case -2097151959:
|
|
2604
|
-
return "RFID: AA Failed"
|
|
2605
|
-
case -2097151958:
|
|
2606
|
-
return "RFID: RI Failed"
|
|
2607
|
-
case -2097151952:
|
|
2608
|
-
return "RFID: SO Signature Check Failed"
|
|
2609
|
-
case -2097151951:
|
|
2610
|
-
return "RFID: Hash Check Failed"
|
|
2611
|
-
case -2097151936:
|
|
2612
|
-
return "RFID: Invalid Aux Data Date Of Expiry"
|
|
2613
|
-
case -2097151935:
|
|
2614
|
-
return "RFID: Invalid Aux Data Date Of Birth"
|
|
2615
|
-
case -2097151934:
|
|
2616
|
-
return "RFID: Invalid Aux Data Community ID"
|
|
2617
|
-
case -2097151920:
|
|
2618
|
-
return "RFID: eSign Requires App Selection"
|
|
2619
|
-
case -2097151919:
|
|
2620
|
-
return "RFID: eSign PIN Not Set"
|
|
2621
|
-
case -2097151918:
|
|
2622
|
-
return "RFID: eSign PIN Not Verified"
|
|
2623
|
-
case -2097151904:
|
|
2624
|
-
return "RFID: Incorrect data"
|
|
2625
|
-
case -2097086464:
|
|
2626
|
-
return "RFID File: Not Enough Data"
|
|
2627
|
-
case -2097020928:
|
|
2628
|
-
return "RFID File: Incorrect Data"
|
|
2629
|
-
case -2096955392:
|
|
2630
|
-
return "RFID File: Unexpected Data"
|
|
2631
|
-
case -2096889856:
|
|
2632
|
-
return "RFID File: Contents Unexpected Data"
|
|
2633
|
-
case -2096824320:
|
|
2634
|
-
return "RFID File: Wrong Tag"
|
|
2635
|
-
case -2096758784:
|
|
2636
|
-
return "RFID File: Cannot Use Data"
|
|
2637
|
-
case -2096693248:
|
|
2638
|
-
return "RFID File: Cannot Read Data"
|
|
2639
|
-
case this.RFID_ERROR_SESSION_FILE_ACCESS_DENIED:
|
|
2640
|
-
return "RFID File: Access Denied"
|
|
2875
|
+
case 1:
|
|
2876
|
+
return "OK"
|
|
2877
|
+
case 2:
|
|
2878
|
+
return "RFID: Requested operation is already done"
|
|
2879
|
+
case 139272:
|
|
2880
|
+
return "Notification - MRZ: Document type unknown"
|
|
2881
|
+
case 139273:
|
|
2882
|
+
return "Notification - MRZ: Issuing state syntax error"
|
|
2883
|
+
case 139274:
|
|
2884
|
+
return "Notification - MRZ: Name is void"
|
|
2885
|
+
case 139277:
|
|
2886
|
+
return "Notification - MRZ: Number incorrect checksum"
|
|
2887
|
+
case 139278:
|
|
2888
|
+
return "Notification - MRZ: Nationality syntax error"
|
|
2889
|
+
case 139279:
|
|
2890
|
+
return "Notification - MRZ: DOB syntax error"
|
|
2891
|
+
case 139280:
|
|
2892
|
+
return "Notification - MRZ: DOB error"
|
|
2893
|
+
case 139281:
|
|
2894
|
+
return "Notification - MRZ: DOB incorrect checksum"
|
|
2895
|
+
case 139282:
|
|
2896
|
+
return "Notification - MRZ: Sex incorrect"
|
|
2897
|
+
case 139283:
|
|
2898
|
+
return "Notification - MRZ: DOE syntax error"
|
|
2899
|
+
case 139284:
|
|
2900
|
+
return "Notification - MRZ: DOE error"
|
|
2901
|
+
case 139285:
|
|
2902
|
+
return "Notification - MRZ: DOE incorrect checksum"
|
|
2903
|
+
case 139286:
|
|
2904
|
+
return "Notification - MRZ: Optional data incorrect checksum"
|
|
2905
|
+
case 139287:
|
|
2906
|
+
return "Notification - MRZ: Incorrect checksum"
|
|
2907
|
+
case 139288:
|
|
2908
|
+
return "Notification - MRZ: Incorrect"
|
|
2641
2909
|
default:
|
|
2642
2910
|
return value
|
|
2643
2911
|
}
|
|
@@ -2737,6 +3005,8 @@ const eRPRM_ResultType = {
|
|
|
2737
3005
|
RPRM_RESULT_TYPE_DATABASE_CHECK: 28,
|
|
2738
3006
|
RPRM_RESULT_TYPE_FINGERPRINT_TEMPLATE_ISO: 29,
|
|
2739
3007
|
RPRM_RESULT_TYPE_INPUT_IMAGE_QUALITY: 30,
|
|
3008
|
+
RPRM_RESULT_TYPE_IMAGES: 37,
|
|
3009
|
+
RPRM_RESULT_TYPE_HOLO_PARAMS: 47,
|
|
2740
3010
|
RPRM_RESULT_TYPE_DOCUMENT_POSITION: 85,
|
|
2741
3011
|
RPRM_RESULT_TYPE_CUSTOM: 100,
|
|
2742
3012
|
RFID_RESULT_TYPE_RFID_RAW_DATA: 101,
|
|
@@ -2746,6 +3016,7 @@ const eRPRM_ResultType = {
|
|
|
2746
3016
|
RFID_RESULT_TYPE_RFID_ORIGINAL_GRAPHICS: 105,
|
|
2747
3017
|
RPRM_RESULT_TYPE_BARCODE_POSITION: 62,
|
|
2748
3018
|
RPRM_RESULT_TYPE_MRZ_POSITION: 61,
|
|
3019
|
+
RPRM_RESULT_TYPE_STATUS: 33,
|
|
2749
3020
|
}
|
|
2750
3021
|
|
|
2751
3022
|
const eRPRM_SecurityFeatureType = {
|
|
@@ -3370,6 +3641,24 @@ const eVisualFieldType = {
|
|
|
3370
3641
|
FT_CITIZENSHIP_STATUS: 625,
|
|
3371
3642
|
FT_MILITARY_SERVICE_FROM: 626,
|
|
3372
3643
|
FT_MILITARY_SERVICE_TO: 627,
|
|
3644
|
+
FT_DLCLASSCODE_NT_FROM: 628,
|
|
3645
|
+
FT_DLCLASSCODE_NT_TO: 629,
|
|
3646
|
+
FT_DLCLASSCODE_NT_NOTES: 630,
|
|
3647
|
+
FT_DLCLASSCODE_TN_FROM: 631,
|
|
3648
|
+
FT_DLCLASSCODE_TN_TO: 632,
|
|
3649
|
+
FT_DLCLASSCODE_TN_NOTES: 633,
|
|
3650
|
+
FT_DLCLASSCODE_D3_FROM: 634,
|
|
3651
|
+
FT_DLCLASSCODE_D3_TO: 635,
|
|
3652
|
+
FT_DLCLASSCODE_D3_NOTES: 636,
|
|
3653
|
+
FT_ALT_DATE_OF_EXPIRY: 637,
|
|
3654
|
+
FT_DLCLASSCODE_CD_FROM: 638,
|
|
3655
|
+
FT_DLCLASSCODE_CD_TO: 639,
|
|
3656
|
+
FT_DLCLASSCODE_CD_NOTES: 640,
|
|
3657
|
+
FT_PAYMENT_PERIOD_TO: 643,
|
|
3658
|
+
FT_PAYMENT_PERIOD_FROM: 642,
|
|
3659
|
+
FT_ISSUER_IDENTIFICATION_NUMBER: 641,
|
|
3660
|
+
FT_VACCINATION_CERTIFICATE_IDENTIFIER: 644,
|
|
3661
|
+
FT_FIRST_NAME: 645,
|
|
3373
3662
|
|
|
3374
3663
|
getTranslation: function (value) {
|
|
3375
3664
|
switch (value) {
|
|
@@ -3522,9 +3811,9 @@ const eVisualFieldType = {
|
|
|
3522
3811
|
case 73:
|
|
3523
3812
|
return "Issuing authority code"
|
|
3524
3813
|
case 74:
|
|
3525
|
-
return "
|
|
3814
|
+
return "Country/region of birth"
|
|
3526
3815
|
case 75:
|
|
3527
|
-
return "
|
|
3816
|
+
return "Birth state code"
|
|
3528
3817
|
case 76:
|
|
3529
3818
|
return "Street"
|
|
3530
3819
|
case 77:
|
|
@@ -3798,15 +4087,15 @@ const eVisualFieldType = {
|
|
|
3798
4087
|
case 259:
|
|
3799
4088
|
return "Residence permit 2"
|
|
3800
4089
|
case 260:
|
|
3801
|
-
return "Place of
|
|
4090
|
+
return "Place of birth: Street"
|
|
3802
4091
|
case 261:
|
|
3803
|
-
return "Place of
|
|
4092
|
+
return "Place of birth: City"
|
|
3804
4093
|
case 262:
|
|
3805
|
-
return "Place of
|
|
4094
|
+
return "Place of birth: State"
|
|
3806
4095
|
case 263:
|
|
3807
|
-
return "Place of
|
|
4096
|
+
return "Place of birth: Country"
|
|
3808
4097
|
case 264:
|
|
3809
|
-
return "Place of
|
|
4098
|
+
return "Place of birth: Postal code"
|
|
3810
4099
|
case 265:
|
|
3811
4100
|
return "CDL Class"
|
|
3812
4101
|
case 266:
|
|
@@ -4527,6 +4816,42 @@ const eVisualFieldType = {
|
|
|
4527
4816
|
return "Military service from"
|
|
4528
4817
|
case 627:
|
|
4529
4818
|
return "Military service to"
|
|
4819
|
+
case 628:
|
|
4820
|
+
return "DL category NT valid from"
|
|
4821
|
+
case 629:
|
|
4822
|
+
return "DL category NT valid to"
|
|
4823
|
+
case 630:
|
|
4824
|
+
return "DL category NT codes"
|
|
4825
|
+
case 631:
|
|
4826
|
+
return "DL category TN valid from"
|
|
4827
|
+
case 632:
|
|
4828
|
+
return "DL category TN valid to"
|
|
4829
|
+
case 633:
|
|
4830
|
+
return "DL category TN codes"
|
|
4831
|
+
case 634:
|
|
4832
|
+
return "DL category D3 valid from"
|
|
4833
|
+
case 635:
|
|
4834
|
+
return "DL category D3 valid to"
|
|
4835
|
+
case 636:
|
|
4836
|
+
return "DL category D3 codes"
|
|
4837
|
+
case 637:
|
|
4838
|
+
return "Alternative date of expiry"
|
|
4839
|
+
case 638:
|
|
4840
|
+
return "DL category CD valid from"
|
|
4841
|
+
case 639:
|
|
4842
|
+
return "DL category CD valid to"
|
|
4843
|
+
case 640:
|
|
4844
|
+
return "DL category CD codes"
|
|
4845
|
+
case 641:
|
|
4846
|
+
return "Issuer identification number"
|
|
4847
|
+
case 642:
|
|
4848
|
+
return "Payment period from"
|
|
4849
|
+
case 643:
|
|
4850
|
+
return "Payment period to"
|
|
4851
|
+
case 644:
|
|
4852
|
+
return "Unique vaccination certificate identifier"
|
|
4853
|
+
case 645:
|
|
4854
|
+
return "First name"
|
|
4530
4855
|
default:
|
|
4531
4856
|
return value
|
|
4532
4857
|
}
|
|
@@ -4545,6 +4870,12 @@ const FrameShapeType = {
|
|
|
4545
4870
|
CORNER: 1,
|
|
4546
4871
|
}
|
|
4547
4872
|
|
|
4873
|
+
const IRfidNotificationCompletion = {
|
|
4874
|
+
RFID_EVENT_CHIP_DETECTED: 1,
|
|
4875
|
+
RFID_EVENT_READING_ERROR: 2,
|
|
4876
|
+
RFID_EXTRA_ERROR_CODE: "rfid.error.code",
|
|
4877
|
+
}
|
|
4878
|
+
|
|
4548
4879
|
const LCID = {
|
|
4549
4880
|
LATIN: 0,
|
|
4550
4881
|
AFRIKAANS: 1078,
|
|
@@ -5018,6 +5349,12 @@ const ProcessingFinishedStatus = {
|
|
|
5018
5349
|
TIMEOUT: 2,
|
|
5019
5350
|
}
|
|
5020
5351
|
|
|
5352
|
+
const RFIDDelegate = {
|
|
5353
|
+
NULL: 0,
|
|
5354
|
+
NO_PA: 1,
|
|
5355
|
+
FULL: 2,
|
|
5356
|
+
}
|
|
5357
|
+
|
|
5021
5358
|
const RGLMeasureSystem = {
|
|
5022
5359
|
METRIC: 0,
|
|
5023
5360
|
IMPERIAL: 1,
|
|
@@ -5110,6 +5447,7 @@ const Enum = {
|
|
|
5110
5447
|
DocReaderAction,
|
|
5111
5448
|
DocReaderFrame,
|
|
5112
5449
|
DocReaderOrientation,
|
|
5450
|
+
DocumentReaderExceptionEnum,
|
|
5113
5451
|
eCheckDiagnose,
|
|
5114
5452
|
eCheckResult,
|
|
5115
5453
|
eGraphicFieldType,
|
|
@@ -5134,9 +5472,11 @@ const Enum = {
|
|
|
5134
5472
|
eVisualFieldType,
|
|
5135
5473
|
FontStyle,
|
|
5136
5474
|
FrameShapeType,
|
|
5475
|
+
IRfidNotificationCompletion,
|
|
5137
5476
|
LCID,
|
|
5138
5477
|
PKDResourceType,
|
|
5139
5478
|
ProcessingFinishedStatus,
|
|
5479
|
+
RFIDDelegate,
|
|
5140
5480
|
RGLMeasureSystem,
|
|
5141
5481
|
ScenarioIdentifier,
|
|
5142
5482
|
LineCap,
|
|
@@ -5148,6 +5488,7 @@ const Enum = {
|
|
|
5148
5488
|
|
|
5149
5489
|
const DocumentReader = {}
|
|
5150
5490
|
|
|
5491
|
+
DocumentReader.initializeReaderAutomatically = (successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["initializeReaderAutomatically"])
|
|
5151
5492
|
DocumentReader.getAPIVersion = (successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["getAPIVersion"])
|
|
5152
5493
|
DocumentReader.getAvailableScenarios = (successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["getAvailableScenarios"])
|
|
5153
5494
|
DocumentReader.isRFIDAvailableForUse = (successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["isRFIDAvailableForUse"])
|
|
@@ -5183,6 +5524,7 @@ DocumentReader.resetConfiguration = (successCallback, errorCallback) => cordova.
|
|
|
5183
5524
|
DocumentReader.clearPKDCertificates = (successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["clearPKDCertificates"])
|
|
5184
5525
|
DocumentReader.readRFID = (successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["readRFID"])
|
|
5185
5526
|
DocumentReader.getRfidSessionStatus = (successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["getRfidSessionStatus"])
|
|
5527
|
+
DocumentReader.setRfidDelegate = (delegate, successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["setRfidDelegate", delegate])
|
|
5186
5528
|
DocumentReader.setEnableCoreLogs = (logs, successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["setEnableCoreLogs", logs])
|
|
5187
5529
|
DocumentReader.addPKDCertificates = (certificates, successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["addPKDCertificates", certificates])
|
|
5188
5530
|
DocumentReader.setCameraSessionIsPaused = (paused, successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["setCameraSessionIsPaused", paused])
|
|
@@ -5196,7 +5538,12 @@ DocumentReader.initializeReader = (license, successCallback, errorCallback) => c
|
|
|
5196
5538
|
DocumentReader.prepareDatabase = (databaseType, successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["prepareDatabase", databaseType])
|
|
5197
5539
|
DocumentReader.recognizeImage = (image, successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["recognizeImage", image])
|
|
5198
5540
|
DocumentReader.setRfidSessionStatus = (status, successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["setRfidSessionStatus", status])
|
|
5541
|
+
DocumentReader.providePACertificates = (certificates, successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["providePACertificates", certificates])
|
|
5542
|
+
DocumentReader.provideTACertificates = (certificates, successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["provideTACertificates", certificates])
|
|
5543
|
+
DocumentReader.provideTASignature = (certificates, successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["provideTASignature", certificates])
|
|
5544
|
+
DocumentReader.parseCoreResults = (json, successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["parseCoreResults", json])
|
|
5199
5545
|
DocumentReader.initializeReaderWithDatabasePath = (license, path, successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["initializeReaderWithDatabasePath", license, path])
|
|
5546
|
+
DocumentReader.initializeReaderWithDatabase = (license, db, successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["initializeReaderWithDatabase", license, db])
|
|
5200
5547
|
DocumentReader.recognizeImageFrame = (image, params, successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["recognizeImageFrame", image, params])
|
|
5201
5548
|
DocumentReader.recognizeImageWithOpts = (image, options, successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["recognizeImageWithOpts", image, options])
|
|
5202
5549
|
DocumentReader.recognizeVideoFrame = (byteString, params, successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["recognizeVideoFrame", byteString, params])
|