aboutsummaryrefslogtreecommitdiff
path: root/moaSig
diff options
context:
space:
mode:
authorThomas <>2021-03-25 11:22:20 +0100
committerThomas <>2021-03-25 11:22:20 +0100
commit56bbd2ea411e050a300b89f47d8787968d244546 (patch)
tree54ca7f6ebd373cd91d4e19545f4128899811654d /moaSig
parentf53c845e218fd8bd04f9d4188805ac2573090b78 (diff)
downloadmoa-sig-56bbd2ea411e050a300b89f47d8787968d244546.tar.gz
moa-sig-56bbd2ea411e050a300b89f47d8787968d244546.tar.bz2
moa-sig-56bbd2ea411e050a300b89f47d8787968d244546.zip
add a set of test-cases from EU TSL test-set
Diffstat (limited to 'moaSig')
-rw-r--r--moaSig/moa-sig-lib/build.gradle2
-rw-r--r--moaSig/moa-sig/build.gradle2
-rw-r--r--moaSig/moa-sig/src/main/resources/log4j.properties3
-rw-r--r--moaSig/moa-sig/src/main/resources/logback.xml8
-rw-r--r--moaSig/moa-sig/src/test/java/at/gv/egovernment/moa/spss/test/integration/AbstractIntegrationTest.java261
-rw-r--r--moaSig/moa-sig/src/test/java/at/gv/egovernment/moa/spss/test/integration/CadesIntegrationTest.java264
-rw-r--r--moaSig/moa-sig/src/test/java/at/gv/egovernment/moa/spss/test/integration/CadesIntegrationWithMoaSpssSvaConfigTest.java265
-rw-r--r--moaSig/moa-sig/src/test/java/at/gv/egovernment/moa/spss/test/integration/PadesIntegrationTest.java156
-rw-r--r--moaSig/moa-sig/src/test/java/at/gv/egovernment/moa/spss/test/integration/XadesIntegrationTest.java292
-rw-r--r--moaSig/moa-sig/src/test/java/at/gv/egovernment/moa/spss/test/integration/tsl/XadesTslEuTestset02Test.java208
-rw-r--r--moaSig/moa-sig/src/test/java/at/gv/egovernment/moa/spss/test/integration/tsl/XadesTslEuTestset03Test.java1860
-rw-r--r--moaSig/moa-sig/src/test/resources/log4j.properties20
-rw-r--r--moaSig/moa-sig/src/test/resources/moaspss_config/MOASPSSConfiguration.xml8
-rw-r--r--moaSig/moa-sig/src/test/resources/moaspss_config/MOASPSSConfiguration_tsl_eu_test_1.xml109
-rw-r--r--moaSig/moa-sig/src/test/resources/moaspss_config/MOASPSSConfiguration_tsl_eu_test_2.xml109
-rw-r--r--moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/006EF01AE36BBE9D8C4528E15D1CF4449C92347D/4C487F03949459CD579C5A9BEA95573F8CC74180bin0 -> 865 bytes
-rw-r--r--moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/01AD7DE9AE3411A658A4D205F5D7C30E570BD950/AE72B02B4BFD413A8CF9625EBF9D46A29FB3FA3Fbin0 -> 867 bytes
-rw-r--r--moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/105B708E920AEA7AD63DE49A033CB4F087B4BA7B/9C9410F38D2BC61677E23378146F794497A2A48Cbin0 -> 865 bytes
-rw-r--r--moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/10E03DDD1F57A0D2ECE8CECAEA03C88021472F23/37809B6BDA10D16E3004C5A9063A2EE2381A5D41bin0 -> 869 bytes
-rw-r--r--moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/1321120587BF1F000287044B0A2D01888CA27570/BEAEE400183668AAD65001EC242D77B7DDFBE802bin0 -> 867 bytes
-rw-r--r--moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/1336BAB6C57E007E0D3ACB140962517750E2158D/09861F9628CCEC9E404E884AC83F3D0F5E4D3EC8bin0 -> 865 bytes
-rw-r--r--moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/140B7886BAF62C5997B7FB13D00201A958D3C7E7/DBC255698DEDF247934DE5FDB62A12FD85C8B07Fbin0 -> 865 bytes
-rw-r--r--moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/1737C7FE3464AA0BB890F88A6900DD4E72DF02AD/9D35325E3429654BC91D44CC665E962F2A4335DCbin0 -> 865 bytes
-rw-r--r--moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/241ECDABF178046BE788313A5B2226E2CCDEB207/750AB1EB4240550AF0AA0A0A88BE490131DACCDBbin0 -> 865 bytes
-rw-r--r--moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/26E6F1BA9B7EA8F0E9A30765BB02FAB581243E94/A7EF0C4E3634D9A698928570FD1169C85B0AFA21bin0 -> 865 bytes
-rw-r--r--moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/29D027986C8BE3BA96753C9956C8A2D9D40133AC/65B327F0CC157F53E8AFEDC64D7AFA7BB4276EE9bin0 -> 865 bytes
-rw-r--r--moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/39E89608FEB18D606A795569CC3865F4D0061246/9EDA42E4C4F0F7151F30924552A48EE28533518Bbin0 -> 867 bytes
-rw-r--r--moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/4396D4AD733150F8098F03084DC3A0CC48C9C68D/7BCD79B7CBB5DD5E2F71045F402C32814E3D9AFDbin0 -> 865 bytes
-rw-r--r--moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/4C7747ED13F431F1502F4CCE5AE483B6D720E075/2D82AE75674758C155EE7F0601ABDE89D5489250bin0 -> 865 bytes
-rw-r--r--moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/50E1793E2FA6A54E358E1849D6CB650A9F6BE6EB/A07D7A4A74FC9C1EFB613ED4CC2C783E3F51B88Fbin0 -> 869 bytes
-rw-r--r--moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/51D1B77633EDBB271F0F7B75D012683D984FCAD1/51C251D13B856BF7E5DB1B344B8F184591446FAFbin0 -> 865 bytes
-rw-r--r--moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/568AC5E80B9412A3F7EF5EDFB598446882C053BF/127169D08B8095C826E62CE0CC6CD4B76EC70AEAbin0 -> 867 bytes
-rw-r--r--moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/5C8A95C51BA194521993F68D014431AD6A021045/01072A7406969FB38470EFF30C9EB77B44987780bin0 -> 865 bytes
-rw-r--r--moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/5FBEAF84C7F58B5B6C9E774690D8BA13D7444CB1/85826346270005A60F6E2099445D7E04A9CEDFBCbin0 -> 865 bytes
-rw-r--r--moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/5FEF7FCBD2F2DDB753F79EAFA01B1D5C108E5A56/2E3009F003EAFD49B0D520704C743A8AEA7EFB82bin0 -> 865 bytes
-rw-r--r--moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/605C34616545FB534A7214CD13A2115DCEFF6238/018EE623F66AAB0FCA64B6B41CDCACA0F8E263F3bin0 -> 865 bytes
-rw-r--r--moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/646B613915EC6F29F6292757B8E87D9FA6C5B306/8C459A6043BA8974AFF3D1DF37948AA7A75D6DB5bin0 -> 867 bytes
-rw-r--r--moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/655390AAFE8C7BCEF5FB5BA16370096D20974BCA/03C18F40D6720F945E73EE2874EB7DC448641CA9bin0 -> 865 bytes
-rw-r--r--moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/675B237E463894006F958DCEBB903FF5884923CE/196CAF0E6A2643D22CB8982D8FDA0CE3D36A854Abin0 -> 865 bytes
-rw-r--r--moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/6791704519FE0106BA98C17C9CB42937F489ED1D/742C5906DF454E579FD41170C7EEEFE62FFA4A4Ebin0 -> 865 bytes
-rw-r--r--moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/6CB03635E5788B0A8645CD236BC5AFA1BD9E3729/892740E3C13A71DD4FE749AF2BB309026D50C1A2bin0 -> 867 bytes
-rw-r--r--moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/7B088EDDB4473CEC0AB8BEDD6AA982987686FC44/D4B13E86555BEBC4F614B2C775C29230923AC16Cbin0 -> 865 bytes
-rw-r--r--moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/80864236918C41B8333ED31FA0FAC57409C49355/A6DD82E2ECA562D83B0FABF3AC96C0A92BA69039bin0 -> 867 bytes
-rw-r--r--moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/88896FC3B7048BCD29F193BCF4B7255FA9B94D9E/432406D3A56A60E5646E7F68709E1F64F0047015bin0 -> 865 bytes
-rw-r--r--moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/8CD36328422F54743278BB76F9DD7FAAE557D210/331BFEF7026D55047D598FBDA972CC3F9D8041E5bin0 -> 887 bytes
-rw-r--r--moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/9409AFCBA61A245B282454479DDDE29B6217A556/9A20C2822F95DE158B29E506B2157D78A3CDB75Cbin0 -> 865 bytes
-rw-r--r--moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/98D2B978D778380F4C30E4E5366EB215343CE4F2/F423F8BEC4CBF98927C732714A304BA34DE3C5AEbin0 -> 867 bytes
-rw-r--r--moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/A9C754E04514EAAA09DC85152E9FD8A4E89E3F45/69A38477FC9C5F812E0E88E67735C12F69602377bin0 -> 865 bytes
-rw-r--r--moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/C07A5164FD92ED657F0C6C4438C4DB5B9117B883/8531AD85A7CB5516FED795D8325986FD82FE98E0bin0 -> 867 bytes
-rw-r--r--moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/D06A9023994E632D57CF1C2460A90EE7E8BBB5E6/3AD24AB47E4B2DAD91D5BD129145FAF0C053A1DAbin0 -> 869 bytes
-rw-r--r--moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/D50524F8CC985C4A111AD086841D5CF9BCC7F63E/93225ADA3FCD432C5F302CA7440DB0F980B9668Bbin0 -> 867 bytes
-rw-r--r--moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/DCB8E79C2096D0CE6C933CF1B7A2411519DEF0B2/3EB139B27E8FD94A7B7D89FA757A0706B0CD51FAbin0 -> 865 bytes
-rw-r--r--moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/DDA6D1D1E74E051B0D89AE947D05AB35D3C52CBD/7572381D144FC8496A746D34F566815EF8148AEDbin0 -> 865 bytes
-rw-r--r--moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/E41B26A867E953250BFCA26A7794859002F7F9EB/178DBD4090CCAACFE9A160B06F183D5DBB74C438bin0 -> 865 bytes
-rw-r--r--moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/F3B27E0E2A5AA134D6238978A1F45B90AF09B8AB/02A0EBBB29B549A607C1D7F771BE8BE65C6C4DCBbin0 -> 865 bytes
-rw-r--r--moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/F7745D8A0CE129CF73F0CE358373BAC19015E41A/D9246F9517436B229280C95E162FFB95382C7C1Ebin0 -> 867 bytes
-rw-r--r--moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/FA804355FAE3B938C0E474F760736AD4B5543405/78D95F54B29E3E33BE9A8F124D6F208881D5A504bin0 -> 865 bytes
-rw-r--r--moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/FF9B7634A51FBA99BFB244CCE6059F4E31D52ED3/D6E9CB5D169E962F1804CDC30798A184FFFFCCB0bin0 -> 867 bytes
-rw-r--r--moaSig/moa-sig/src/test/resources/moaspss_config/svaconfig.example97
-rw-r--r--moaSig/moa-sig/src/test/resources/moaspss_config/trustProfiles/testTSL/dummy_element0
-rw-r--r--moaSig/moa-sig/src/test/resources/moaspss_config/tslworking/trust/eu/EU_Test_TSL_2.crt3
-rw-r--r--moaSig/moa-sig/src/test/resources/moaspss_config/tslworking/trust/eu/EU_Test_TSL_3.crt3
-rw-r--r--moaSig/moa-sig/src/test/resources/moaspss_config/tslworking/trust/eu/current_20180206_EU_TLS_CERT.crt3
-rw-r--r--moaSig/moa-sig/src/test/resources/testdata/tsl_tests/LOTL-2.xml175
-rw-r--r--moaSig/moa-sig/src/test/resources/testdata/tsl_tests/LOTL-2.zipbin0 -> 12473 bytes
-rw-r--r--moaSig/moa-sig/src/test/resources/testdata/tsl_tests/LOTL-3.xml227
-rw-r--r--moaSig/moa-sig/src/test/resources/testdata/tsl_tests/LOTL-3.zipbin0 -> 309846 bytes
-rw-r--r--moaSig/moa-sig/src/test/resources/testdata/xades/2.1.1-TEST FILE.xml3
-rw-r--r--moaSig/moa-sig/src/test/resources/testdata/xades/2.1.2-TEST FILE.xml3
-rw-r--r--moaSig/moa-sig/src/test/resources/testdata/xades/2.1.3-TEST FILE.xml3
-rw-r--r--moaSig/moa-sig/src/test/resources/testdata/xades/3.1.1-TEST FILE.xml3
-rw-r--r--moaSig/moa-sig/src/test/resources/testdata/xades/3.1.2-TEST FILE.xml3
-rw-r--r--moaSig/moa-sig/src/test/resources/testdata/xades/3.1.3-TEST FILE.xml3
-rw-r--r--moaSig/moa-sig/src/test/resources/testdata/xades/3.1.4-TEST FILE.xml3
-rw-r--r--moaSig/moa-sig/src/test/resources/testdata/xades/3.1.5-TEST FILE.xml3
-rw-r--r--moaSig/moa-sig/src/test/resources/testdata/xades/3.1.6-TEST FILE.xml3
-rw-r--r--moaSig/moa-sig/src/test/resources/testdata/xades/3.2.1-TEST FILE.xml3
-rw-r--r--moaSig/moa-sig/src/test/resources/testdata/xades/3.2.2-TEST FILE.xml3
-rw-r--r--moaSig/moa-sig/src/test/resources/testdata/xades/3.3.1-TEST FILE.xml3
-rw-r--r--moaSig/moa-sig/src/test/resources/testdata/xades/4.1.1-TEST FILE.xml3
-rw-r--r--moaSig/moa-sig/src/test/resources/testdata/xades/4.1.2-TEST FILE.xml3
-rw-r--r--moaSig/moa-sig/src/test/resources/testdata/xades/4.1.3-TEST FILE.xml3
-rw-r--r--moaSig/moa-sig/src/test/resources/testdata/xades/4.1.4-TEST FILE.xml3
-rw-r--r--moaSig/moa-sig/src/test/resources/testdata/xades/4.1.5-TEST FILE.xml3
-rw-r--r--moaSig/moa-sig/src/test/resources/testdata/xades/4.1.6-TEST FILE.xml3
-rw-r--r--moaSig/moa-sig/src/test/resources/testdata/xades/4.1.7-TEST FILE.xml3
-rw-r--r--moaSig/moa-sig/src/test/resources/testdata/xades/4.2.1-TEST FILE.xml3
-rw-r--r--moaSig/moa-sig/src/test/resources/testdata/xades/4.2.2-TEST FILE.xml3
-rw-r--r--moaSig/moa-sig/src/test/resources/testdata/xades/4.2.3-TEST FILE.xml3
-rw-r--r--moaSig/moa-sig/src/test/resources/testdata/xades/4.3.1-TEST FILE.xml3
-rw-r--r--moaSig/moa-sig/src/test/resources/testdata/xades/4.3.2-TEST FILE.xml3
-rw-r--r--moaSig/moa-sig/src/test/resources/testdata/xades/4.3.3-TEST FILE.xml3
-rw-r--r--moaSig/moa-sig/src/test/resources/testdata/xades/4.3.4-TEST FILE.xml3
-rw-r--r--moaSig/moa-sig/src/test/resources/testdata/xades/4.3.5-TEST FILE.xml3
-rw-r--r--moaSig/moa-sig/src/test/resources/testdata/xades/4.3.6-TEST FILE.xml3
-rw-r--r--moaSig/moa-sig/src/test/resources/testdata/xades/4.4.1-TEST FILE.xml3
-rw-r--r--moaSig/moa-sig/src/test/resources/testdata/xades/4.4.10-TEST FILE.xml3
-rw-r--r--moaSig/moa-sig/src/test/resources/testdata/xades/4.4.11-TEST FILE.xml3
-rw-r--r--moaSig/moa-sig/src/test/resources/testdata/xades/4.4.12-TEST FILE.xml3
-rw-r--r--moaSig/moa-sig/src/test/resources/testdata/xades/4.4.13-TEST FILE.xml3
-rw-r--r--moaSig/moa-sig/src/test/resources/testdata/xades/4.4.14-TEST FILE.xml3
-rw-r--r--moaSig/moa-sig/src/test/resources/testdata/xades/4.4.15-TEST FILE.xml3
-rw-r--r--moaSig/moa-sig/src/test/resources/testdata/xades/4.4.16-TEST FILE.xml3
-rw-r--r--moaSig/moa-sig/src/test/resources/testdata/xades/4.4.17-TEST FILE.xml3
-rw-r--r--moaSig/moa-sig/src/test/resources/testdata/xades/4.4.18-TEST FILE.xml3
-rw-r--r--moaSig/moa-sig/src/test/resources/testdata/xades/4.4.19-TEST FILE.xml3
-rw-r--r--moaSig/moa-sig/src/test/resources/testdata/xades/4.4.2-TEST FILE.xml3
-rw-r--r--moaSig/moa-sig/src/test/resources/testdata/xades/4.4.20-TEST FILE.xml3
-rw-r--r--moaSig/moa-sig/src/test/resources/testdata/xades/4.4.21-TEST FILE.xml3
-rw-r--r--moaSig/moa-sig/src/test/resources/testdata/xades/4.4.3-TEST FILE.xml3
-rw-r--r--moaSig/moa-sig/src/test/resources/testdata/xades/4.4.4-TEST FILE.xml3
-rw-r--r--moaSig/moa-sig/src/test/resources/testdata/xades/4.4.5-TEST FILE.xml3
-rw-r--r--moaSig/moa-sig/src/test/resources/testdata/xades/4.4.6-TEST FILE.xml3
-rw-r--r--moaSig/moa-sig/src/test/resources/testdata/xades/4.4.7-TEST FILE.xml3
-rw-r--r--moaSig/moa-sig/src/test/resources/testdata/xades/4.4.8-TEST FILE.xml3
-rw-r--r--moaSig/moa-sig/src/test/resources/testdata/xades/4.4.9-TEST FILE.xml3
-rw-r--r--moaSig/moa-sig/src/test/resources/testdata/xades/4.5.1-TEST FILE.xml3
-rw-r--r--moaSig/moa-sig/src/test/resources/testdata/xades/4.5.2-TEST FILE.xml3
-rw-r--r--moaSig/moa-sig/src/test/resources/testdata/xades/4.5.3-TEST FILE.xml3
-rw-r--r--moaSig/moa-sig/src/test/resources/testdata/xades/4.5.4-TEST FILE.xml3
-rw-r--r--moaSig/moa-sig/src/test/resources/testdata/xades/5.1.1-TEST FILE.xml3
-rw-r--r--moaSig/moa-sig/src/test/resources/testdata/xades/5.1.2-TEST FILE.xml3
-rw-r--r--moaSig/moa-sig/src/test/resources/testdata/xades/5.1.3-TEST FILE.xml3
-rw-r--r--moaSig/moa-sig/src/test/resources/testdata/xades/5.1.4-TEST FILE.xml3
-rw-r--r--moaSig/moa-sig/src/test/resources/testdata/xades/5.1.5-TEST FILE.xml3
-rw-r--r--moaSig/moa-sig/src/test/resources/testdata/xades/5.1.6-TEST FILE.xml3
-rw-r--r--moaSig/moa-sig/src/test/resources/testdata/xades/5.2.1-TEST FILE.xml3
-rw-r--r--moaSig/moa-sig/src/test/resources/testdata/xades/5.2.2-TEST FILE.xml3
-rw-r--r--moaSig/moa-sig/src/test/resources/testdata/xades/5.2.3-TEST FILE.xml3
-rw-r--r--moaSig/moa-sig/src/test/resources/testdata/xades/5.2.4-TEST FILE.xml3
-rw-r--r--moaSig/moa-sig/src/test/resources/testdata/xades/5.3.1-TEST FILE.xml3
-rw-r--r--moaSig/moa-sig/src/test/resources/testdata/xades/5.3.2-TEST FILE.xml3
-rw-r--r--moaSig/moa-sig/src/test/resources/testdata/xades/5.3.3-TEST FILE.xml3
-rw-r--r--moaSig/moa-sig/src/test/resources/testdata/xades/6.1.1-TEST FILE.xml3
-rw-r--r--moaSig/moa-sig/src/test/resources/testdata/xades/6.1.2-TEST FILE.xml3
-rw-r--r--moaSig/moa-sig/src/test/resources/testdata/xades/6.1.3-TEST FILE.xml3
-rw-r--r--moaSig/moa-sig/src/test/resources/testdata/xades/6.2.1-TEST FILE.xml3
-rw-r--r--moaSig/moa-sig/src/test/resources/testdata/xades/6.2.2-TEST FILE.xml3
-rw-r--r--moaSig/moa-sig/src/test/resources/testdata/xades/6.2.3-TEST FILE.xml3
-rw-r--r--moaSig/moa-sig/src/test/resources/testdata/xades/6.2.4-TEST FILE.xml3
-rw-r--r--moaSig/moa-sig/src/test/resources/testdata/xades/6.2.5-TEST FILE.xml3
-rw-r--r--moaSig/moa-sig/src/test/resources/testdata/xades/6.3.1-TEST FILE.xml3
-rw-r--r--moaSig/moa-sig/src/test/resources/testdata/xades/6.3.2-TEST FILE.xml3
-rw-r--r--moaSig/moa-sig/src/test/resources/testdata/xades/6.3.3-TEST FILE.xml3
-rw-r--r--moaSig/moa-sig/src/test/resources/testdata/xades/6.3.4-TEST FILE.xml3
-rw-r--r--moaSig/moa-sig/src/test/resources/testdata/xades/6.4.1-TEST FILE.xml3
-rw-r--r--moaSig/moa-sig/src/test/resources/testdata/xades/6.4.2-TEST FILE.xml3
-rw-r--r--moaSig/moa-sig/src/test/resources/testdata/xades/6.4.3-TEST FILE.xml3
-rw-r--r--moaSig/moa-sig/src/test/resources/testdata/xades/6.4.4-TEST FILE.xml3
-rw-r--r--moaSig/moa-sig/src/test/resources/testdata/xades/6.4.5-TEST FILE.xml3
-rw-r--r--moaSig/moa-sig/src/test/resources/testdata/xades/6.4.6-TEST FILE.xml3
-rw-r--r--moaSig/moa-sig/src/test/resources/testdata/xades/6.4.7-TEST FILE.xml3
-rw-r--r--moaSig/moa-sig/src/test/resources/testdata/xades/6.4.8-TEST FILE.xml3
-rw-r--r--moaSig/moa-sig/src/test/resources/testdata/xades/7.1.1-TEST FILE.xml3
-rw-r--r--moaSig/moa-sig/src/test/resources/testdata/xades/7.1.2-TEST FILE.xml3
-rw-r--r--moaSig/moa-sig/src/test/resources/testdata/xades/7.2.1-TEST FILE.xml3
-rw-r--r--moaSig/moa-sig/src/test/resources/testdata/xades/7.3.1-TEST FILE.xml3
-rw-r--r--moaSig/moa-sig/src/test/resources/testdata/xades/7.3.2-TEST FILE.xml3
-rw-r--r--moaSig/moa-sig/src/test/resources/testdata/xades/7.4.1-TEST FILE.xml3
159 files changed, 3878 insertions, 473 deletions
diff --git a/moaSig/moa-sig-lib/build.gradle b/moaSig/moa-sig-lib/build.gradle
index 6a62098..9602ee1 100644
--- a/moaSig/moa-sig-lib/build.gradle
+++ b/moaSig/moa-sig-lib/build.gradle
@@ -12,7 +12,7 @@ dependencies {
testImplementation project(path: ':common', configuration: 'testArtifacts')
api fileTree(dir: '../libs', include: '*.jar')
- api group: 'at.gv.egovernment.moa.sig', name: 'tsl-lib', version: '2.0.4'
+ api group: 'at.gv.egovernment.moa.sig', name: 'tsl-lib', version: '2.0.4.1'
api 'log4j:log4j:1.2.17'
api 'commons-logging:commons-logging:1.2'
api 'commons-io:commons-io:2.8.0'
diff --git a/moaSig/moa-sig/build.gradle b/moaSig/moa-sig/build.gradle
index 589fb8c..44cca7c 100644
--- a/moaSig/moa-sig/build.gradle
+++ b/moaSig/moa-sig/build.gradle
@@ -16,6 +16,8 @@ dependencies {
implementation group: 'javax.jws', name: 'javax.jws-api', version: '1.1'
testImplementation group: 'org.junit.jupiter', name: 'junit-jupiter-migrationsupport', version: '5.7.1'
+ testImplementation group: 'org.junit.platform', name: 'junit-platform-engine', version: '1.7.1'
+ testImplementation group: 'org.junit.jupiter', name: 'junit-jupiter-engine', version: '5.7.1'
}
diff --git a/moaSig/moa-sig/src/main/resources/log4j.properties b/moaSig/moa-sig/src/main/resources/log4j.properties
index 61f0cfe..716d78c 100644
--- a/moaSig/moa-sig/src/main/resources/log4j.properties
+++ b/moaSig/moa-sig/src/main/resources/log4j.properties
@@ -15,8 +15,7 @@ log4j.logger.at.gv.egovernment.moa.spss=info, moaspss
log4j.rootLogger=warn, stdout
log4j.logger.moa.spss.server=info, stdout, moaspss
log4j.logger.iaik.server=info, stdout, moaspss
-log4j.logger.at.gv.egovernment.moa.spss=TRACE, stdout, moaspss
->>>>>>> moaSig/moa-sig/src/main/resources/log4j.properties
+log4j.logger.at.gv.egovernment.moa.spss=info, stdout, moaspss
# Configure the 'stdout' appender to write logging output to the console
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
diff --git a/moaSig/moa-sig/src/main/resources/logback.xml b/moaSig/moa-sig/src/main/resources/logback.xml
index 501c1a6..0012e81 100644
--- a/moaSig/moa-sig/src/main/resources/logback.xml
+++ b/moaSig/moa-sig/src/main/resources/logback.xml
@@ -27,19 +27,19 @@
<pattern>logback | %5p | %d{dd HH:mm:ss,SSS} | %C{1} | %20c | %10t | %m%n</pattern>
</encoder>
</appender>
- <logger name="moa.spss.server" level="debug">
+ <logger name="moa.spss.server" level="info">
<appender-ref ref="moaspss"/>
<appender-ref ref="stdout"/>
</logger>
- <logger name="iaik.pki" level="debug">
+ <logger name="iaik.pki" level="info">
<appender-ref ref="moaspss"/>
<appender-ref ref="stdout"/>
</logger>
- <logger name="at.gv.egovernment.moa.spss" level="debug">
+ <logger name="at.gv.egovernment.moa.spss" level="info">
<appender-ref ref="moaspss"/>
<appender-ref ref="stdout"/>
</logger>
- <logger name="iaik.server" level="error">
+ <logger name="iaik.server" level="info">
<appender-ref ref="moaspss"/>
<appender-ref ref="stdout"/>
</logger>
diff --git a/moaSig/moa-sig/src/test/java/at/gv/egovernment/moa/spss/test/integration/AbstractIntegrationTest.java b/moaSig/moa-sig/src/test/java/at/gv/egovernment/moa/spss/test/integration/AbstractIntegrationTest.java
new file mode 100644
index 0000000..1c6e29a
--- /dev/null
+++ b/moaSig/moa-sig/src/test/java/at/gv/egovernment/moa/spss/test/integration/AbstractIntegrationTest.java
@@ -0,0 +1,261 @@
+package at.gv.egovernment.moa.spss.test.integration;
+
+import java.io.ByteArrayInputStream;
+import java.io.IOException;
+import java.lang.reflect.Field;
+import java.util.Date;
+import java.util.List;
+import java.util.Map;
+
+import javax.xml.parsers.DocumentBuilder;
+import javax.xml.parsers.DocumentBuilderFactory;
+import javax.xml.parsers.ParserConfigurationException;
+
+import org.apache.commons.lang3.time.DateFormatUtils;
+import org.junit.AfterClass;
+import org.w3c.dom.Document;
+import org.w3c.dom.Element;
+import org.w3c.dom.Node;
+
+import at.gv.egovernment.moa.sig.tsl.database.DatabaseServiceFactory;
+import at.gv.egovernment.moa.sig.tsl.database.SQLiteDBService;
+import at.gv.egovernment.moa.spss.MOAApplicationException;
+import at.gv.egovernment.moa.spss.api.cmsverify.VerifyCMSSignatureRequest;
+import at.gv.egovernment.moa.spss.api.impl.VerifyCMSSignatureRequestImpl;
+import at.gv.egovernment.moa.spss.api.xmlbind.VerifyXMLSignatureRequestParser;
+import at.gv.egovernment.moa.spss.api.xmlverify.VerifyXMLSignatureRequest;
+import at.gv.egovernment.moa.spss.server.config.ConfigurationException;
+import at.gv.egovernment.moa.spss.server.config.ConfigurationProvider;
+import at.gv.egovernment.moa.spss.server.init.StartupConfigurationHolder;
+import at.gv.egovernment.moa.spss.server.transaction.TransactionContext;
+import at.gv.egovernment.moa.spss.server.transaction.TransactionContextManager;
+import at.gv.egovernment.moa.spss.tsl.TSLServiceFactory;
+import at.gv.egovernment.moaspss.logging.LoggingContext;
+import at.gv.egovernment.moaspss.logging.LoggingContextManager;
+import at.gv.egovernment.moaspss.util.Base64Utils;
+import at.gv.egovernment.moaspss.util.Constants;
+import iaik.esi.sva.ConfigurationAdapter;
+import iaik.pki.Configurator;
+import iaik.pki.PKIFactory;
+import iaik.pki.store.certstore.CertStoreFactory;
+import iaik.pki.store.truststore.TrustStoreFactory;
+
+public abstract class AbstractIntegrationTest {
+
+ private static final String XMLNS_NS_URI = Constants.XMLNS_NS_URI;
+ private static final String MOA_NS_URI = Constants.MOA_NS_URI;
+ private static final String DSIG = Constants.DSIG_PREFIX + ":";
+ protected static final String DEFAULT_XPATH_SIGNATURE_LOCATION = "//" + DSIG + "Signature";
+
+ public static final String PATTERN_ISSUE_INSTANT = "yyyy-MM-dd'T'HH:mm:ssXXX";
+
+ protected static StartupConfigurationHolder moaSpssCore;
+
+ @AfterClass
+ public static void jvmStateReset() throws NoSuchFieldException,
+ SecurityException, IllegalArgumentException, IllegalAccessException {
+
+ System.setProperty("moa.spss.server.configuration", "");
+ System.setProperty("iaik.esi.sva.configuration.location", "");
+
+ TrustStoreFactory.reset();
+
+ // reset TSL client
+ final Field field1 = TSLServiceFactory.class.getDeclaredField("tslClient");
+ field1.setAccessible(true);
+ field1.set(null, null);
+
+ final Field field5 = SQLiteDBService.class.getDeclaredField("conn");
+ field5.setAccessible(true);
+ field5.set(null, null);
+
+ final Field field6 = DatabaseServiceFactory.class.getDeclaredField("dbServices");
+ field6.setAccessible(true);
+ field6.set(null, null);
+
+ // reset MOA-SPSS configuration object
+ final Field field2 = ConfigurationProvider.class.getDeclaredField("instance");
+ field2.setAccessible(true);
+ field2.set(null, null);
+
+ final Field field8 = TransactionContextManager.class.getDeclaredField("instance");
+ field8.setAccessible(true);
+ field8.set(null, null);
+
+ // reset PKI module configuration
+ final Field field3 = PKIFactory.class.getDeclaredField("instance_");
+ field3.setAccessible(true);
+ field3.set(null, null);
+
+ // reset IAIK MOA configuration
+ final Field field4 = Configurator.class.getDeclaredField("C");
+ field4.setAccessible(true);
+ field4.set(null, false);
+
+ //reset ESI-SVA configuration
+ final Field field7 = ConfigurationAdapter.class.getDeclaredField("a");
+ field7.setAccessible(true);
+ field7.set(null, null);
+
+ }
+
+ protected VerifyXMLSignatureRequest buildVerifyXmlRequest(final byte[] signature,
+ final String trustProfileID, boolean extValFlag,
+ final List<String> verifyTransformsInfoProfileID, final String xpathSignatureLocation,
+ Date sigValDate, final Map<String, byte[]> supplementContent) throws IOException,
+ ParserConfigurationException, MOAApplicationException {
+ // build empty document
+ final Document requestDoc_ = getNewDocumentBuilder();
+
+ final Element requestElem_ =
+ requestDoc_.createElementNS(MOA_NS_URI, "VerifyXMLSignatureRequest");
+ requestElem_.setAttributeNS(XMLNS_NS_URI, "xmlns", MOA_NS_URI);
+ requestElem_.setAttributeNS(XMLNS_NS_URI, "xmlns:" + Constants.DSIG_PREFIX,
+ Constants.DSIG_NS_URI);
+ requestDoc_.appendChild(requestElem_);
+
+ // build the request
+
+ // build set signing time
+ if (sigValDate != null) {
+ final Element dateTimeElem = requestDoc_.createElementNS(MOA_NS_URI, "DateTime");
+ requestElem_.appendChild(dateTimeElem);
+ final Node dateTime = requestDoc_.createTextNode(
+ DateFormatUtils.format(sigValDate, PATTERN_ISSUE_INSTANT));
+ dateTimeElem.appendChild(dateTime);
+
+ }
+
+ // extended validation flag
+ final Element extVal = requestDoc_.createElementNS(MOA_NS_URI, "ExtendedValidation");
+ requestElem_.appendChild(extVal);
+ final Node extValElement = requestDoc_.createTextNode(String.valueOf(extValFlag));
+ extVal.appendChild(extValElement);
+
+ // set other parameters
+ final Element verifiySignatureInfoElem =
+ requestDoc_.createElementNS(MOA_NS_URI, "VerifySignatureInfo");
+ requestElem_.appendChild(verifiySignatureInfoElem);
+ final Element verifySignatureEnvironmentElem =
+ requestDoc_.createElementNS(MOA_NS_URI, "VerifySignatureEnvironment");
+ verifiySignatureInfoElem.appendChild(verifySignatureEnvironmentElem);
+ final Element base64ContentElem = requestDoc_.createElementNS(MOA_NS_URI, "Base64Content");
+ verifySignatureEnvironmentElem.appendChild(base64ContentElem);
+
+ // insert the base64 encoded signature
+ String base64EncodedAssertion = Base64Utils.encode(signature);
+ // replace all '\r' characters by no char.
+ final StringBuffer replaced = new StringBuffer();
+ for (int i = 0; i < base64EncodedAssertion.length(); i++) {
+ final char c = base64EncodedAssertion.charAt(i);
+ if (c != '\r') {
+ replaced.append(c);
+ }
+ }
+ base64EncodedAssertion = replaced.toString();
+ final Node base64Content = requestDoc_.createTextNode(base64EncodedAssertion);
+ base64ContentElem.appendChild(base64Content);
+
+ // specify the signature location
+ final Element verifySignatureLocationElem =
+ requestDoc_.createElementNS(MOA_NS_URI, "VerifySignatureLocation");
+ verifiySignatureInfoElem.appendChild(verifySignatureLocationElem);
+ final Node signatureLocation = requestDoc_.createTextNode(xpathSignatureLocation);
+ verifySignatureLocationElem.appendChild(signatureLocation);
+
+ // signature manifest params
+ if (verifyTransformsInfoProfileID != null && !verifyTransformsInfoProfileID.isEmpty()) {
+ final Element signatureManifestCheckParamsElem =
+ requestDoc_.createElementNS(MOA_NS_URI, "SignatureManifestCheckParams");
+ requestElem_.appendChild(signatureManifestCheckParamsElem);
+ signatureManifestCheckParamsElem.setAttribute("ReturnReferenceInputData", "false");
+
+ // verify transformations
+ final Element referenceInfoElem = requestDoc_.createElementNS(MOA_NS_URI, "ReferenceInfo");
+ signatureManifestCheckParamsElem.appendChild(referenceInfoElem);
+ for (final String element : verifyTransformsInfoProfileID) {
+ final Element verifyTransformsInfoProfileIdElem =
+ requestDoc_.createElementNS(MOA_NS_URI, "VerifyTransformsInfoProfileID");
+ referenceInfoElem.appendChild(verifyTransformsInfoProfileIdElem);
+ verifyTransformsInfoProfileIdElem.appendChild(requestDoc_.createTextNode(element));
+
+ }
+ }
+
+ // hashinput data
+ final Element returnHashInputDataElem =
+ requestDoc_.createElementNS(MOA_NS_URI, "ReturnHashInputData");
+ requestElem_.appendChild(returnHashInputDataElem);
+
+ // add trustProfileID
+ final Element trustProfileIdElem = requestDoc_.createElementNS(MOA_NS_URI, "TrustProfileID");
+ trustProfileIdElem.appendChild(requestDoc_.createTextNode(trustProfileID));
+ requestElem_.appendChild(trustProfileIdElem);
+
+ // add supplement profile
+ if (!supplementContent.isEmpty()) {
+
+ final Element supplementProfile = requestDoc_.createElementNS(MOA_NS_URI, "SupplementProfile");
+
+ for (final Map.Entry<String, byte[]> entry : supplementContent.entrySet()) {
+ final String reference = entry.getKey();
+ final byte[] contentBytes = entry.getValue();
+ final Element content = requestDoc_.createElementNS(MOA_NS_URI, "Content");
+ content.setAttribute("Reference", reference);
+ final Element b64content = requestDoc_.createElementNS(MOA_NS_URI, "Base64Content");
+ b64content.setTextContent(Base64Utils.encode(contentBytes));
+ content.appendChild(b64content);
+ supplementProfile.appendChild(content);
+ }
+
+ requestElem_.appendChild(supplementProfile);
+ }
+
+ return new VerifyXMLSignatureRequestParser().parse(requestElem_);
+
+ }
+
+ protected VerifyCMSSignatureRequest buildVerfifyCmsRequest(final byte[] signature,
+ final String trustProfileID, final boolean isPdfSignature,
+ final boolean performExtendedValidation) {
+ final VerifyCMSSignatureRequestImpl verifyCmsSignatureRequest =
+ new VerifyCMSSignatureRequestImpl();
+ verifyCmsSignatureRequest.setDateTime(null);
+ verifyCmsSignatureRequest.setCMSSignature(new ByteArrayInputStream(signature));
+ verifyCmsSignatureRequest.setDataObject(null);
+ verifyCmsSignatureRequest.setTrustProfileId(trustProfileID);
+ verifyCmsSignatureRequest.setSignatories(VerifyCMSSignatureRequest.ALL_SIGNATORIES);
+ verifyCmsSignatureRequest.setPDF(isPdfSignature);
+ verifyCmsSignatureRequest.setExtended(performExtendedValidation);
+ return verifyCmsSignatureRequest;
+
+ }
+
+ protected synchronized Document getNewDocumentBuilder() throws ParserConfigurationException {
+ final DocumentBuilder docBuilder = DocumentBuilderFactory.newInstance().newDocumentBuilder();
+ return docBuilder.newDocument();
+
+ }
+
+ protected final void setUpContexts(final String transactionID) throws ConfigurationException {
+ final TransactionContextManager txMgr = TransactionContextManager.getInstance();
+ final LoggingContextManager logMgr = LoggingContextManager.getInstance();
+
+ if (txMgr.getTransactionContext() == null) {
+ final TransactionContext ctx =
+ new TransactionContext(transactionID, null, moaSpssCore.getMoaSpssConfig());
+ txMgr.setTransactionContext(ctx);
+
+ }
+
+ // set Logging context into MOA-Sig
+ if (logMgr.getLoggingContext() == null) {
+ final LoggingContext ctx = new LoggingContext(transactionID);
+ logMgr.setLoggingContext(ctx);
+
+ }
+
+ // new IaikConfigurator().configure(moaSigConfig.getMoaSigConfig());
+
+ }
+}
diff --git a/moaSig/moa-sig/src/test/java/at/gv/egovernment/moa/spss/test/integration/CadesIntegrationTest.java b/moaSig/moa-sig/src/test/java/at/gv/egovernment/moa/spss/test/integration/CadesIntegrationTest.java
index 227866e..abdab26 100644
--- a/moaSig/moa-sig/src/test/java/at/gv/egovernment/moa/spss/test/integration/CadesIntegrationTest.java
+++ b/moaSig/moa-sig/src/test/java/at/gv/egovernment/moa/spss/test/integration/CadesIntegrationTest.java
@@ -7,11 +7,12 @@ import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertThrows;
import static org.junit.Assert.assertTrue;
-import java.io.ByteArrayInputStream;
import java.io.IOException;
+import java.lang.reflect.Field;
import org.apache.commons.io.IOUtils;
import org.apache.commons.lang3.RandomStringUtils;
+import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
@@ -22,246 +23,241 @@ import at.gv.egovernment.moa.spss.MOAException;
import at.gv.egovernment.moa.spss.api.cmsverify.VerifyCMSSignatureRequest;
import at.gv.egovernment.moa.spss.api.cmsverify.VerifyCMSSignatureResponse;
import at.gv.egovernment.moa.spss.api.cmsverify.VerifyCMSSignatureResponseElement;
-import at.gv.egovernment.moa.spss.api.impl.VerifyCMSSignatureRequestImpl;
import at.gv.egovernment.moa.spss.api.xmlverify.AdESFormResults;
import at.gv.egovernment.moa.spss.server.config.ConfigurationException;
-import at.gv.egovernment.moa.spss.server.init.StartupConfigurationHolder;
+import at.gv.egovernment.moa.spss.server.config.ConfigurationProvider;
import at.gv.egovernment.moa.spss.server.init.SystemInitializer;
import at.gv.egovernment.moa.spss.server.invoke.CMSSignatureVerificationInvoker;
-import at.gv.egovernment.moa.spss.server.transaction.TransactionContext;
-import at.gv.egovernment.moa.spss.server.transaction.TransactionContextManager;
-import at.gv.egovernment.moaspss.logging.LoggingContext;
-import at.gv.egovernment.moaspss.logging.LoggingContextManager;
+import at.gv.egovernment.moa.spss.tsl.TSLServiceFactory;
+import iaik.pki.Configurator;
+import iaik.pki.PKIFactory;
@RunWith(BlockJUnit4ClassRunner.class)
-public class CadesIntegrationTest {
+public class CadesIntegrationTest extends AbstractIntegrationTest {
- private static StartupConfigurationHolder moaSpssCore;
CMSSignatureVerificationInvoker cadesInvoker;
-
+
@BeforeClass
- public static void classInitializer() throws IOException {
+ public static void classInitializer() throws IOException, ConfigurationException,
+ NoSuchFieldException, SecurityException, IllegalArgumentException, IllegalAccessException {
+ jvmStateReset();
+
final String current = new java.io.File(".").getCanonicalPath();
System.setProperty("moa.spss.server.configuration",
- current + "/src/test/resources/moaspss_config/MOASPSSConfiguration.xml");
+ current + "/src/test/resources/moaspss_config/MOASPSSConfiguration.xml");
moaSpssCore = SystemInitializer.init();
-
+
+ }
+
+ @AfterClass
+ public static void classReset() throws NoSuchFieldException,
+ SecurityException, IllegalArgumentException, IllegalAccessException {
+
+ // reset TSL client
+ final Field field1 = TSLServiceFactory.class.getDeclaredField("tslClient");
+ field1.setAccessible(true);
+ field1.set(null, null);
+
+ final Field field2 = ConfigurationProvider.class.getDeclaredField("instance");
+ field2.setAccessible(true);
+ field2.set(null, null);
+
+ final Field field3 = PKIFactory.class.getDeclaredField("instance_");
+ field3.setAccessible(true);
+ field3.set(null, null);
+
+ final Field field4 = Configurator.class.getDeclaredField("C");
+ field4.setAccessible(true);
+ field4.set(null, false);
+
}
-
+
@Before
public void initializer() throws ConfigurationException {
cadesInvoker = CMSSignatureVerificationInvoker.getInstance();
setUpContexts(RandomStringUtils.randomAlphabetic(10));
-
+
}
-
+
@Test
public void missingTrustProfile() throws IOException {
- VerifyCMSSignatureRequest request = buildVerfifyCmsRequest(
- org.apache.commons.codec.binary.Base64.decodeBase64(IOUtils.resourceToByteArray("/testdata/cades/simpleCadesSig.b64")),
- RandomStringUtils.randomAlphabetic(5),
- false,
+ final VerifyCMSSignatureRequest request = buildVerfifyCmsRequest(
+ org.apache.commons.codec.binary.Base64.decodeBase64(IOUtils.resourceToByteArray(
+ "/testdata/cades/simpleCadesSig.b64")),
+ RandomStringUtils.randomAlphabetic(5),
+ false,
false);
-
+
// perform test
- MOAException error = assertThrows(MOAException.class,() -> cadesInvoker.verifyCMSSignature(request));
+ final MOAException error = assertThrows(MOAException.class, () -> cadesInvoker.verifyCMSSignature(
+ request));
assertEquals("wrong errorCode", "2203", error.getMessageId());
-
+
}
-
+
@Test
- public void basicValidationAtrustEidCadesSignature() throws MOAException, IOException {
- VerifyCMSSignatureRequest request = buildVerfifyCmsRequest(
- org.apache.commons.codec.binary.Base64.decodeBase64(IOUtils.resourceToByteArray("/testdata/cades/ATrust_SigTest1.b64")),
- "MOAIDBuergerkarteAuthentisierungsDatenMitTestkarten",
- false,
+ public void basicValidationAtrustEidCadesSignature() throws MOAException, IOException {
+ final VerifyCMSSignatureRequest request = buildVerfifyCmsRequest(
+ org.apache.commons.codec.binary.Base64.decodeBase64(IOUtils.resourceToByteArray(
+ "/testdata/cades/ATrust_SigTest1.b64")),
+ "MOAIDBuergerkarteAuthentisierungsDatenMitTestkarten",
+ false,
false);
-
+
// perform test
- VerifyCMSSignatureResponse result = cadesInvoker.verifyCMSSignature(request);
-
+ final VerifyCMSSignatureResponse result = cadesInvoker.verifyCMSSignature(request);
+
// verify result
assertNotNull("verification result", result);
assertEquals("wrong result size", 1, result.getResponseElements().size());
-
- VerifyCMSSignatureResponseElement cmsResult = (VerifyCMSSignatureResponseElement) result.getResponseElements().get(0);
+
+ final VerifyCMSSignatureResponseElement cmsResult = (VerifyCMSSignatureResponseElement) result
+ .getResponseElements().get(0);
assertEquals("sigCode", 0, cmsResult.getSignatureCheck().getCode());
assertEquals("certCode", 0, cmsResult.getCertificateCheck().getCode());
-
+
assertNotNull("signerInfo", cmsResult.getSignerInfo());
assertEquals("issuerCC", "AT", cmsResult.getSignerInfo().getIssuerCountryCode());
assertFalse("publicAuthority", cmsResult.getSignerInfo().isPublicAuthority());
assertTrue("QC", cmsResult.getSignerInfo().isQualifiedCertificate());
- assertTrue("SSCD", cmsResult.getSignerInfo().isSSCD());
+ assertTrue("SSCD", cmsResult.getSignerInfo().isSSCD());
assertNull("TSL infos", cmsResult.getSignerInfo().getTslInfos());
-
+
assertNull("form val. result", cmsResult.getAdESFormResults());
assertNull("extended val. result", cmsResult.getExtendedCertificateCheck());
assertNull("byteRange", cmsResult.getByteRangeOfSignature());
assertNull("used sig alg", cmsResult.getSignatureAlgorithm());
-
+
}
-
+
@Test
- public void extendedValidationAtrustEidCadesSignature() throws MOAException, IOException {
- VerifyCMSSignatureRequest request = buildVerfifyCmsRequest(
- org.apache.commons.codec.binary.Base64.decodeBase64(IOUtils.resourceToByteArray("/testdata/cades/ATrust_SigTest1.b64")),
- "MOAIDBuergerkarteAuthentisierungsDatenMitTestkarten",
- false,
+ public void extendedValidationAtrustEidCadesSignature() throws MOAException, IOException {
+ final VerifyCMSSignatureRequest request = buildVerfifyCmsRequest(
+ org.apache.commons.codec.binary.Base64.decodeBase64(IOUtils.resourceToByteArray(
+ "/testdata/cades/ATrust_SigTest1.b64")),
+ "MOAIDBuergerkarteAuthentisierungsDatenMitTestkarten",
+ false,
true);
-
+
// perform test
- VerifyCMSSignatureResponse result = cadesInvoker.verifyCMSSignature(request);
-
+ final VerifyCMSSignatureResponse result = cadesInvoker.verifyCMSSignature(request);
+
// verify result
assertNotNull("verification result", result);
assertEquals("wrong result size", 1, result.getResponseElements().size());
-
- VerifyCMSSignatureResponseElement cmsResult = (VerifyCMSSignatureResponseElement) result.getResponseElements().get(0);
+
+ final VerifyCMSSignatureResponseElement cmsResult = (VerifyCMSSignatureResponseElement) result
+ .getResponseElements().get(0);
assertEquals("sigCode", 0, cmsResult.getSignatureCheck().getCode());
assertEquals("certCode", 0, cmsResult.getCertificateCheck().getCode());
-
+
assertNotNull("signerInfo", cmsResult.getSignerInfo());
assertEquals("issuerCC", "AT", cmsResult.getSignerInfo().getIssuerCountryCode());
assertFalse("publicAuthority", cmsResult.getSignerInfo().isPublicAuthority());
assertTrue("QC", cmsResult.getSignerInfo().isQualifiedCertificate());
- assertTrue("SSCD", cmsResult.getSignerInfo().isSSCD());
+ assertTrue("SSCD", cmsResult.getSignerInfo().isSSCD());
assertNull("TSL infos", cmsResult.getSignerInfo().getTslInfos());
-
+
assertNotNull("form val. result", cmsResult.getAdESFormResults());
assertEquals("form val. result size", 4, cmsResult.getAdESFormResults().size());
- for (Object el : cmsResult.getAdESFormResults()) {
- AdESFormResults test = ((AdESFormResults)el);
+ for (final Object el : cmsResult.getAdESFormResults()) {
+ final AdESFormResults test = (AdESFormResults) el;
if (test.getCode().longValue() == 0) {
assertEquals("wrong from name", "B-B", test.getName());
-
+
} else {
assertEquals("Find wrong form val status", 2, test.getCode().longValue());
-
- }
+
+ }
}
-
+
assertNotNull("extended val. result", cmsResult.getExtendedCertificateCheck());
assertEquals("ext. val major", 2, cmsResult.getExtendedCertificateCheck().getMajorCode());
assertEquals("ext. val major", 24, cmsResult.getExtendedCertificateCheck().getMinorCode());
-
- assertNull("byteRange", cmsResult.getByteRangeOfSignature());
+
+ assertNull("byteRange", cmsResult.getByteRangeOfSignature());
assertEquals("used sig alg", "SHA256withECDSA", cmsResult.getSignatureAlgorithm());
-
+
}
-
+
@Test
- public void basicValidationCadesSignature() throws MOAException, IOException {
- VerifyCMSSignatureRequest request = buildVerfifyCmsRequest(
- org.apache.commons.codec.binary.Base64.decodeBase64(IOUtils.resourceToByteArray("/testdata/cades/simpleCadesSig.b64")),
- "MOAIDBuergerkarteAuthentisierungsDaten",
- false,
+ public void basicValidationCadesSignature() throws MOAException, IOException {
+ final VerifyCMSSignatureRequest request = buildVerfifyCmsRequest(
+ org.apache.commons.codec.binary.Base64.decodeBase64(IOUtils.resourceToByteArray(
+ "/testdata/cades/simpleCadesSig.b64")),
+ "MOAIDBuergerkarteAuthentisierungsDaten",
+ false,
false);
-
+
// perform test
- VerifyCMSSignatureResponse result = cadesInvoker.verifyCMSSignature(request);
-
+ final VerifyCMSSignatureResponse result = cadesInvoker.verifyCMSSignature(request);
+
// verify result
assertNotNull("verification result", result);
assertEquals("wrong result size", 1, result.getResponseElements().size());
-
- VerifyCMSSignatureResponseElement cmsResult = (VerifyCMSSignatureResponseElement) result.getResponseElements().get(0);
+
+ final VerifyCMSSignatureResponseElement cmsResult = (VerifyCMSSignatureResponseElement) result
+ .getResponseElements().get(0);
assertEquals("sigCode", 0, cmsResult.getSignatureCheck().getCode());
assertEquals("certCode", 1, cmsResult.getCertificateCheck().getCode());
-
+
assertNotNull("signerInfo", cmsResult.getSignerInfo());
assertEquals("issuerCC", "AT", cmsResult.getSignerInfo().getIssuerCountryCode());
assertFalse("publicAuthority", cmsResult.getSignerInfo().isPublicAuthority());
assertFalse("QC", cmsResult.getSignerInfo().isQualifiedCertificate());
- assertFalse("SSCD", cmsResult.getSignerInfo().isSSCD());
+ assertFalse("SSCD", cmsResult.getSignerInfo().isSSCD());
assertNull("TSL infos", cmsResult.getSignerInfo().getTslInfos());
-
+
assertNull("form val. result", cmsResult.getAdESFormResults());
assertNull("extended val. result", cmsResult.getExtendedCertificateCheck());
assertNull("byteRange", cmsResult.getByteRangeOfSignature());
assertNull("used sig alg", cmsResult.getSignatureAlgorithm());
-
+
}
-
+
@Test
- public void extendedValidationCadesSignature() throws MOAException, IOException {
- VerifyCMSSignatureRequest request = buildVerfifyCmsRequest(
- org.apache.commons.codec.binary.Base64.decodeBase64(IOUtils.resourceToByteArray("/testdata/cades/simpleCadesSig.b64")),
- "MOAIDBuergerkarteAuthentisierungsDaten",
- false,
+ public void extendedValidationCadesSignature() throws MOAException, IOException {
+ final VerifyCMSSignatureRequest request = buildVerfifyCmsRequest(
+ org.apache.commons.codec.binary.Base64.decodeBase64(IOUtils.resourceToByteArray(
+ "/testdata/cades/simpleCadesSig.b64")),
+ "MOAIDBuergerkarteAuthentisierungsDaten",
+ false,
true);
-
+
// perform test
- VerifyCMSSignatureResponse result = cadesInvoker.verifyCMSSignature(request);
-
+ final VerifyCMSSignatureResponse result = cadesInvoker.verifyCMSSignature(request);
+
// verify result
assertNotNull("verification result", result);
assertEquals("wrong result size", 1, result.getResponseElements().size());
-
- VerifyCMSSignatureResponseElement cmsResult = (VerifyCMSSignatureResponseElement) result.getResponseElements().get(0);
+
+ final VerifyCMSSignatureResponseElement cmsResult = (VerifyCMSSignatureResponseElement) result
+ .getResponseElements().get(0);
assertEquals("sigCode", 0, cmsResult.getSignatureCheck().getCode());
assertEquals("certCode", 1, cmsResult.getCertificateCheck().getCode());
-
+
assertNotNull("signerInfo", cmsResult.getSignerInfo());
assertEquals("issuerCC", "AT", cmsResult.getSignerInfo().getIssuerCountryCode());
assertFalse("publicAuthority", cmsResult.getSignerInfo().isPublicAuthority());
assertFalse("QC", cmsResult.getSignerInfo().isQualifiedCertificate());
- assertFalse("SSCD", cmsResult.getSignerInfo().isSSCD());
+ assertFalse("SSCD", cmsResult.getSignerInfo().isSSCD());
assertNull("TSL infos", cmsResult.getSignerInfo().getTslInfos());
-
+
assertNotNull("form val. result", cmsResult.getAdESFormResults());
assertEquals("form val. result size", 4, cmsResult.getAdESFormResults().size());
- for (Object el : cmsResult.getAdESFormResults()) {
- AdESFormResults test = ((AdESFormResults)el);
+ for (final Object el : cmsResult.getAdESFormResults()) {
+ final AdESFormResults test = (AdESFormResults) el;
assertEquals("Find wrong form val status", 1, test.getCode().longValue());
-
+
}
-
+
assertNotNull("extended val. result", cmsResult.getExtendedCertificateCheck());
assertEquals("ext. val major", 2, cmsResult.getExtendedCertificateCheck().getMajorCode());
assertEquals("ext. val major", 24, cmsResult.getExtendedCertificateCheck().getMinorCode());
-
- assertNull("byteRange", cmsResult.getByteRangeOfSignature());
+
+ assertNull("byteRange", cmsResult.getByteRangeOfSignature());
assertEquals("used sig alg", "SHA256withRSA", cmsResult.getSignatureAlgorithm());
-
- }
-
- private VerifyCMSSignatureRequest buildVerfifyCmsRequest(final byte[] signature,
- final String trustProfileID, final boolean isPdfSignature,
- final boolean performExtendedValidation) {
- final VerifyCMSSignatureRequestImpl verifyCmsSignatureRequest =
- new VerifyCMSSignatureRequestImpl();
- verifyCmsSignatureRequest.setDateTime(null);
- verifyCmsSignatureRequest.setCMSSignature(new ByteArrayInputStream(signature));
- verifyCmsSignatureRequest.setDataObject(null);
- verifyCmsSignatureRequest.setTrustProfileId(trustProfileID);
- verifyCmsSignatureRequest.setSignatories(VerifyCMSSignatureRequest.ALL_SIGNATORIES);
- verifyCmsSignatureRequest.setPDF(isPdfSignature);
- verifyCmsSignatureRequest.setExtended(performExtendedValidation);
- return verifyCmsSignatureRequest;
}
-
- protected final void setUpContexts(final String transactionID) throws ConfigurationException {
- final TransactionContextManager txMgr = TransactionContextManager.getInstance();
- final LoggingContextManager logMgr = LoggingContextManager.getInstance();
-
- if (txMgr.getTransactionContext() == null) {
- final TransactionContext ctx =
- new TransactionContext(transactionID, null, moaSpssCore.getMoaSpssConfig());
- txMgr.setTransactionContext(ctx);
-
- }
- //set Logging context into MOA-Sig
- if (logMgr.getLoggingContext() == null) {
- final LoggingContext ctx = new LoggingContext(transactionID);
- logMgr.setLoggingContext(ctx);
-
- }
-
- //new IaikConfigurator().configure(moaSigConfig.getMoaSigConfig());
-
- }
-
}
diff --git a/moaSig/moa-sig/src/test/java/at/gv/egovernment/moa/spss/test/integration/CadesIntegrationWithMoaSpssSvaConfigTest.java b/moaSig/moa-sig/src/test/java/at/gv/egovernment/moa/spss/test/integration/CadesIntegrationWithMoaSpssSvaConfigTest.java
new file mode 100644
index 0000000..f9f396d
--- /dev/null
+++ b/moaSig/moa-sig/src/test/java/at/gv/egovernment/moa/spss/test/integration/CadesIntegrationWithMoaSpssSvaConfigTest.java
@@ -0,0 +1,265 @@
+package at.gv.egovernment.moa.spss.test.integration;
+
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertFalse;
+import static org.junit.Assert.assertNotNull;
+import static org.junit.Assert.assertNull;
+import static org.junit.Assert.assertThrows;
+import static org.junit.Assert.assertTrue;
+
+import java.io.IOException;
+import java.lang.reflect.Field;
+
+import org.apache.commons.io.IOUtils;
+import org.apache.commons.lang3.RandomStringUtils;
+import org.junit.AfterClass;
+import org.junit.Before;
+import org.junit.BeforeClass;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.junit.runners.BlockJUnit4ClassRunner;
+
+import at.gv.egovernment.moa.spss.MOAException;
+import at.gv.egovernment.moa.spss.api.cmsverify.VerifyCMSSignatureRequest;
+import at.gv.egovernment.moa.spss.api.cmsverify.VerifyCMSSignatureResponse;
+import at.gv.egovernment.moa.spss.api.cmsverify.VerifyCMSSignatureResponseElement;
+import at.gv.egovernment.moa.spss.api.xmlverify.AdESFormResults;
+import at.gv.egovernment.moa.spss.server.config.ConfigurationException;
+import at.gv.egovernment.moa.spss.server.config.ConfigurationProvider;
+import at.gv.egovernment.moa.spss.server.init.SystemInitializer;
+import at.gv.egovernment.moa.spss.server.invoke.CMSSignatureVerificationInvoker;
+import at.gv.egovernment.moa.spss.tsl.TSLServiceFactory;
+import iaik.pki.Configurator;
+import iaik.pki.PKIFactory;
+
+@RunWith(BlockJUnit4ClassRunner.class)
+public class CadesIntegrationWithMoaSpssSvaConfigTest extends AbstractIntegrationTest {
+
+ CMSSignatureVerificationInvoker cadesInvoker;
+
+ @BeforeClass
+ public static void classInitializer() throws IOException, ConfigurationException,
+ NoSuchFieldException, SecurityException, IllegalArgumentException, IllegalAccessException {
+ jvmStateReset();
+
+ final String current = new java.io.File(".").getCanonicalPath();
+ System.setProperty("moa.spss.server.configuration",
+ current + "/src/test/resources/moaspss_config/MOASPSSConfiguration.xml");
+ System.setProperty("iaik.esi.sva.configuration.location",
+ current + "/src/test/resources/moaspss_config/svaconfig.example");
+ moaSpssCore = SystemInitializer.init();
+
+ }
+
+ @AfterClass
+ public static void classReset() throws NoSuchFieldException,
+ SecurityException, IllegalArgumentException, IllegalAccessException {
+
+ // reset TSL client
+ final Field field1 = TSLServiceFactory.class.getDeclaredField("tslClient");
+ field1.setAccessible(true);
+ field1.set(null, null);
+
+ final Field field2 = ConfigurationProvider.class.getDeclaredField("instance");
+ field2.setAccessible(true);
+ field2.set(null, null);
+
+ final Field field3 = PKIFactory.class.getDeclaredField("instance_");
+ field3.setAccessible(true);
+ field3.set(null, null);
+
+ final Field field4 = Configurator.class.getDeclaredField("C");
+ field4.setAccessible(true);
+ field4.set(null, false);
+
+ }
+
+ @Before
+ public void initializer() throws ConfigurationException {
+ cadesInvoker = CMSSignatureVerificationInvoker.getInstance();
+ setUpContexts(RandomStringUtils.randomAlphabetic(10));
+
+ }
+
+ @Test
+ public void missingTrustProfile() throws IOException {
+ final VerifyCMSSignatureRequest request = buildVerfifyCmsRequest(
+ org.apache.commons.codec.binary.Base64.decodeBase64(IOUtils.resourceToByteArray(
+ "/testdata/cades/simpleCadesSig.b64")),
+ RandomStringUtils.randomAlphabetic(5),
+ false,
+ false);
+
+ // perform test
+ final MOAException error = assertThrows(MOAException.class, () -> cadesInvoker.verifyCMSSignature(
+ request));
+ assertEquals("wrong errorCode", "2203", error.getMessageId());
+
+ }
+
+ @Test
+ public void basicValidationAtrustEidCadesSignature() throws MOAException, IOException {
+ final VerifyCMSSignatureRequest request = buildVerfifyCmsRequest(
+ org.apache.commons.codec.binary.Base64.decodeBase64(IOUtils.resourceToByteArray(
+ "/testdata/cades/ATrust_SigTest1.b64")),
+ "MOAIDBuergerkarteAuthentisierungsDatenMitTestkarten",
+ false,
+ false);
+
+ // perform test
+ final VerifyCMSSignatureResponse result = cadesInvoker.verifyCMSSignature(request);
+
+ // verify result
+ assertNotNull("verification result", result);
+ assertEquals("wrong result size", 1, result.getResponseElements().size());
+
+ final VerifyCMSSignatureResponseElement cmsResult = (VerifyCMSSignatureResponseElement) result
+ .getResponseElements().get(0);
+ assertEquals("sigCode", 0, cmsResult.getSignatureCheck().getCode());
+ assertEquals("certCode", 0, cmsResult.getCertificateCheck().getCode());
+
+ assertNotNull("signerInfo", cmsResult.getSignerInfo());
+ assertEquals("issuerCC", "AT", cmsResult.getSignerInfo().getIssuerCountryCode());
+ assertFalse("publicAuthority", cmsResult.getSignerInfo().isPublicAuthority());
+ assertTrue("QC", cmsResult.getSignerInfo().isQualifiedCertificate());
+ assertTrue("SSCD", cmsResult.getSignerInfo().isSSCD());
+ assertNull("TSL infos", cmsResult.getSignerInfo().getTslInfos());
+
+ assertNull("form val. result", cmsResult.getAdESFormResults());
+ assertNull("extended val. result", cmsResult.getExtendedCertificateCheck());
+ assertNull("byteRange", cmsResult.getByteRangeOfSignature());
+ assertNull("used sig alg", cmsResult.getSignatureAlgorithm());
+
+ }
+
+ @Test
+ public void extendedValidationAtrustEidCadesSignature() throws MOAException, IOException {
+ final VerifyCMSSignatureRequest request = buildVerfifyCmsRequest(
+ org.apache.commons.codec.binary.Base64.decodeBase64(IOUtils.resourceToByteArray(
+ "/testdata/cades/ATrust_SigTest1.b64")),
+ "MOAIDBuergerkarteAuthentisierungsDatenMitTestkarten",
+ false,
+ true);
+
+ // perform test
+ final VerifyCMSSignatureResponse result = cadesInvoker.verifyCMSSignature(request);
+
+ // verify result
+ assertNotNull("verification result", result);
+ assertEquals("wrong result size", 1, result.getResponseElements().size());
+
+ final VerifyCMSSignatureResponseElement cmsResult = (VerifyCMSSignatureResponseElement) result
+ .getResponseElements().get(0);
+ assertEquals("sigCode", 0, cmsResult.getSignatureCheck().getCode());
+ assertEquals("certCode", 0, cmsResult.getCertificateCheck().getCode());
+
+ assertNotNull("signerInfo", cmsResult.getSignerInfo());
+ assertEquals("issuerCC", "AT", cmsResult.getSignerInfo().getIssuerCountryCode());
+ assertFalse("publicAuthority", cmsResult.getSignerInfo().isPublicAuthority());
+ assertTrue("QC", cmsResult.getSignerInfo().isQualifiedCertificate());
+ assertTrue("SSCD", cmsResult.getSignerInfo().isSSCD());
+ assertNull("TSL infos", cmsResult.getSignerInfo().getTslInfos());
+
+ assertNotNull("form val. result", cmsResult.getAdESFormResults());
+ assertEquals("form val. result size", 4, cmsResult.getAdESFormResults().size());
+ for (final Object el : cmsResult.getAdESFormResults()) {
+ final AdESFormResults test = (AdESFormResults) el;
+ if (test.getCode().longValue() == 0) {
+ assertEquals("wrong from name", "B-B", test.getName());
+
+ } else {
+ assertEquals("Find wrong form val status", 2, test.getCode().longValue());
+
+ }
+ }
+
+ assertNotNull("extended val. result", cmsResult.getExtendedCertificateCheck());
+ assertEquals("ext. val major", 0, cmsResult.getExtendedCertificateCheck().getMajorCode());
+ assertEquals("ext. val major", 23, cmsResult.getExtendedCertificateCheck().getMinorCode());
+
+ assertNull("byteRange", cmsResult.getByteRangeOfSignature());
+ assertEquals("used sig alg", "SHA256withECDSA", cmsResult.getSignatureAlgorithm());
+
+ }
+
+ @Test
+ public void basicValidationCadesSignature() throws MOAException, IOException {
+ final VerifyCMSSignatureRequest request = buildVerfifyCmsRequest(
+ org.apache.commons.codec.binary.Base64.decodeBase64(IOUtils.resourceToByteArray(
+ "/testdata/cades/simpleCadesSig.b64")),
+ "MOAIDBuergerkarteAuthentisierungsDaten",
+ false,
+ false);
+
+ // perform test
+ final VerifyCMSSignatureResponse result = cadesInvoker.verifyCMSSignature(request);
+
+ // verify result
+ assertNotNull("verification result", result);
+ assertEquals("wrong result size", 1, result.getResponseElements().size());
+
+ final VerifyCMSSignatureResponseElement cmsResult = (VerifyCMSSignatureResponseElement) result
+ .getResponseElements().get(0);
+ assertEquals("sigCode", 0, cmsResult.getSignatureCheck().getCode());
+ assertEquals("certCode", 1, cmsResult.getCertificateCheck().getCode());
+
+ assertNotNull("signerInfo", cmsResult.getSignerInfo());
+ assertEquals("issuerCC", "AT", cmsResult.getSignerInfo().getIssuerCountryCode());
+ assertFalse("publicAuthority", cmsResult.getSignerInfo().isPublicAuthority());
+ assertFalse("QC", cmsResult.getSignerInfo().isQualifiedCertificate());
+ assertFalse("SSCD", cmsResult.getSignerInfo().isSSCD());
+ assertNull("TSL infos", cmsResult.getSignerInfo().getTslInfos());
+
+ assertNull("form val. result", cmsResult.getAdESFormResults());
+ assertNull("extended val. result", cmsResult.getExtendedCertificateCheck());
+ assertNull("byteRange", cmsResult.getByteRangeOfSignature());
+ assertNull("used sig alg", cmsResult.getSignatureAlgorithm());
+
+ }
+
+ @Test
+ public void extendedValidationCadesSignature() throws MOAException, IOException {
+ final VerifyCMSSignatureRequest request = buildVerfifyCmsRequest(
+ org.apache.commons.codec.binary.Base64.decodeBase64(IOUtils.resourceToByteArray(
+ "/testdata/cades/simpleCadesSig.b64")),
+ "MOAIDBuergerkarteAuthentisierungsDaten",
+ false,
+ true);
+
+ // perform test
+ final VerifyCMSSignatureResponse result = cadesInvoker.verifyCMSSignature(request);
+
+ // verify result
+ assertNotNull("verification result", result);
+ assertEquals("wrong result size", 1, result.getResponseElements().size());
+
+ final VerifyCMSSignatureResponseElement cmsResult = (VerifyCMSSignatureResponseElement) result
+ .getResponseElements().get(0);
+ assertEquals("sigCode", 0, cmsResult.getSignatureCheck().getCode());
+ assertEquals("certCode", 1, cmsResult.getCertificateCheck().getCode());
+
+ assertNotNull("signerInfo", cmsResult.getSignerInfo());
+ assertEquals("issuerCC", "AT", cmsResult.getSignerInfo().getIssuerCountryCode());
+ assertFalse("publicAuthority", cmsResult.getSignerInfo().isPublicAuthority());
+ assertFalse("QC", cmsResult.getSignerInfo().isQualifiedCertificate());
+ assertFalse("SSCD", cmsResult.getSignerInfo().isSSCD());
+ assertNull("TSL infos", cmsResult.getSignerInfo().getTslInfos());
+
+ assertNotNull("form val. result", cmsResult.getAdESFormResults());
+ assertEquals("form val. result size", 4, cmsResult.getAdESFormResults().size());
+ for (final Object el : cmsResult.getAdESFormResults()) {
+ final AdESFormResults test = (AdESFormResults) el;
+ assertEquals("Find wrong form val status", 1, test.getCode().longValue());
+
+ }
+
+ assertNotNull("extended val. result", cmsResult.getExtendedCertificateCheck());
+ assertEquals("ext. val major", 2, cmsResult.getExtendedCertificateCheck().getMajorCode());
+ assertEquals("ext. val major", 14, cmsResult.getExtendedCertificateCheck().getMinorCode());
+
+ assertNull("byteRange", cmsResult.getByteRangeOfSignature());
+ assertEquals("used sig alg", "SHA256withRSA", cmsResult.getSignatureAlgorithm());
+
+ }
+
+}
diff --git a/moaSig/moa-sig/src/test/java/at/gv/egovernment/moa/spss/test/integration/PadesIntegrationTest.java b/moaSig/moa-sig/src/test/java/at/gv/egovernment/moa/spss/test/integration/PadesIntegrationTest.java
index b17e2c7..fd5b278 100644
--- a/moaSig/moa-sig/src/test/java/at/gv/egovernment/moa/spss/test/integration/PadesIntegrationTest.java
+++ b/moaSig/moa-sig/src/test/java/at/gv/egovernment/moa/spss/test/integration/PadesIntegrationTest.java
@@ -7,14 +7,12 @@ import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertThrows;
import static org.junit.Assert.assertTrue;
-import java.io.ByteArrayInputStream;
import java.io.IOException;
import org.apache.commons.io.IOUtils;
import org.apache.commons.lang3.RandomStringUtils;
import org.junit.Before;
import org.junit.BeforeClass;
-import org.junit.Ignore;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.BlockJUnit4ClassRunner;
@@ -23,165 +21,129 @@ import at.gv.egovernment.moa.spss.MOAException;
import at.gv.egovernment.moa.spss.api.cmsverify.VerifyCMSSignatureRequest;
import at.gv.egovernment.moa.spss.api.cmsverify.VerifyCMSSignatureResponse;
import at.gv.egovernment.moa.spss.api.cmsverify.VerifyCMSSignatureResponseElement;
-import at.gv.egovernment.moa.spss.api.impl.VerifyCMSSignatureRequestImpl;
import at.gv.egovernment.moa.spss.api.xmlverify.AdESFormResults;
import at.gv.egovernment.moa.spss.server.config.ConfigurationException;
-import at.gv.egovernment.moa.spss.server.init.StartupConfigurationHolder;
import at.gv.egovernment.moa.spss.server.init.SystemInitializer;
import at.gv.egovernment.moa.spss.server.invoke.CMSSignatureVerificationInvoker;
-import at.gv.egovernment.moa.spss.server.transaction.TransactionContext;
-import at.gv.egovernment.moa.spss.server.transaction.TransactionContextManager;
-import at.gv.egovernment.moaspss.logging.LoggingContext;
-import at.gv.egovernment.moaspss.logging.LoggingContextManager;
@RunWith(BlockJUnit4ClassRunner.class)
-public class PadesIntegrationTest {
+public class PadesIntegrationTest extends AbstractIntegrationTest {
- private static StartupConfigurationHolder moaSpssCore;
CMSSignatureVerificationInvoker cadesInvoker;
-
+
@BeforeClass
- public static void classInitializer() throws IOException {
+ public static void classInitializer() throws IOException, ConfigurationException,
+ NoSuchFieldException, SecurityException, IllegalArgumentException, IllegalAccessException {
+ jvmStateReset();
+
final String current = new java.io.File(".").getCanonicalPath();
System.setProperty("moa.spss.server.configuration",
- current + "/src/test/resources/moaspss_config/MOASPSSConfiguration.xml");
+ current + "/src/test/resources/moaspss_config/MOASPSSConfiguration.xml");
moaSpssCore = SystemInitializer.init();
-
+
}
-
+
@Before
public void initializer() throws ConfigurationException {
cadesInvoker = CMSSignatureVerificationInvoker.getInstance();
setUpContexts(RandomStringUtils.randomAlphabetic(10));
-
+
}
-
+
@Test
public void missingTrustProfile() throws IOException {
- VerifyCMSSignatureRequest request = buildVerfifyCmsRequest(
- org.apache.commons.codec.binary.Base64.decodeBase64(IOUtils.resourceToByteArray("/testdata/pades/testpdf.b64")),
- RandomStringUtils.randomAlphabetic(5),
- true,
+ final VerifyCMSSignatureRequest request = buildVerfifyCmsRequest(
+ org.apache.commons.codec.binary.Base64.decodeBase64(IOUtils.resourceToByteArray(
+ "/testdata/pades/testpdf.b64")),
+ RandomStringUtils.randomAlphabetic(5),
+ true,
false);
-
+
// perform test
- MOAException error = assertThrows(MOAException.class,() -> cadesInvoker.verifyCMSSignature(request));
+ final MOAException error = assertThrows(MOAException.class, () -> cadesInvoker.verifyCMSSignature(
+ request));
assertEquals("wrong errorCode", "2203", error.getMessageId());
-
+
}
-
+
@Test
- public void basicValidationCadesSignature() throws MOAException, IOException {
- VerifyCMSSignatureRequest request = buildVerfifyCmsRequest(
- org.apache.commons.codec.binary.Base64.decodeBase64(IOUtils.resourceToByteArray("/testdata/pades/testpdf.b64")),
- "MOAIDBuergerkarteAuthentisierungsDaten",
- true,
+ public void basicValidationCadesSignature() throws MOAException, IOException {
+ final VerifyCMSSignatureRequest request = buildVerfifyCmsRequest(
+ org.apache.commons.codec.binary.Base64.decodeBase64(IOUtils.resourceToByteArray(
+ "/testdata/pades/testpdf.b64")),
+ "MOAIDBuergerkarteAuthentisierungsDaten",
+ true,
false);
-
+
// perform test
- VerifyCMSSignatureResponse result = cadesInvoker.verifyCMSSignature(request);
-
+ final VerifyCMSSignatureResponse result = cadesInvoker.verifyCMSSignature(request);
+
// verify result
assertNotNull("verification result", result);
assertEquals("wrong result size", 1, result.getResponseElements().size());
-
- VerifyCMSSignatureResponseElement cmsResult = (VerifyCMSSignatureResponseElement) result.getResponseElements().get(0);
+
+ final VerifyCMSSignatureResponseElement cmsResult = (VerifyCMSSignatureResponseElement) result
+ .getResponseElements().get(0);
assertEquals("sigCode", 1, cmsResult.getSignatureCheck().getCode());
assertEquals("certCode", 1, cmsResult.getCertificateCheck().getCode());
-
+
assertNotNull("signerInfo", cmsResult.getSignerInfo());
assertEquals("issuerCC", "EE", cmsResult.getSignerInfo().getIssuerCountryCode());
assertFalse("publicAuthority", cmsResult.getSignerInfo().isPublicAuthority());
assertTrue("QC", cmsResult.getSignerInfo().isQualifiedCertificate());
- assertTrue("SSCD", cmsResult.getSignerInfo().isSSCD());
+ assertTrue("SSCD", cmsResult.getSignerInfo().isSSCD());
assertNull("TSL infos", cmsResult.getSignerInfo().getTslInfos());
-
+
assertNull("form val. result", cmsResult.getAdESFormResults());
assertNull("extended val. result", cmsResult.getExtendedCertificateCheck());
assertNull("byteRange", cmsResult.getByteRangeOfSignature());
assertNull("used sig alg", cmsResult.getSignatureAlgorithm());
-
+
}
-
+
@Test
- public void extendedValidationCadesSignature() throws MOAException, IOException {
- VerifyCMSSignatureRequest request = buildVerfifyCmsRequest(
- org.apache.commons.codec.binary.Base64.decodeBase64(IOUtils.resourceToByteArray("/testdata/pades/testpdf.b64")),
- "MOAIDBuergerkarteAuthentisierungsDaten",
- true,
+ public void extendedValidationCadesSignature() throws MOAException, IOException {
+ final VerifyCMSSignatureRequest request = buildVerfifyCmsRequest(
+ org.apache.commons.codec.binary.Base64.decodeBase64(IOUtils.resourceToByteArray(
+ "/testdata/pades/testpdf.b64")),
+ "MOAIDBuergerkarteAuthentisierungsDaten",
+ true,
true);
-
+
// perform test
- VerifyCMSSignatureResponse result = cadesInvoker.verifyCMSSignature(request);
-
+ final VerifyCMSSignatureResponse result = cadesInvoker.verifyCMSSignature(request);
+
// verify result
assertNotNull("verification result", result);
assertEquals("wrong result size", 1, result.getResponseElements().size());
-
- VerifyCMSSignatureResponseElement cmsResult = (VerifyCMSSignatureResponseElement) result.getResponseElements().get(0);
+
+ final VerifyCMSSignatureResponseElement cmsResult = (VerifyCMSSignatureResponseElement) result
+ .getResponseElements().get(0);
assertEquals("sigCode", 1, cmsResult.getSignatureCheck().getCode());
assertEquals("certCode", 1, cmsResult.getCertificateCheck().getCode());
-
+
assertNotNull("signerInfo", cmsResult.getSignerInfo());
assertEquals("issuerCC", "EE", cmsResult.getSignerInfo().getIssuerCountryCode());
assertFalse("publicAuthority", cmsResult.getSignerInfo().isPublicAuthority());
assertTrue("QC", cmsResult.getSignerInfo().isQualifiedCertificate());
- assertTrue("SSCD", cmsResult.getSignerInfo().isSSCD());
+ assertTrue("SSCD", cmsResult.getSignerInfo().isSSCD());
assertNull("TSL infos", cmsResult.getSignerInfo().getTslInfos());
-
+
assertNotNull("form val. result", cmsResult.getAdESFormResults());
assertEquals("form val. result size", 4, cmsResult.getAdESFormResults().size());
- for (Object el : cmsResult.getAdESFormResults()) {
- AdESFormResults test = ((AdESFormResults)el);
+ for (final Object el : cmsResult.getAdESFormResults()) {
+ final AdESFormResults test = (AdESFormResults) el;
assertEquals("Find wrong form val status", 1, test.getCode().longValue());
-
+
}
-
+
assertNotNull("extended val. result", cmsResult.getExtendedCertificateCheck());
assertEquals("ext. val major", 2, cmsResult.getExtendedCertificateCheck().getMajorCode());
assertEquals("ext. val major", 24, cmsResult.getExtendedCertificateCheck().getMinorCode());
-
- assertNotNull("byteRange", cmsResult.getByteRangeOfSignature());
+
+ assertNotNull("byteRange", cmsResult.getByteRangeOfSignature());
assertEquals("used sig alg", "SHA1withRSA", cmsResult.getSignatureAlgorithm());
-
- }
-
- private VerifyCMSSignatureRequest buildVerfifyCmsRequest(final byte[] signature,
- final String trustProfileID, final boolean isPdfSignature,
- final boolean performExtendedValidation) {
- final VerifyCMSSignatureRequestImpl verifyCmsSignatureRequest =
- new VerifyCMSSignatureRequestImpl();
- verifyCmsSignatureRequest.setDateTime(null);
- verifyCmsSignatureRequest.setCMSSignature(new ByteArrayInputStream(signature));
- verifyCmsSignatureRequest.setDataObject(null);
- verifyCmsSignatureRequest.setTrustProfileId(trustProfileID);
- verifyCmsSignatureRequest.setSignatories(VerifyCMSSignatureRequest.ALL_SIGNATORIES);
- verifyCmsSignatureRequest.setPDF(isPdfSignature);
- verifyCmsSignatureRequest.setExtended(performExtendedValidation);
- return verifyCmsSignatureRequest;
}
-
- protected final void setUpContexts(final String transactionID) throws ConfigurationException {
- final TransactionContextManager txMgr = TransactionContextManager.getInstance();
- final LoggingContextManager logMgr = LoggingContextManager.getInstance();
-
- if (txMgr.getTransactionContext() == null) {
- final TransactionContext ctx =
- new TransactionContext(transactionID, null, moaSpssCore.getMoaSpssConfig());
- txMgr.setTransactionContext(ctx);
-
- }
- //set Logging context into MOA-Sig
- if (logMgr.getLoggingContext() == null) {
- final LoggingContext ctx = new LoggingContext(transactionID);
- logMgr.setLoggingContext(ctx);
-
- }
-
- //new IaikConfigurator().configure(moaSigConfig.getMoaSigConfig());
-
- }
-
}
diff --git a/moaSig/moa-sig/src/test/java/at/gv/egovernment/moa/spss/test/integration/XadesIntegrationTest.java b/moaSig/moa-sig/src/test/java/at/gv/egovernment/moa/spss/test/integration/XadesIntegrationTest.java
index 8a3012a..cdbe5ab 100644
--- a/moaSig/moa-sig/src/test/java/at/gv/egovernment/moa/spss/test/integration/XadesIntegrationTest.java
+++ b/moaSig/moa-sig/src/test/java/at/gv/egovernment/moa/spss/test/integration/XadesIntegrationTest.java
@@ -7,315 +7,153 @@ import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertThrows;
import static org.junit.Assert.assertTrue;
-import java.io.ByteArrayInputStream;
import java.io.IOException;
-import java.util.Base64;
import java.util.Collections;
-import java.util.Date;
-import java.util.List;
-import java.util.Map;
-import javax.xml.parsers.DocumentBuilder;
-import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.ParserConfigurationException;
import org.apache.commons.io.IOUtils;
import org.apache.commons.lang3.RandomStringUtils;
-import org.apache.commons.lang3.time.DateFormatUtils;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.BlockJUnit4ClassRunner;
-import org.w3c.dom.Document;
-import org.w3c.dom.Element;
-import org.w3c.dom.Node;
import at.gv.egovernment.moa.spss.MOAApplicationException;
import at.gv.egovernment.moa.spss.MOAException;
-import at.gv.egovernment.moa.spss.api.cmsverify.VerifyCMSSignatureResponseElement;
import at.gv.egovernment.moa.spss.api.common.InputData;
-import at.gv.egovernment.moa.spss.api.xmlbind.VerifyXMLSignatureRequestParser;
import at.gv.egovernment.moa.spss.api.xmlverify.AdESFormResults;
import at.gv.egovernment.moa.spss.api.xmlverify.VerifyXMLSignatureRequest;
import at.gv.egovernment.moa.spss.api.xmlverify.VerifyXMLSignatureResponse;
import at.gv.egovernment.moa.spss.server.config.ConfigurationException;
-import at.gv.egovernment.moa.spss.server.init.StartupConfigurationHolder;
import at.gv.egovernment.moa.spss.server.init.SystemInitializer;
import at.gv.egovernment.moa.spss.server.invoke.XMLSignatureVerificationInvoker;
-import at.gv.egovernment.moa.spss.server.transaction.TransactionContext;
-import at.gv.egovernment.moa.spss.server.transaction.TransactionContextManager;
-import at.gv.egovernment.moaspss.logging.LoggingContext;
-import at.gv.egovernment.moaspss.logging.LoggingContextManager;
-import at.gv.egovernment.moaspss.util.Base64Utils;
-import at.gv.egovernment.moaspss.util.Constants;
@RunWith(BlockJUnit4ClassRunner.class)
-public class XadesIntegrationTest {
+public class XadesIntegrationTest extends AbstractIntegrationTest {
- private static final String XMLNS_NS_URI = Constants.XMLNS_NS_URI;
- private static final String MOA_NS_URI = Constants.MOA_NS_URI;
- private static final String DSIG = Constants.DSIG_PREFIX + ":";
- private static final String DEFAULT_XPATH_SIGNATURE_LOCATION = "//" + DSIG + "Signature";
+ XMLSignatureVerificationInvoker xadesInvoker;
- public static final String PATTERN_ISSUE_INSTANT = "yyyy-MM-dd'T'HH:mm:ssXXX";
-
- private static StartupConfigurationHolder moaSpssCore;
- XMLSignatureVerificationInvoker cadesInvoker;
-
@BeforeClass
- public static void classInitializer() throws IOException {
+ public static void classInitializer() throws IOException, ConfigurationException,
+ NoSuchFieldException, SecurityException, IllegalArgumentException, IllegalAccessException {
+ jvmStateReset();
+
final String current = new java.io.File(".").getCanonicalPath();
System.setProperty("moa.spss.server.configuration",
- current + "/src/test/resources/moaspss_config/MOASPSSConfiguration.xml");
+ current + "/src/test/resources/moaspss_config/MOASPSSConfiguration.xml");
moaSpssCore = SystemInitializer.init();
-
+
}
-
+
@Before
public void initializer() throws ConfigurationException {
- cadesInvoker = XMLSignatureVerificationInvoker.getInstance();
+ xadesInvoker = XMLSignatureVerificationInvoker.getInstance();
setUpContexts(RandomStringUtils.randomAlphabetic(10));
-
+
}
-
+
@Test
- public void missingTrustProfile() throws IOException, MOAApplicationException, ParserConfigurationException {
- VerifyXMLSignatureRequest request = buildVerifyXmlRequest(
- org.apache.commons.codec.binary.Base64.decodeBase64(IOUtils.resourceToByteArray("/testdata/xades/xmldsig_enveloped.b64")),
+ public void missingTrustProfile() throws IOException, MOAApplicationException,
+ ParserConfigurationException {
+ final VerifyXMLSignatureRequest request = buildVerifyXmlRequest(
+ org.apache.commons.codec.binary.Base64.decodeBase64(IOUtils.resourceToByteArray(
+ "/testdata/xades/xmldsig_enveloped.b64")),
RandomStringUtils.randomAlphabetic(5), false,
- null,
- DEFAULT_XPATH_SIGNATURE_LOCATION,
+ null,
+ DEFAULT_XPATH_SIGNATURE_LOCATION,
null, Collections.emptyMap());
-
+
// perform test
- MOAException error = assertThrows(MOAException.class,() -> cadesInvoker.verifyXMLSignature(request));
+ final MOAException error = assertThrows(MOAException.class, () -> xadesInvoker.verifyXMLSignature(
+ request));
assertEquals("wrong errorCode", "2203", error.getMessageId());
-
+
}
-
+
@Test
- public void basicValidationXadesSignature() throws MOAException, IOException, ParserConfigurationException {
- VerifyXMLSignatureRequest request = buildVerifyXmlRequest(
- org.apache.commons.codec.binary.Base64.decodeBase64(IOUtils.resourceToByteArray("/testdata/xades/xmldsig_enveloped.b64")),
+ public void basicValidationXadesSignature() throws MOAException, IOException, ParserConfigurationException {
+ final VerifyXMLSignatureRequest request = buildVerifyXmlRequest(
+ org.apache.commons.codec.binary.Base64.decodeBase64(IOUtils.resourceToByteArray(
+ "/testdata/xades/xmldsig_enveloped.b64")),
"MOAIDBuergerkarteAuthentisierungsDaten", false,
- null,
- DEFAULT_XPATH_SIGNATURE_LOCATION,
+ null,
+ DEFAULT_XPATH_SIGNATURE_LOCATION,
null, Collections.emptyMap());
-
+
// perform test
- VerifyXMLSignatureResponse result = cadesInvoker.verifyXMLSignature(request);
-
+ final VerifyXMLSignatureResponse result = xadesInvoker.verifyXMLSignature(request);
+
// verify result
assertNotNull("verification result", result);
-
+
assertEquals("sigCode", 0, result.getSignatureCheck().getCode());
assertEquals("certCode", 1, result.getCertificateCheck().getCode());
-
+
assertNotNull("signerInfo", result.getSignerInfo());
assertNull("issuerCC", result.getSignerInfo().getIssuerCountryCode());
assertFalse("publicAuthority", result.getSignerInfo().isPublicAuthority());
assertFalse("QC", result.getSignerInfo().isQualifiedCertificate());
- assertFalse("SSCD", result.getSignerInfo().isSSCD());
+ assertFalse("SSCD", result.getSignerInfo().isSSCD());
assertNull("TSL infos", result.getSignerInfo().getTslInfos());
-
+
assertNull("form val. result", result.getAdESFormResults());
assertNull("extended val. result", result.getExtendedCertificateCheck());
assertNull("used sig alg", result.getSignatureAlgorithm());
-
+
}
-
+
@Test
- public void extendedValidationXadesSignature() throws MOAException, IOException, ParserConfigurationException {
- VerifyXMLSignatureRequest request = buildVerifyXmlRequest(
- org.apache.commons.codec.binary.Base64.decodeBase64(IOUtils.resourceToByteArray("/testdata/xades/xmldsig_enveloped.b64")),
- "MOAIDBuergerkarteAuthentisierungsDaten", true,
- null,
- DEFAULT_XPATH_SIGNATURE_LOCATION,
+ public void extendedValidationXadesSignature() throws MOAException, IOException,
+ ParserConfigurationException {
+ final VerifyXMLSignatureRequest request = buildVerifyXmlRequest(
+ org.apache.commons.codec.binary.Base64.decodeBase64(IOUtils.resourceToByteArray(
+ "/testdata/xades/xmldsig_enveloped.b64")),
+ "MOAIDBuergerkarteAuthentisierungsDaten", true,
+ null,
+ DEFAULT_XPATH_SIGNATURE_LOCATION,
null, Collections.emptyMap());
-
+
// perform test
- VerifyXMLSignatureResponse result = cadesInvoker.verifyXMLSignature(request);
-
+ final VerifyXMLSignatureResponse result = xadesInvoker.verifyXMLSignature(request);
+
// verify result
assertNotNull("verification result", result);
assertEquals("sigCode", 0, result.getSignatureCheck().getCode());
assertEquals("certCode", 1, result.getCertificateCheck().getCode());
assertEquals("manifestCode", 0, result.getSignatureManifestCheck().getCode());
assertTrue("manifest refs", result.getXMLDsigManifestChecks().isEmpty());
-
+
assertEquals("hash inputdata", 1, result.getHashInputDatas().size());
- assertEquals("hash input data alg", "SHA-256",
- ((InputData)result.getHashInputDatas().get(0)).getHashAlgorithm());
- assertEquals("hash input data part", "SignedInfo",
- ((InputData)result.getHashInputDatas().get(0)).getPartOf());
- assertEquals("hash input data ref. number", -1,
- ((InputData)result.getHashInputDatas().get(0)).getReferringReferenceNumber());
-
-
+ assertEquals("hash input data alg", "SHA-256",
+ ((InputData) result.getHashInputDatas().get(0)).getHashAlgorithm());
+ assertEquals("hash input data part", "SignedInfo",
+ ((InputData) result.getHashInputDatas().get(0)).getPartOf());
+ assertEquals("hash input data ref. number", -1,
+ ((InputData) result.getHashInputDatas().get(0)).getReferringReferenceNumber());
+
assertNotNull("signerInfo", result.getSignerInfo());
assertNull("issuerCC", result.getSignerInfo().getIssuerCountryCode());
assertFalse("publicAuthority", result.getSignerInfo().isPublicAuthority());
assertFalse("QC", result.getSignerInfo().isQualifiedCertificate());
- assertFalse("SSCD", result.getSignerInfo().isSSCD());
+ assertFalse("SSCD", result.getSignerInfo().isSSCD());
assertNull("TSL infos", result.getSignerInfo().getTslInfos());
-
+
assertNotNull("form val. result", result.getAdESFormResults());
assertEquals("form val. result size", 1, result.getAdESFormResults().size());
- for (Object el : result.getAdESFormResults()) {
- AdESFormResults test = ((AdESFormResults)el);
+ for (final Object el : result.getAdESFormResults()) {
+ final AdESFormResults test = (AdESFormResults) el;
assertEquals("Find wrong form val status", 3, test.getCode().longValue());
-
+
}
-
+
assertNotNull("extended val. result", result.getExtendedCertificateCheck());
assertEquals("ext. val major", 4, result.getExtendedCertificateCheck().getMajorCode());
assertEquals("ext. val major", 24, result.getExtendedCertificateCheck().getMinorCode());
-
- assertEquals("used sig alg", "SHA256withRSA", result.getSignatureAlgorithm());
-
- }
-
- private VerifyXMLSignatureRequest buildVerifyXmlRequest(final byte[] signature, final String trustProfileID, boolean extValFlag,
- final List<String> verifyTransformsInfoProfileID, final String xpathSignatureLocation,
- Date sigValDate, final Map<String, byte[]> supplementContent) throws IOException, ParserConfigurationException, MOAApplicationException {
- // build empty document
- final Document requestDoc_ = getNewDocumentBuilder();
-
- final Element requestElem_ =
- requestDoc_.createElementNS(MOA_NS_URI, "VerifyXMLSignatureRequest");
- requestElem_.setAttributeNS(XMLNS_NS_URI, "xmlns", MOA_NS_URI);
- requestElem_.setAttributeNS(XMLNS_NS_URI, "xmlns:" + Constants.DSIG_PREFIX,
- Constants.DSIG_NS_URI);
- requestDoc_.appendChild(requestElem_);
-
- // build the request
-
- // build set signing time
- if (sigValDate != null) {
- final Element dateTimeElem = requestDoc_.createElementNS(MOA_NS_URI, "DateTime");
- requestElem_.appendChild(dateTimeElem);
- final Node dateTime = requestDoc_.createTextNode(
- DateFormatUtils.format(sigValDate, PATTERN_ISSUE_INSTANT));
- dateTimeElem.appendChild(dateTime);
-
- }
-
- //extended validation flag
- final Element extVal = requestDoc_.createElementNS(MOA_NS_URI, "ExtendedValidation");
- requestElem_.appendChild(extVal);
- final Node extValElement = requestDoc_.createTextNode(String.valueOf(extValFlag));
- extVal.appendChild(extValElement);
-
- //set other parameters
- final Element verifiySignatureInfoElem =
- requestDoc_.createElementNS(MOA_NS_URI, "VerifySignatureInfo");
- requestElem_.appendChild(verifiySignatureInfoElem);
- final Element verifySignatureEnvironmentElem =
- requestDoc_.createElementNS(MOA_NS_URI, "VerifySignatureEnvironment");
- verifiySignatureInfoElem.appendChild(verifySignatureEnvironmentElem);
- final Element base64ContentElem = requestDoc_.createElementNS(MOA_NS_URI, "Base64Content");
- verifySignatureEnvironmentElem.appendChild(base64ContentElem);
-
- // insert the base64 encoded signature
- String base64EncodedAssertion = Base64Utils.encode(signature);
- // replace all '\r' characters by no char.
- final StringBuffer replaced = new StringBuffer();
- for (int i = 0; i < base64EncodedAssertion.length(); i++) {
- final char c = base64EncodedAssertion.charAt(i);
- if (c != '\r') {
- replaced.append(c);
- }
- }
- base64EncodedAssertion = replaced.toString();
- final Node base64Content = requestDoc_.createTextNode(base64EncodedAssertion);
- base64ContentElem.appendChild(base64Content);
-
- // specify the signature location
- final Element verifySignatureLocationElem =
- requestDoc_.createElementNS(MOA_NS_URI, "VerifySignatureLocation");
- verifiySignatureInfoElem.appendChild(verifySignatureLocationElem);
- final Node signatureLocation = requestDoc_.createTextNode(xpathSignatureLocation);
- verifySignatureLocationElem.appendChild(signatureLocation);
-
- // signature manifest params
- if (verifyTransformsInfoProfileID != null && !verifyTransformsInfoProfileID.isEmpty()) {
- final Element signatureManifestCheckParamsElem =
- requestDoc_.createElementNS(MOA_NS_URI, "SignatureManifestCheckParams");
- requestElem_.appendChild(signatureManifestCheckParamsElem);
- signatureManifestCheckParamsElem.setAttribute("ReturnReferenceInputData", "false");
-
- // verify transformations
- final Element referenceInfoElem = requestDoc_.createElementNS(MOA_NS_URI, "ReferenceInfo");
- signatureManifestCheckParamsElem.appendChild(referenceInfoElem);
- for (final String element : verifyTransformsInfoProfileID) {
- final Element verifyTransformsInfoProfileIdElem =
- requestDoc_.createElementNS(MOA_NS_URI, "VerifyTransformsInfoProfileID");
- referenceInfoElem.appendChild(verifyTransformsInfoProfileIdElem);
- verifyTransformsInfoProfileIdElem.appendChild(requestDoc_.createTextNode(element));
-
- }
- }
-
- // hashinput data
- final Element returnHashInputDataElem =
- requestDoc_.createElementNS(MOA_NS_URI, "ReturnHashInputData");
- requestElem_.appendChild(returnHashInputDataElem);
-
- // add trustProfileID
- final Element trustProfileIdElem = requestDoc_.createElementNS(MOA_NS_URI, "TrustProfileID");
- trustProfileIdElem.appendChild(requestDoc_.createTextNode(trustProfileID));
- requestElem_.appendChild(trustProfileIdElem);
-
- // add supplement profile
- if (!supplementContent.isEmpty()) {
-
- final Element supplementProfile = requestDoc_.createElementNS(MOA_NS_URI, "SupplementProfile");
-
- for (Map.Entry<String, byte[]> entry: supplementContent.entrySet()) {
- String reference = entry.getKey();
- byte[] contentBytes = entry.getValue();
- final Element content = requestDoc_.createElementNS(MOA_NS_URI, "Content");
- content.setAttribute("Reference", reference);
- final Element b64content = requestDoc_.createElementNS(MOA_NS_URI, "Base64Content");
- b64content.setTextContent(Base64Utils.encode(contentBytes));
- content.appendChild(b64content);
- supplementProfile.appendChild(content);
- }
-
- requestElem_.appendChild(supplementProfile);
- }
-
- return new VerifyXMLSignatureRequestParser().parse(requestElem_);
- }
-
- protected synchronized Document getNewDocumentBuilder() throws ParserConfigurationException {
- final DocumentBuilder docBuilder = DocumentBuilderFactory.newInstance().newDocumentBuilder();
- return docBuilder.newDocument();
+ assertEquals("used sig alg", "SHA256withRSA", result.getSignatureAlgorithm());
}
-
- protected final void setUpContexts(final String transactionID) throws ConfigurationException {
- final TransactionContextManager txMgr = TransactionContextManager.getInstance();
- final LoggingContextManager logMgr = LoggingContextManager.getInstance();
-
- if (txMgr.getTransactionContext() == null) {
- final TransactionContext ctx =
- new TransactionContext(transactionID, null, moaSpssCore.getMoaSpssConfig());
- txMgr.setTransactionContext(ctx);
-
- }
-
- //set Logging context into MOA-Sig
- if (logMgr.getLoggingContext() == null) {
- final LoggingContext ctx = new LoggingContext(transactionID);
- logMgr.setLoggingContext(ctx);
-
- }
-
- //new IaikConfigurator().configure(moaSigConfig.getMoaSigConfig());
- }
-
}
diff --git a/moaSig/moa-sig/src/test/java/at/gv/egovernment/moa/spss/test/integration/tsl/XadesTslEuTestset02Test.java b/moaSig/moa-sig/src/test/java/at/gv/egovernment/moa/spss/test/integration/tsl/XadesTslEuTestset02Test.java
new file mode 100644
index 0000000..698eb2f
--- /dev/null
+++ b/moaSig/moa-sig/src/test/java/at/gv/egovernment/moa/spss/test/integration/tsl/XadesTslEuTestset02Test.java
@@ -0,0 +1,208 @@
+package at.gv.egovernment.moa.spss.test.integration.tsl;
+
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertFalse;
+import static org.junit.Assert.assertNotNull;
+import static org.junit.Assert.assertNull;
+import static org.junit.Assert.assertTrue;
+
+import java.io.IOException;
+import java.util.Collections;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+import javax.xml.parsers.ParserConfigurationException;
+
+import org.apache.commons.io.IOUtils;
+import org.apache.commons.lang3.RandomStringUtils;
+import org.junit.Before;
+import org.junit.BeforeClass;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.junit.runners.BlockJUnit4ClassRunner;
+
+import at.gv.egovernment.moa.sig.tsl.engine.data.TSLProcessingResultElement;
+import at.gv.egovernment.moa.spss.MOAException;
+import at.gv.egovernment.moa.spss.api.xmlverify.VerifyXMLSignatureRequest;
+import at.gv.egovernment.moa.spss.api.xmlverify.VerifyXMLSignatureResponse;
+import at.gv.egovernment.moa.spss.server.config.ConfigurationException;
+import at.gv.egovernment.moa.spss.server.init.SystemInitializer;
+import at.gv.egovernment.moa.spss.server.invoke.XMLSignatureVerificationInvoker;
+import at.gv.egovernment.moa.spss.server.monitoring.ServiceStatusContainer;
+import at.gv.egovernment.moa.spss.test.integration.AbstractIntegrationTest;
+
+@RunWith(BlockJUnit4ClassRunner.class)
+public class XadesTslEuTestset02Test extends AbstractIntegrationTest {
+
+ XMLSignatureVerificationInvoker cadesInvoker;
+
+ public static final Map<String, Boolean> TSL_LOAD_STATUS;
+
+ static {
+ final Map<String, Boolean> intMap = new HashMap<>();
+ intMap.put("EU", true);
+ intMap.put("LU", false);
+ intMap.put("FR", false);
+ intMap.put("BE", true);
+ intMap.put("DE", false);
+ TSL_LOAD_STATUS = Collections.unmodifiableMap(intMap);
+
+ }
+
+ @BeforeClass
+ public static void classInitializer() throws IOException, ConfigurationException,
+ NoSuchFieldException, SecurityException, IllegalArgumentException, IllegalAccessException {
+ jvmStateReset();
+
+ final String current = new java.io.File(".").getCanonicalPath();
+ System.setProperty("moa.spss.server.configuration",
+ current + "/src/test/resources/moaspss_config/MOASPSSConfiguration_tsl_eu_test_1.xml");
+ System.setProperty("iaik.esi.sva.configuration.location",
+ current + "/src/test/resources/moaspss_config/svaconfig.example");
+ moaSpssCore = SystemInitializer.init();
+
+ }
+
+ @Before
+ public void initializer() throws ConfigurationException {
+ cadesInvoker = XMLSignatureVerificationInvoker.getInstance();
+ setUpContexts(RandomStringUtils.randomAlphabetic(10));
+
+ }
+
+ @Test
+ public void checkTslState() {
+ assertTrue("TSL not active", ServiceStatusContainer.getStatus());
+
+ final List<TSLProcessingResultElement> loadedTsl = ServiceStatusContainer.getTslDetailStatus();
+ assertFalse("no TSL loaded", loadedTsl.isEmpty());
+ assertEquals("wrong TSL size", 5, loadedTsl.size());
+
+ assertEquals("loaded TSL CC", "EU", loadedTsl.get(0).getCountryCode());
+ assertEquals("loaded TSL URL",
+ "https://esignature.ec.europa.eu/efda/validation-tests/testcase/tl/LOTL-2.xml",
+ loadedTsl.get(0).getTslURL());
+ assertTrue("loaded TSL processed", loadedTsl.get(0).isProcessed());
+ assertTrue("loaded TSL verified", loadedTsl.get(0).isVerified());
+
+ for (final TSLProcessingResultElement el : loadedTsl) {
+ assertTrue("TSL entry unknown", TSL_LOAD_STATUS.containsKey(el.getCountryCode()));
+ assertEquals("wrong statusCode", TSL_LOAD_STATUS.get(el.getCountryCode()), el.isProcessed());
+ assertEquals("wrong statusCode", TSL_LOAD_STATUS.get(el.getCountryCode()), el.isVerified());
+
+ }
+ }
+
+ @Test
+ public void euTestFile2_1_2() throws MOAException, IOException, ParserConfigurationException {
+ final VerifyXMLSignatureRequest request = buildVerifyXmlRequest(IOUtils.resourceToByteArray(
+ "/testdata/xades/2.1.2-TEST FILE.xml"),
+ "OnlyTSL", true,
+ null,
+ DEFAULT_XPATH_SIGNATURE_LOCATION,
+ null, Collections.emptyMap());
+
+ // perform test
+ final VerifyXMLSignatureResponse result = cadesInvoker.verifyXMLSignature(request);
+
+ // verify result
+ assertNotNull("verification result", result);
+
+ assertEquals("sigCode", 0, result.getSignatureCheck().getCode());
+ assertEquals("certCode", 1, result.getCertificateCheck().getCode());
+
+ assertNotNull("signerInfo", result.getSignerInfo());
+ assertEquals("issuerCC", "FR", result.getSignerInfo().getIssuerCountryCode());
+ assertFalse("publicAuthority", result.getSignerInfo().isPublicAuthority());
+ assertFalse("QC", result.getSignerInfo().isQualifiedCertificate());
+ assertTrue("SSCD", result.getSignerInfo().isSSCD());
+ assertEquals("qcSource", "Certificate", result.getSignerInfo().getQCSource());
+ assertEquals("qcSource", "Certificate", result.getSignerInfo().getSSCDSource());
+
+ assertNull("TSL infos", result.getSignerInfo().getTslInfos());
+
+ assertNotNull("form val. result", result.getAdESFormResults());
+ assertNotNull("extended val. result", result.getExtendedCertificateCheck());
+ assertEquals("used sig alg", "SHA256withRSA", result.getSignatureAlgorithm());
+
+ }
+
+ @Test
+ public void euTestFile2_1_3() throws MOAException, IOException, ParserConfigurationException {
+ final VerifyXMLSignatureRequest request = buildVerifyXmlRequest(IOUtils.resourceToByteArray(
+ "/testdata/xades/2.1.3-TEST FILE.xml"),
+ "OnlyTSL", true,
+ null,
+ DEFAULT_XPATH_SIGNATURE_LOCATION,
+ null, Collections.emptyMap());
+
+ // perform test
+ final VerifyXMLSignatureResponse result = cadesInvoker.verifyXMLSignature(request);
+
+ // verify result
+ assertNotNull("verification result", result);
+
+ assertEquals("sigCode", 0, result.getSignatureCheck().getCode());
+ assertEquals("certCode", 1, result.getCertificateCheck().getCode());
+
+ assertNotNull("signerInfo", result.getSignerInfo());
+ assertEquals("issuerCC", "BE", result.getSignerInfo().getIssuerCountryCode());
+ assertFalse("publicAuthority", result.getSignerInfo().isPublicAuthority());
+ assertTrue("QC", result.getSignerInfo().isQualifiedCertificate());
+ assertTrue("SSCD", result.getSignerInfo().isSSCD());
+ assertEquals("qcSource", "TSL", result.getSignerInfo().getQCSource());
+ assertEquals("qcSource", "Certificate", result.getSignerInfo().getSSCDSource());
+
+ assertNotNull("TSL infos", result.getSignerInfo().getTslInfos());
+ assertEquals("TSL CC", "BE", result.getSignerInfo().getTslInfos().getTslIssuerCountry());
+ assertEquals("TSL ServiceType", "http://uri.etsi.org/TrstSvc/Svctype/CA/QC",
+ result.getSignerInfo().getTslInfos().getServiceTypeIdentifier());
+ assertEquals("TSL ServiceStatus", "http://uri.etsi.org/TrstSvc/TrustedList/Svcstatus/granted",
+ result.getSignerInfo().getTslInfos().getServiceTypeStatus());
+ assertFalse("TSL addit. status", result.getSignerInfo().getTslInfos().getAdditionalServiceInformation()
+ .isEmpty());
+ assertEquals("TSL addit. status value",
+ "http://uri.etsi.org/TrstSvc/TrustedList/SvcInfoExt/ForeSignatures",
+ result.getSignerInfo().getTslInfos().getAdditionalServiceInformation().get(0));
+
+ assertNotNull("form val. result", result.getAdESFormResults());
+ assertNotNull("extended val. result", result.getExtendedCertificateCheck());
+ assertEquals("used sig alg", "SHA256withRSA", result.getSignatureAlgorithm());
+
+ }
+
+ @Test
+ public void euTestFile2_1_1() throws MOAException, IOException, ParserConfigurationException {
+ final VerifyXMLSignatureRequest request = buildVerifyXmlRequest(IOUtils.resourceToByteArray(
+ "/testdata/xades/2.1.1-TEST FILE.xml"),
+ "OnlyTSL", true,
+ null,
+ DEFAULT_XPATH_SIGNATURE_LOCATION,
+ null, Collections.emptyMap());
+
+ // perform test
+ final VerifyXMLSignatureResponse result = cadesInvoker.verifyXMLSignature(request);
+
+ // verify result
+ assertNotNull("verification result", result);
+
+ assertEquals("sigCode", 0, result.getSignatureCheck().getCode());
+ assertEquals("certCode", 1, result.getCertificateCheck().getCode());
+
+ assertNotNull("signerInfo", result.getSignerInfo());
+ assertEquals("issuerCC", "LU", result.getSignerInfo().getIssuerCountryCode());
+ assertFalse("publicAuthority", result.getSignerInfo().isPublicAuthority());
+ assertFalse("QC", result.getSignerInfo().isQualifiedCertificate());
+ assertTrue("SSCD", result.getSignerInfo().isSSCD());
+ assertEquals("qcSource", "Certificate", result.getSignerInfo().getQCSource());
+ assertEquals("qcSource", "Certificate", result.getSignerInfo().getSSCDSource());
+ assertNull("TSL infos", result.getSignerInfo().getTslInfos());
+
+ assertNotNull("form val. result", result.getAdESFormResults());
+ assertNotNull("extended val. result", result.getExtendedCertificateCheck());
+ assertEquals("used sig alg", "SHA256withRSA", result.getSignatureAlgorithm());
+
+ }
+
+}
diff --git a/moaSig/moa-sig/src/test/java/at/gv/egovernment/moa/spss/test/integration/tsl/XadesTslEuTestset03Test.java b/moaSig/moa-sig/src/test/java/at/gv/egovernment/moa/spss/test/integration/tsl/XadesTslEuTestset03Test.java
new file mode 100644
index 0000000..d6a1550
--- /dev/null
+++ b/moaSig/moa-sig/src/test/java/at/gv/egovernment/moa/spss/test/integration/tsl/XadesTslEuTestset03Test.java
@@ -0,0 +1,1860 @@
+package at.gv.egovernment.moa.spss.test.integration.tsl;
+
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertFalse;
+import static org.junit.Assert.assertNotNull;
+import static org.junit.Assert.assertNull;
+import static org.junit.Assert.assertTrue;
+
+import java.io.IOException;
+import java.util.Collections;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+import javax.xml.parsers.ParserConfigurationException;
+
+import org.apache.commons.io.IOUtils;
+import org.apache.commons.lang3.RandomStringUtils;
+import org.junit.Before;
+import org.junit.BeforeClass;
+import org.junit.Ignore;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.junit.runners.BlockJUnit4ClassRunner;
+
+import at.gv.egovernment.moa.sig.tsl.engine.data.TSLProcessingResultElement;
+import at.gv.egovernment.moa.spss.MOAException;
+import at.gv.egovernment.moa.spss.api.xmlverify.VerifyXMLSignatureRequest;
+import at.gv.egovernment.moa.spss.api.xmlverify.VerifyXMLSignatureResponse;
+import at.gv.egovernment.moa.spss.server.config.ConfigurationException;
+import at.gv.egovernment.moa.spss.server.init.SystemInitializer;
+import at.gv.egovernment.moa.spss.server.invoke.XMLSignatureVerificationInvoker;
+import at.gv.egovernment.moa.spss.server.monitoring.ServiceStatusContainer;
+import at.gv.egovernment.moa.spss.test.integration.AbstractIntegrationTest;
+
+@RunWith(BlockJUnit4ClassRunner.class)
+public class XadesTslEuTestset03Test extends AbstractIntegrationTest {
+
+ XMLSignatureVerificationInvoker xadesInvoker;
+
+ public static final Map<String, Boolean> TSL_LOAD_STATUS;
+
+ static {
+ final Map<String, Boolean> intMap = new HashMap<>();
+ intMap.put("EU", true);
+ intMap.put("LU", true);
+ intMap.put("FR", true);
+ intMap.put("IT", true);
+ intMap.put("CZ", true);
+ intMap.put("BG", true);
+ intMap.put("UK", true);
+ TSL_LOAD_STATUS = Collections.unmodifiableMap(intMap);
+
+ }
+
+ @BeforeClass
+ public static void classInitializer() throws IOException, ConfigurationException,
+ NoSuchFieldException, SecurityException, IllegalArgumentException, IllegalAccessException {
+ jvmStateReset();
+
+ final String current = new java.io.File(".").getCanonicalPath();
+ System.setProperty("moa.spss.server.configuration",
+ current + "/src/test/resources/moaspss_config/MOASPSSConfiguration_tsl_eu_test_2.xml");
+ System.setProperty("iaik.esi.sva.configuration.location",
+ current + "/src/test/resources/moaspss_config/svaconfig.example");
+ moaSpssCore = SystemInitializer.init();
+
+ }
+
+ @Before
+ public void initializer() throws ConfigurationException {
+ xadesInvoker = XMLSignatureVerificationInvoker.getInstance();
+ setUpContexts(RandomStringUtils.randomAlphabetic(10));
+
+ }
+
+ @Test
+ public void checkTslState() {
+ assertTrue("TSL not active", ServiceStatusContainer.getStatus());
+
+ final List<TSLProcessingResultElement> loadedTsl = ServiceStatusContainer.getTslDetailStatus();
+ assertFalse("no TSL loaded", loadedTsl.isEmpty());
+ assertEquals("wrong TSL size", 7, loadedTsl.size());
+
+ assertEquals("loaded TSL CC", "EU", loadedTsl.get(0).getCountryCode());
+ assertEquals("loaded TSL URL",
+ "https://esignature.ec.europa.eu/efda/validation-tests/testcase/tl/LOTL-3.xml",
+ loadedTsl.get(0).getTslURL());
+ assertTrue("loaded TSL processed", loadedTsl.get(0).isProcessed());
+ assertTrue("loaded TSL verified", loadedTsl.get(0).isVerified());
+
+ for (final TSLProcessingResultElement el : loadedTsl) {
+ assertTrue("TSL entry unknown", TSL_LOAD_STATUS.containsKey(el.getCountryCode()));
+ assertEquals("wrong statusCode", TSL_LOAD_STATUS.get(el.getCountryCode()), el.isProcessed());
+ assertEquals("wrong statusCode", TSL_LOAD_STATUS.get(el.getCountryCode()), el.isVerified());
+
+ }
+ }
+
+ @Test
+ public void euTestFile3_1_1() throws MOAException, IOException, ParserConfigurationException {
+ final VerifyXMLSignatureRequest request = buildVerifyXmlRequest(IOUtils.resourceToByteArray(
+ "/testdata/xades/3.1.1-TEST FILE.xml"),
+ "OnlyTSL", true,
+ null,
+ DEFAULT_XPATH_SIGNATURE_LOCATION,
+ null, Collections.emptyMap());
+
+ // perform test
+ final VerifyXMLSignatureResponse result = xadesInvoker.verifyXMLSignature(request);
+
+ // verify result
+ assertNotNull("verification result", result);
+
+ assertEquals("sigCode", 0, result.getSignatureCheck().getCode());
+ assertEquals("certCode", 1, result.getCertificateCheck().getCode());
+
+ assertNotNull("signerInfo", result.getSignerInfo());
+ assertEquals("issuerCC", "LU", result.getSignerInfo().getIssuerCountryCode());
+ assertFalse("publicAuthority", result.getSignerInfo().isPublicAuthority());
+ assertFalse("QC", result.getSignerInfo().isQualifiedCertificate());
+ assertTrue("SSCD", result.getSignerInfo().isSSCD());
+ assertEquals("qcSource", "Certificate", result.getSignerInfo().getQCSource());
+ assertEquals("qcSource", "Certificate", result.getSignerInfo().getSSCDSource());
+
+ assertNull("TSL infos", result.getSignerInfo().getTslInfos());
+
+ assertNotNull("form val. result", result.getAdESFormResults());
+ assertNotNull("extended val. result", result.getExtendedCertificateCheck());
+ assertEquals("used sig alg", "SHA256withRSA", result.getSignatureAlgorithm());
+
+ }
+
+ @Test
+ public void euTestFile3_1_2() throws MOAException, IOException, ParserConfigurationException {
+ final VerifyXMLSignatureRequest request = buildVerifyXmlRequest(IOUtils.resourceToByteArray(
+ "/testdata/xades/3.1.2-TEST FILE.xml"),
+ "OnlyTSL", true,
+ null,
+ DEFAULT_XPATH_SIGNATURE_LOCATION,
+ null, Collections.emptyMap());
+
+ // perform test
+ final VerifyXMLSignatureResponse result = xadesInvoker.verifyXMLSignature(request);
+
+ // verify result
+ assertNotNull("verification result", result);
+
+ assertEquals("sigCode", 0, result.getSignatureCheck().getCode());
+ assertEquals("certCode", 1, result.getCertificateCheck().getCode());
+
+ assertNotNull("signerInfo", result.getSignerInfo());
+ assertEquals("issuerCC", "LU", result.getSignerInfo().getIssuerCountryCode());
+ assertFalse("publicAuthority", result.getSignerInfo().isPublicAuthority());
+ assertFalse("QC", result.getSignerInfo().isQualifiedCertificate());
+ assertTrue("SSCD", result.getSignerInfo().isSSCD());
+ assertEquals("qcSource", "Certificate", result.getSignerInfo().getQCSource());
+ assertEquals("qcSource", "Certificate", result.getSignerInfo().getSSCDSource());
+
+ assertNotNull("TSL infos", result.getSignerInfo().getTslInfos());
+ assertEquals("TSL CC", "LU", result.getSignerInfo().getTslInfos().getTslIssuerCountry());
+ assertEquals("TSL ServiceType", "http://uri.etsi.org/TrstSvc/Svctype/CA/PKC",
+ result.getSignerInfo().getTslInfos().getServiceTypeIdentifier());
+ assertEquals("TSL ServiceStatus", "http://uri.etsi.org/TrstSvc/TrustedList/Svcstatus/granted",
+ result.getSignerInfo().getTslInfos().getServiceTypeStatus());
+ assertFalse("TSL addit. status", result.getSignerInfo().getTslInfos().getAdditionalServiceInformation()
+ .isEmpty());
+ assertEquals("TSL addit. status value",
+ "http://uri.etsi.org/TrstSvc/TrustedList/SvcInfoExt/ForeSignatures",
+ result.getSignerInfo().getTslInfos().getAdditionalServiceInformation().get(0));
+
+ assertNotNull("form val. result", result.getAdESFormResults());
+ assertNotNull("extended val. result", result.getExtendedCertificateCheck());
+ assertEquals("used sig alg", "SHA256withRSA", result.getSignatureAlgorithm());
+
+ }
+
+ // TODO: check if it should be trusted
+ @Ignore
+ @Test
+ public void euTestFile3_1_3() throws MOAException, IOException, ParserConfigurationException {
+ final VerifyXMLSignatureRequest request = buildVerifyXmlRequest(IOUtils.resourceToByteArray(
+ "/testdata/xades/3.1.3-TEST FILE.xml"),
+ "OnlyTSL", true,
+ null,
+ DEFAULT_XPATH_SIGNATURE_LOCATION,
+ null, Collections.emptyMap());
+
+ // perform test
+ final VerifyXMLSignatureResponse result = xadesInvoker.verifyXMLSignature(request);
+
+ // verify result
+ assertNotNull("verification result", result);
+
+ assertEquals("sigCode", 0, result.getSignatureCheck().getCode());
+ assertEquals("certCode", 1, result.getCertificateCheck().getCode());
+
+ assertNotNull("signerInfo", result.getSignerInfo());
+ assertEquals("issuerCC", "LU", result.getSignerInfo().getIssuerCountryCode());
+ assertFalse("publicAuthority", result.getSignerInfo().isPublicAuthority());
+ assertFalse("QC", result.getSignerInfo().isQualifiedCertificate());
+ assertTrue("SSCD", result.getSignerInfo().isSSCD());
+ assertEquals("qcSource", "Certificate", result.getSignerInfo().getQCSource());
+ assertEquals("qcSource", "Certificate", result.getSignerInfo().getSSCDSource());
+ assertNull("TSL infos", result.getSignerInfo().getTslInfos());
+ assertNotNull("form val. result", result.getAdESFormResults());
+ assertNotNull("extended val. result", result.getExtendedCertificateCheck());
+ assertEquals("used sig alg", "SHA256withRSA", result.getSignatureAlgorithm());
+
+ }
+
+ // TODO: TSL contains multiple values --> should we throw an error in that case?
+ @Test
+ public void euTestFile3_3_1() throws MOAException, IOException, ParserConfigurationException {
+ final VerifyXMLSignatureRequest request = buildVerifyXmlRequest(IOUtils.resourceToByteArray(
+ "/testdata/xades/3.3.1-TEST FILE.xml"),
+ "OnlyTSL", true,
+ null,
+ DEFAULT_XPATH_SIGNATURE_LOCATION,
+ null, Collections.emptyMap());
+
+ // perform test
+ final VerifyXMLSignatureResponse result = xadesInvoker.verifyXMLSignature(request);
+
+ // verify result
+ assertNotNull("verification result", result);
+
+ assertEquals("sigCode", 0, result.getSignatureCheck().getCode());
+ assertEquals("certCode", 1, result.getCertificateCheck().getCode());
+
+ assertNotNull("signerInfo", result.getSignerInfo());
+ assertEquals("issuerCC", "LU", result.getSignerInfo().getIssuerCountryCode());
+ assertFalse("publicAuthority", result.getSignerInfo().isPublicAuthority());
+ assertTrue("QC", result.getSignerInfo().isQualifiedCertificate());
+ assertTrue("SSCD", result.getSignerInfo().isSSCD());
+ assertEquals("qcSource", "TSL", result.getSignerInfo().getQCSource());
+ assertEquals("qcSource", "Certificate", result.getSignerInfo().getSSCDSource());
+
+ assertNotNull("TSL infos", result.getSignerInfo().getTslInfos());
+ assertEquals("TSL CC", "LU", result.getSignerInfo().getTslInfos().getTslIssuerCountry());
+ assertEquals("TSL ServiceType", "http://uri.etsi.org/TrstSvc/Svctype/CA/QC",
+ result.getSignerInfo().getTslInfos().getServiceTypeIdentifier());
+ assertEquals("TSL ServiceStatus", "http://uri.etsi.org/TrstSvc/TrustedList/Svcstatus/granted",
+ result.getSignerInfo().getTslInfos().getServiceTypeStatus());
+ assertFalse("TSL addit. status", result.getSignerInfo().getTslInfos().getAdditionalServiceInformation()
+ .isEmpty());
+ assertEquals("TSL addit. status value",
+ "http://uri.etsi.org/TrstSvc/TrustedList/SvcInfoExt/ForeSignatures",
+ result.getSignerInfo().getTslInfos().getAdditionalServiceInformation().get(0));
+
+ assertNotNull("form val. result", result.getAdESFormResults());
+ assertNotNull("extended val. result", result.getExtendedCertificateCheck());
+ assertEquals("used sig alg", "SHA256withRSA", result.getSignatureAlgorithm());
+
+ }
+
+ // TODO: should be not QC???
+ @Test
+ public void euTestFile4_1_1() throws MOAException, IOException, ParserConfigurationException {
+ final VerifyXMLSignatureRequest request = buildVerifyXmlRequest(IOUtils.resourceToByteArray(
+ "/testdata/xades/4.1.1-TEST FILE.xml"),
+ "OnlyTSL", true,
+ null,
+ DEFAULT_XPATH_SIGNATURE_LOCATION,
+ null, Collections.emptyMap());
+
+ // perform test
+ final VerifyXMLSignatureResponse result = xadesInvoker.verifyXMLSignature(request);
+
+ // verify result
+ assertNotNull("verification result", result);
+
+ assertEquals("sigCode", 0, result.getSignatureCheck().getCode());
+ assertEquals("certCode", 1, result.getCertificateCheck().getCode());
+
+ assertNotNull("signerInfo", result.getSignerInfo());
+ assertEquals("issuerCC", "FR", result.getSignerInfo().getIssuerCountryCode());
+ assertFalse("publicAuthority", result.getSignerInfo().isPublicAuthority());
+ assertTrue("QC", result.getSignerInfo().isQualifiedCertificate());
+ assertTrue("SSCD", result.getSignerInfo().isSSCD());
+ assertEquals("qcSource", "TSL", result.getSignerInfo().getQCSource());
+ assertEquals("qcSource", "Certificate", result.getSignerInfo().getSSCDSource());
+
+ assertNotNull("TSL infos", result.getSignerInfo().getTslInfos());
+ assertEquals("TSL CC", "FR", result.getSignerInfo().getTslInfos().getTslIssuerCountry());
+ assertEquals("TSL ServiceType", "http://uri.etsi.org/TrstSvc/Svctype/CA/QC",
+ result.getSignerInfo().getTslInfos().getServiceTypeIdentifier());
+ assertEquals("TSL ServiceStatus", "http://uri.etsi.org/TrstSvc/TrustedList/Svcstatus/granted",
+ result.getSignerInfo().getTslInfos().getServiceTypeStatus());
+ assertFalse("TSL addit. status", result.getSignerInfo().getTslInfos().getAdditionalServiceInformation()
+ .isEmpty());
+ assertEquals("TSL addit. status value",
+ "http://uri.etsi.org/TrstSvc/TrustedList/SvcInfoExt/ForeSignatures",
+ result.getSignerInfo().getTslInfos().getAdditionalServiceInformation().get(0));
+
+ assertNotNull("form val. result", result.getAdESFormResults());
+ assertNotNull("extended val. result", result.getExtendedCertificateCheck());
+ assertEquals("used sig alg", "SHA256withRSA", result.getSignatureAlgorithm());
+
+ }
+
+ @Test
+ public void euTestFile4_1_2() throws MOAException, IOException, ParserConfigurationException {
+ final VerifyXMLSignatureRequest request = buildVerifyXmlRequest(IOUtils.resourceToByteArray(
+ "/testdata/xades/4.1.2-TEST FILE.xml"),
+ "OnlyTSL", true,
+ null,
+ DEFAULT_XPATH_SIGNATURE_LOCATION,
+ null, Collections.emptyMap());
+
+ // perform test
+ final VerifyXMLSignatureResponse result = xadesInvoker.verifyXMLSignature(request);
+
+ // verify result
+ assertNotNull("verification result", result);
+
+ assertEquals("sigCode", 0, result.getSignatureCheck().getCode());
+ assertEquals("certCode", 1, result.getCertificateCheck().getCode());
+
+ assertNotNull("signerInfo", result.getSignerInfo());
+ assertEquals("issuerCC", "FR", result.getSignerInfo().getIssuerCountryCode());
+ assertFalse("publicAuthority", result.getSignerInfo().isPublicAuthority());
+ assertTrue("QC", result.getSignerInfo().isQualifiedCertificate());
+ assertTrue("SSCD", result.getSignerInfo().isSSCD());
+ assertEquals("qcSource", "TSL", result.getSignerInfo().getQCSource());
+ assertEquals("qcSource", "Certificate", result.getSignerInfo().getSSCDSource());
+
+ assertNotNull("TSL infos", result.getSignerInfo().getTslInfos());
+ assertEquals("TSL CC", "FR", result.getSignerInfo().getTslInfos().getTslIssuerCountry());
+ assertEquals("TSL ServiceType", "http://uri.etsi.org/TrstSvc/Svctype/CA/QC",
+ result.getSignerInfo().getTslInfos().getServiceTypeIdentifier());
+ assertEquals("TSL ServiceStatus", "http://uri.etsi.org/TrstSvc/TrustedList/Svcstatus/undersupervision",
+ result.getSignerInfo().getTslInfos().getServiceTypeStatus());
+ assertTrue("TSL addit. status", result.getSignerInfo().getTslInfos().getAdditionalServiceInformation()
+ .isEmpty());
+
+ assertNotNull("form val. result", result.getAdESFormResults());
+ assertNotNull("extended val. result", result.getExtendedCertificateCheck());
+ assertEquals("used sig alg", "SHA256withRSA", result.getSignatureAlgorithm());
+
+ }
+
+ @Test
+ public void euTestFile4_1_3() throws MOAException, IOException, ParserConfigurationException {
+ final VerifyXMLSignatureRequest request = buildVerifyXmlRequest(IOUtils.resourceToByteArray(
+ "/testdata/xades/4.1.3-TEST FILE.xml"),
+ "OnlyTSL", true,
+ null,
+ DEFAULT_XPATH_SIGNATURE_LOCATION,
+ null, Collections.emptyMap());
+
+ // perform test
+ final VerifyXMLSignatureResponse result = xadesInvoker.verifyXMLSignature(request);
+
+ // verify result
+ assertNotNull("verification result", result);
+
+ assertEquals("sigCode", 0, result.getSignatureCheck().getCode());
+ assertEquals("certCode", 1, result.getCertificateCheck().getCode());
+
+ assertNotNull("signerInfo", result.getSignerInfo());
+ assertEquals("issuerCC", "FR", result.getSignerInfo().getIssuerCountryCode());
+ assertFalse("publicAuthority", result.getSignerInfo().isPublicAuthority());
+ assertTrue("QC", result.getSignerInfo().isQualifiedCertificate());
+ assertTrue("SSCD", result.getSignerInfo().isSSCD());
+ assertEquals("qcSource", "TSL", result.getSignerInfo().getQCSource());
+ assertEquals("qcSource", "Certificate", result.getSignerInfo().getSSCDSource());
+
+ assertNotNull("TSL infos", result.getSignerInfo().getTslInfos());
+ assertEquals("TSL CC", "FR", result.getSignerInfo().getTslInfos().getTslIssuerCountry());
+ assertEquals("TSL ServiceType", "http://uri.etsi.org/TrstSvc/Svctype/CA/QC",
+ result.getSignerInfo().getTslInfos().getServiceTypeIdentifier());
+ assertEquals("TSL ServiceStatus", "http://uri.etsi.org/TrstSvc/TrustedList/Svcstatus/accredited",
+ result.getSignerInfo().getTslInfos().getServiceTypeStatus());
+ assertTrue("TSL addit. status", result.getSignerInfo().getTslInfos().getAdditionalServiceInformation()
+ .isEmpty());
+
+ assertNotNull("form val. result", result.getAdESFormResults());
+ assertNotNull("extended val. result", result.getExtendedCertificateCheck());
+ assertEquals("used sig alg", "SHA256withRSA", result.getSignatureAlgorithm());
+
+ }
+
+ @Test
+ public void euTestFile4_1_4() throws MOAException, IOException, ParserConfigurationException {
+ final VerifyXMLSignatureRequest request = buildVerifyXmlRequest(IOUtils.resourceToByteArray(
+ "/testdata/xades/4.1.4-TEST FILE.xml"),
+ "OnlyTSL", true,
+ null,
+ DEFAULT_XPATH_SIGNATURE_LOCATION,
+ null, Collections.emptyMap());
+
+ // perform test
+ final VerifyXMLSignatureResponse result = xadesInvoker.verifyXMLSignature(request);
+
+ // verify result
+ assertNotNull("verification result", result);
+
+ assertEquals("sigCode", 0, result.getSignatureCheck().getCode());
+ assertEquals("certCode", 1, result.getCertificateCheck().getCode());
+
+ assertNotNull("signerInfo", result.getSignerInfo());
+ assertEquals("issuerCC", "FR", result.getSignerInfo().getIssuerCountryCode());
+ assertFalse("publicAuthority", result.getSignerInfo().isPublicAuthority());
+ assertTrue("QC", result.getSignerInfo().isQualifiedCertificate());
+ assertFalse("SSCD", result.getSignerInfo().isSSCD());
+ assertEquals("qcSource", "TSL", result.getSignerInfo().getQCSource());
+ assertEquals("qcSource", "Certificate", result.getSignerInfo().getSSCDSource());
+
+ assertNotNull("TSL infos", result.getSignerInfo().getTslInfos());
+ assertEquals("TSL CC", "FR", result.getSignerInfo().getTslInfos().getTslIssuerCountry());
+ assertEquals("TSL ServiceType", "http://uri.etsi.org/TrstSvc/Svctype/CA/QC",
+ result.getSignerInfo().getTslInfos().getServiceTypeIdentifier());
+ assertEquals("TSL ServiceStatus", "http://uri.etsi.org/TrstSvc/TrustedList/Svcstatus/undersupervision",
+ result.getSignerInfo().getTslInfos().getServiceTypeStatus());
+ assertTrue("TSL addit. status", result.getSignerInfo().getTslInfos().getAdditionalServiceInformation()
+ .isEmpty());
+
+ assertNotNull("form val. result", result.getAdESFormResults());
+ assertNotNull("extended val. result", result.getExtendedCertificateCheck());
+ assertEquals("used sig alg", "SHA256withRSA", result.getSignatureAlgorithm());
+
+ }
+
+ @Test
+ public void euTestFile3_2_2() throws MOAException, IOException, ParserConfigurationException {
+ final VerifyXMLSignatureRequest request = buildVerifyXmlRequest(IOUtils.resourceToByteArray(
+ "/testdata/xades/3.2.2-TEST FILE.xml"),
+ "OnlyTSL", true,
+ null,
+ DEFAULT_XPATH_SIGNATURE_LOCATION,
+ null, Collections.emptyMap());
+
+ // perform test
+ final VerifyXMLSignatureResponse result = xadesInvoker.verifyXMLSignature(request);
+
+ // verify result
+ assertNotNull("verification result", result);
+
+ assertEquals("sigCode", 0, result.getSignatureCheck().getCode());
+ assertEquals("certCode", 1, result.getCertificateCheck().getCode());
+
+ assertNotNull("signerInfo", result.getSignerInfo());
+ assertEquals("issuerCC", "LU", result.getSignerInfo().getIssuerCountryCode());
+ assertFalse("publicAuthority", result.getSignerInfo().isPublicAuthority());
+ assertTrue("QC", result.getSignerInfo().isQualifiedCertificate());
+ assertTrue("SSCD", result.getSignerInfo().isSSCD());
+ assertEquals("qcSource", "TSL", result.getSignerInfo().getQCSource());
+ assertEquals("qcSource", "Certificate", result.getSignerInfo().getSSCDSource());
+
+ assertNotNull("TSL infos", result.getSignerInfo().getTslInfos());
+ assertEquals("TSL CC", "LU", result.getSignerInfo().getTslInfos().getTslIssuerCountry());
+ assertEquals("TSL ServiceType", "http://uri.etsi.org/TrstSvc/Svctype/CA/QC",
+ result.getSignerInfo().getTslInfos().getServiceTypeIdentifier());
+ assertEquals("TSL ServiceStatus", "http://uri.etsi.org/TrstSvc/TrustedList/Svcstatus/granted",
+ result.getSignerInfo().getTslInfos().getServiceTypeStatus());
+ assertFalse("TSL addit. status", result.getSignerInfo().getTslInfos().getAdditionalServiceInformation()
+ .isEmpty());
+ assertEquals("TSL addit. status value",
+ "http://uri.etsi.org/TrstSvc/TrustedList/SvcInfoExt/ForeSignatures",
+ result.getSignerInfo().getTslInfos().getAdditionalServiceInformation().get(0));
+
+ assertNotNull("form val. result", result.getAdESFormResults());
+ assertNotNull("extended val. result", result.getExtendedCertificateCheck());
+ assertEquals("used sig alg", "SHA256withRSA", result.getSignatureAlgorithm());
+
+ }
+
+ @Test
+ public void euTestFile4_2_1() throws MOAException, IOException, ParserConfigurationException {
+ final VerifyXMLSignatureRequest request = buildVerifyXmlRequest(IOUtils.resourceToByteArray(
+ "/testdata/xades/4.2.1-TEST FILE.xml"),
+ "OnlyTSL", true,
+ null,
+ DEFAULT_XPATH_SIGNATURE_LOCATION,
+ null, Collections.emptyMap());
+
+ // perform test
+ final VerifyXMLSignatureResponse result = xadesInvoker.verifyXMLSignature(request);
+
+ // verify result
+ assertNotNull("verification result", result);
+
+ assertEquals("sigCode", 0, result.getSignatureCheck().getCode());
+ assertEquals("certCode", 1, result.getCertificateCheck().getCode());
+
+ assertNotNull("signerInfo", result.getSignerInfo());
+ assertEquals("issuerCC", "FR", result.getSignerInfo().getIssuerCountryCode());
+ assertFalse("publicAuthority", result.getSignerInfo().isPublicAuthority());
+ assertFalse("QC", result.getSignerInfo().isQualifiedCertificate());
+ assertFalse("SSCD", result.getSignerInfo().isSSCD());
+ assertEquals("qcSource", "Certificate", result.getSignerInfo().getQCSource());
+ assertEquals("qcSource", "Certificate", result.getSignerInfo().getSSCDSource());
+
+ assertNotNull("TSL infos", result.getSignerInfo().getTslInfos());
+ assertEquals("TSL CC", "FR", result.getSignerInfo().getTslInfos().getTslIssuerCountry());
+ assertEquals("TSL ServiceType", "http://uri.etsi.org/TrstSvc/Svctype/CA/QC",
+ result.getSignerInfo().getTslInfos().getServiceTypeIdentifier());
+ assertEquals("TSL ServiceStatus", "http://uri.etsi.org/TrstSvc/TrustedList/Svcstatus/granted",
+ result.getSignerInfo().getTslInfos().getServiceTypeStatus());
+ assertFalse("TSL addit. status", result.getSignerInfo().getTslInfos().getAdditionalServiceInformation()
+ .isEmpty());
+ assertEquals("TSL addit. status value", "http://uri.etsi.org/TrstSvc/TrustedList/SvcInfoExt/ForeSeals",
+ result.getSignerInfo().getTslInfos().getAdditionalServiceInformation().get(0));
+
+ assertNotNull("form val. result", result.getAdESFormResults());
+ assertNotNull("extended val. result", result.getExtendedCertificateCheck());
+ assertEquals("used sig alg", "SHA256withRSA", result.getSignatureAlgorithm());
+
+ }
+
+ @Test
+ public void euTestFile4_2_2() throws MOAException, IOException, ParserConfigurationException {
+ final VerifyXMLSignatureRequest request = buildVerifyXmlRequest(IOUtils.resourceToByteArray(
+ "/testdata/xades/4.2.2-TEST FILE.xml"),
+ "OnlyTSL", true,
+ null,
+ DEFAULT_XPATH_SIGNATURE_LOCATION,
+ null, Collections.emptyMap());
+
+ // perform test
+ final VerifyXMLSignatureResponse result = xadesInvoker.verifyXMLSignature(request);
+
+ // verify result
+ assertNotNull("verification result", result);
+
+ assertEquals("sigCode", 0, result.getSignatureCheck().getCode());
+ assertEquals("certCode", 1, result.getCertificateCheck().getCode());
+
+ assertNotNull("signerInfo", result.getSignerInfo());
+ assertEquals("issuerCC", "FR", result.getSignerInfo().getIssuerCountryCode());
+ assertFalse("publicAuthority", result.getSignerInfo().isPublicAuthority());
+ assertFalse("QC", result.getSignerInfo().isQualifiedCertificate());
+ assertFalse("SSCD", result.getSignerInfo().isSSCD());
+ assertEquals("qcSource", "Certificate", result.getSignerInfo().getQCSource());
+ assertEquals("qcSource", "Certificate", result.getSignerInfo().getSSCDSource());
+
+ assertNotNull("TSL infos", result.getSignerInfo().getTslInfos());
+ assertEquals("TSL CC", "FR", result.getSignerInfo().getTslInfos().getTslIssuerCountry());
+ assertEquals("TSL ServiceType", "http://uri.etsi.org/TrstSvc/Svctype/CA/QC",
+ result.getSignerInfo().getTslInfos().getServiceTypeIdentifier());
+ assertEquals("TSL ServiceStatus", "http://uri.etsi.org/TrstSvc/TrustedList/Svcstatus/granted",
+ result.getSignerInfo().getTslInfos().getServiceTypeStatus());
+ assertFalse("TSL addit. status", result.getSignerInfo().getTslInfos().getAdditionalServiceInformation()
+ .isEmpty());
+ assertEquals("TSL addit. status value", "http://uri.etsi.org/TrstSvc/TrustedList/SvcInfoExt/ForeSeals",
+ result.getSignerInfo().getTslInfos().getAdditionalServiceInformation().get(0));
+
+ assertNotNull("form val. result", result.getAdESFormResults());
+ assertNotNull("extended val. result", result.getExtendedCertificateCheck());
+ assertEquals("used sig alg", "SHA256withRSA", result.getSignatureAlgorithm());
+
+ }
+
+ @Test
+ public void euTestFile4_2_3() throws MOAException, IOException, ParserConfigurationException {
+ final VerifyXMLSignatureRequest request = buildVerifyXmlRequest(IOUtils.resourceToByteArray(
+ "/testdata/xades/4.2.3-TEST FILE.xml"),
+ "OnlyTSL", true,
+ null,
+ DEFAULT_XPATH_SIGNATURE_LOCATION,
+ null, Collections.emptyMap());
+
+ // perform test
+ final VerifyXMLSignatureResponse result = xadesInvoker.verifyXMLSignature(request);
+
+ // verify result
+ assertNotNull("verification result", result);
+
+ assertEquals("sigCode", 0, result.getSignatureCheck().getCode());
+ assertEquals("certCode", 1, result.getCertificateCheck().getCode());
+
+ assertNotNull("signerInfo", result.getSignerInfo());
+ assertEquals("issuerCC", "FR", result.getSignerInfo().getIssuerCountryCode());
+ assertFalse("publicAuthority", result.getSignerInfo().isPublicAuthority());
+ assertTrue("QC", result.getSignerInfo().isQualifiedCertificate());
+ assertFalse("SSCD", result.getSignerInfo().isSSCD());
+ assertEquals("qcSource", "TSL", result.getSignerInfo().getQCSource());
+ assertEquals("qcSource", "Certificate", result.getSignerInfo().getSSCDSource());
+
+ assertNotNull("TSL infos", result.getSignerInfo().getTslInfos());
+ assertEquals("TSL CC", "FR", result.getSignerInfo().getTslInfos().getTslIssuerCountry());
+ assertEquals("TSL ServiceType", "http://uri.etsi.org/TrstSvc/Svctype/CA/QC",
+ result.getSignerInfo().getTslInfos().getServiceTypeIdentifier());
+ assertEquals("TSL ServiceStatus", "http://uri.etsi.org/TrstSvc/TrustedList/Svcstatus/granted",
+ result.getSignerInfo().getTslInfos().getServiceTypeStatus());
+ assertFalse("TSL addit. status", result.getSignerInfo().getTslInfos().getAdditionalServiceInformation()
+ .isEmpty());
+ assertEquals("TSL addit. status value",
+ "http://uri.etsi.org/TrstSvc/TrustedList/SvcInfoExt/ForeSignatures",
+ result.getSignerInfo().getTslInfos().getAdditionalServiceInformation().get(0));
+
+ assertNotNull("form val. result", result.getAdESFormResults());
+ assertNotNull("extended val. result", result.getExtendedCertificateCheck());
+ assertEquals("used sig alg", "SHA256withRSA", result.getSignatureAlgorithm());
+
+ }
+
+ @Test
+ public void euTestFile4_4_1() throws MOAException, IOException, ParserConfigurationException {
+ final VerifyXMLSignatureRequest request = buildVerifyXmlRequest(IOUtils.resourceToByteArray(
+ "/testdata/xades/4.4.1-TEST FILE.xml"),
+ "OnlyTSL", true,
+ null,
+ DEFAULT_XPATH_SIGNATURE_LOCATION,
+ null, Collections.emptyMap());
+
+ // perform test
+ final VerifyXMLSignatureResponse result = xadesInvoker.verifyXMLSignature(request);
+
+ // verify result
+ assertNotNull("verification result", result);
+
+ assertEquals("sigCode", 0, result.getSignatureCheck().getCode());
+ assertEquals("certCode", 1, result.getCertificateCheck().getCode());
+
+ assertNotNull("signerInfo", result.getSignerInfo());
+ assertEquals("issuerCC", "FR", result.getSignerInfo().getIssuerCountryCode());
+ assertFalse("publicAuthority", result.getSignerInfo().isPublicAuthority());
+ assertTrue("QC", result.getSignerInfo().isQualifiedCertificate());
+ assertTrue("SSCD", result.getSignerInfo().isSSCD());
+ assertEquals("qcSource", "TSL", result.getSignerInfo().getQCSource());
+ assertEquals("qcSource", "Certificate", result.getSignerInfo().getSSCDSource());
+
+ assertNotNull("TSL infos", result.getSignerInfo().getTslInfos());
+ assertEquals("TSL CC", "FR", result.getSignerInfo().getTslInfos().getTslIssuerCountry());
+ assertEquals("TSL ServiceType", "http://uri.etsi.org/TrstSvc/Svctype/CA/QC",
+ result.getSignerInfo().getTslInfos().getServiceTypeIdentifier());
+ assertEquals("TSL ServiceStatus", "http://uri.etsi.org/TrstSvc/TrustedList/Svcstatus/granted",
+ result.getSignerInfo().getTslInfos().getServiceTypeStatus());
+ assertFalse("TSL addit. status", result.getSignerInfo().getTslInfos().getAdditionalServiceInformation()
+ .isEmpty());
+ assertEquals("TSL addit. status value",
+ "http://uri.etsi.org/TrstSvc/TrustedList/SvcInfoExt/ForeSignatures",
+ result.getSignerInfo().getTslInfos().getAdditionalServiceInformation().get(0));
+
+ assertNotNull("form val. result", result.getAdESFormResults());
+ assertNotNull("extended val. result", result.getExtendedCertificateCheck());
+ assertEquals("used sig alg", "SHA256withRSA", result.getSignatureAlgorithm());
+
+ }
+
+ @Test
+ public void euTestFile4_4_2() throws MOAException, IOException, ParserConfigurationException {
+ final VerifyXMLSignatureRequest request = buildVerifyXmlRequest(IOUtils.resourceToByteArray(
+ "/testdata/xades/4.4.2-TEST FILE.xml"),
+ "OnlyTSL", true,
+ null,
+ DEFAULT_XPATH_SIGNATURE_LOCATION,
+ null, Collections.emptyMap());
+
+ // perform test
+ final VerifyXMLSignatureResponse result = xadesInvoker.verifyXMLSignature(request);
+
+ // verify result
+ assertNotNull("verification result", result);
+
+ assertEquals("sigCode", 0, result.getSignatureCheck().getCode());
+ assertEquals("certCode", 1, result.getCertificateCheck().getCode());
+
+ assertNotNull("signerInfo", result.getSignerInfo());
+ assertEquals("issuerCC", "FR", result.getSignerInfo().getIssuerCountryCode());
+ assertFalse("publicAuthority", result.getSignerInfo().isPublicAuthority());
+ assertTrue("QC", result.getSignerInfo().isQualifiedCertificate());
+ assertTrue("SSCD", result.getSignerInfo().isSSCD());
+ assertEquals("qcSource", "TSL", result.getSignerInfo().getQCSource());
+ assertEquals("qcSource", "Certificate", result.getSignerInfo().getSSCDSource());
+
+ assertNotNull("TSL infos", result.getSignerInfo().getTslInfos());
+ assertEquals("TSL CC", "FR", result.getSignerInfo().getTslInfos().getTslIssuerCountry());
+ assertEquals("TSL ServiceType", "http://uri.etsi.org/TrstSvc/Svctype/CA/QC",
+ result.getSignerInfo().getTslInfos().getServiceTypeIdentifier());
+ assertEquals("TSL ServiceStatus", "http://uri.etsi.org/TrstSvc/TrustedList/Svcstatus/granted",
+ result.getSignerInfo().getTslInfos().getServiceTypeStatus());
+ assertFalse("TSL addit. status", result.getSignerInfo().getTslInfos().getAdditionalServiceInformation()
+ .isEmpty());
+ assertEquals("TSL addit. status value",
+ "http://uri.etsi.org/TrstSvc/TrustedList/SvcInfoExt/ForeSignatures",
+ result.getSignerInfo().getTslInfos().getAdditionalServiceInformation().get(0));
+
+ assertNotNull("form val. result", result.getAdESFormResults());
+ assertNotNull("extended val. result", result.getExtendedCertificateCheck());
+ assertEquals("used sig alg", "SHA256withRSA", result.getSignatureAlgorithm());
+
+ }
+
+ // TODO: should be no-QC!!!
+ @Ignore
+ @Test
+ public void euTestFile4_4_3() throws MOAException, IOException, ParserConfigurationException {
+ final VerifyXMLSignatureRequest request = buildVerifyXmlRequest(IOUtils.resourceToByteArray(
+ "/testdata/xades/4.4.3-TEST FILE.xml"),
+ "OnlyTSL", true,
+ null,
+ DEFAULT_XPATH_SIGNATURE_LOCATION,
+ null, Collections.emptyMap());
+
+ // perform test
+ final VerifyXMLSignatureResponse result = xadesInvoker.verifyXMLSignature(request);
+
+ // verify result
+ assertNotNull("verification result", result);
+
+ assertEquals("sigCode", 0, result.getSignatureCheck().getCode());
+ assertEquals("certCode", 1, result.getCertificateCheck().getCode());
+
+ assertNotNull("signerInfo", result.getSignerInfo());
+ assertEquals("issuerCC", "FR", result.getSignerInfo().getIssuerCountryCode());
+ assertFalse("publicAuthority", result.getSignerInfo().isPublicAuthority());
+ assertFalse("QC", result.getSignerInfo().isQualifiedCertificate());
+ assertFalse("SSCD", result.getSignerInfo().isSSCD());
+ assertEquals("qcSource", "Certificate", result.getSignerInfo().getQCSource());
+ assertEquals("qcSource", "Certificate", result.getSignerInfo().getSSCDSource());
+
+ assertNotNull("TSL infos", result.getSignerInfo().getTslInfos());
+ assertEquals("TSL CC", "FR", result.getSignerInfo().getTslInfos().getTslIssuerCountry());
+ assertEquals("TSL ServiceType", "http://uri.etsi.org/TrstSvc/Svctype/CA/QC",
+ result.getSignerInfo().getTslInfos().getServiceTypeIdentifier());
+ assertEquals("TSL ServiceStatus", "http://uri.etsi.org/TrstSvc/TrustedList/Svcstatus/granted",
+ result.getSignerInfo().getTslInfos().getServiceTypeStatus());
+ assertFalse("TSL addit. status", result.getSignerInfo().getTslInfos().getAdditionalServiceInformation()
+ .isEmpty());
+ assertEquals("TSL addit. status value", "http://uri.etsi.org/TrstSvc/TrustedList/SvcInfoExt/ForeSeals",
+ result.getSignerInfo().getTslInfos().getAdditionalServiceInformation().get(0));
+
+ assertNotNull("form val. result", result.getAdESFormResults());
+ assertNotNull("extended val. result", result.getExtendedCertificateCheck());
+ assertEquals("used sig alg", "SHA256withRSA", result.getSignatureAlgorithm());
+
+ }
+
+ @Test
+ public void euTestFile4_4_4() throws MOAException, IOException, ParserConfigurationException {
+ final VerifyXMLSignatureRequest request = buildVerifyXmlRequest(IOUtils.resourceToByteArray(
+ "/testdata/xades/4.4.4-TEST FILE.xml"),
+ "OnlyTSL", true,
+ null,
+ DEFAULT_XPATH_SIGNATURE_LOCATION,
+ null, Collections.emptyMap());
+
+ // perform test
+ final VerifyXMLSignatureResponse result = xadesInvoker.verifyXMLSignature(request);
+
+ // verify result
+ assertNotNull("verification result", result);
+
+ assertEquals("sigCode", 0, result.getSignatureCheck().getCode());
+ assertEquals("certCode", 1, result.getCertificateCheck().getCode());
+
+ assertNotNull("signerInfo", result.getSignerInfo());
+ assertEquals("issuerCC", "FR", result.getSignerInfo().getIssuerCountryCode());
+ assertFalse("publicAuthority", result.getSignerInfo().isPublicAuthority());
+ assertTrue("QC", result.getSignerInfo().isQualifiedCertificate());
+ assertTrue("SSCD", result.getSignerInfo().isSSCD());
+ assertEquals("qcSource", "TSL", result.getSignerInfo().getQCSource());
+ assertEquals("qcSource", "Certificate", result.getSignerInfo().getSSCDSource());
+
+ assertNotNull("TSL infos", result.getSignerInfo().getTslInfos());
+ assertEquals("TSL CC", "FR", result.getSignerInfo().getTslInfos().getTslIssuerCountry());
+ assertEquals("TSL ServiceType", "http://uri.etsi.org/TrstSvc/Svctype/CA/QC",
+ result.getSignerInfo().getTslInfos().getServiceTypeIdentifier());
+ assertEquals("TSL ServiceStatus", "http://uri.etsi.org/TrstSvc/TrustedList/Svcstatus/granted",
+ result.getSignerInfo().getTslInfos().getServiceTypeStatus());
+ assertFalse("TSL addit. status", result.getSignerInfo().getTslInfos().getAdditionalServiceInformation()
+ .isEmpty());
+ assertEquals("TSL addit. status value",
+ "http://uri.etsi.org/TrstSvc/TrustedList/SvcInfoExt/ForeSignatures",
+ result.getSignerInfo().getTslInfos().getAdditionalServiceInformation().get(0));
+
+ assertNotNull("form val. result", result.getAdESFormResults());
+ assertNotNull("extended val. result", result.getExtendedCertificateCheck());
+ assertEquals("used sig alg", "SHA256withRSA", result.getSignatureAlgorithm());
+
+ }
+
+ // TODO: should not be QC
+ @Test
+ public void euTestFile4_4_5() throws MOAException, IOException, ParserConfigurationException {
+ final VerifyXMLSignatureRequest request = buildVerifyXmlRequest(IOUtils.resourceToByteArray(
+ "/testdata/xades/4.4.5-TEST FILE.xml"),
+ "OnlyTSL", true,
+ null,
+ DEFAULT_XPATH_SIGNATURE_LOCATION,
+ null, Collections.emptyMap());
+
+ // perform test
+ final VerifyXMLSignatureResponse result = xadesInvoker.verifyXMLSignature(request);
+
+ // verify result
+ assertNotNull("verification result", result);
+
+ assertEquals("sigCode", 0, result.getSignatureCheck().getCode());
+ assertEquals("certCode", 1, result.getCertificateCheck().getCode());
+
+ assertNotNull("signerInfo", result.getSignerInfo());
+ assertEquals("issuerCC", "FR", result.getSignerInfo().getIssuerCountryCode());
+ assertFalse("publicAuthority", result.getSignerInfo().isPublicAuthority());
+ assertTrue("QC", result.getSignerInfo().isQualifiedCertificate());
+ assertTrue("SSCD", result.getSignerInfo().isSSCD());
+ assertEquals("qcSource", "TSL", result.getSignerInfo().getQCSource());
+ assertEquals("qcSource", "Certificate", result.getSignerInfo().getSSCDSource());
+
+ assertNotNull("TSL infos", result.getSignerInfo().getTslInfos());
+ assertEquals("TSL CC", "FR", result.getSignerInfo().getTslInfos().getTslIssuerCountry());
+ assertEquals("TSL ServiceType", "http://uri.etsi.org/TrstSvc/Svctype/CA/QC",
+ result.getSignerInfo().getTslInfos().getServiceTypeIdentifier());
+ assertEquals("TSL ServiceStatus", "http://uri.etsi.org/TrstSvc/TrustedList/Svcstatus/granted",
+ result.getSignerInfo().getTslInfos().getServiceTypeStatus());
+ assertFalse("TSL addit. status", result.getSignerInfo().getTslInfos().getAdditionalServiceInformation()
+ .isEmpty());
+ assertEquals("TSL addit. status value",
+ "http://uri.etsi.org/TrstSvc/TrustedList/SvcInfoExt/ForeSignatures",
+ result.getSignerInfo().getTslInfos().getAdditionalServiceInformation().get(0));
+
+ assertNotNull("form val. result", result.getAdESFormResults());
+ assertNotNull("extended val. result", result.getExtendedCertificateCheck());
+ assertEquals("used sig alg", "SHA256withRSA", result.getSignatureAlgorithm());
+
+ }
+
+ @Test
+ public void euTestFile4_4_6() throws MOAException, IOException, ParserConfigurationException {
+ final VerifyXMLSignatureRequest request = buildVerifyXmlRequest(IOUtils.resourceToByteArray(
+ "/testdata/xades/4.4.6-TEST FILE.xml"),
+ "OnlyTSL", true,
+ null,
+ DEFAULT_XPATH_SIGNATURE_LOCATION,
+ null, Collections.emptyMap());
+
+ // perform test
+ final VerifyXMLSignatureResponse result = xadesInvoker.verifyXMLSignature(request);
+
+ // verify result
+ assertNotNull("verification result", result);
+
+ assertEquals("sigCode", 0, result.getSignatureCheck().getCode());
+ assertEquals("certCode", 1, result.getCertificateCheck().getCode());
+
+ assertNotNull("signerInfo", result.getSignerInfo());
+ assertEquals("issuerCC", "FR", result.getSignerInfo().getIssuerCountryCode());
+ assertFalse("publicAuthority", result.getSignerInfo().isPublicAuthority());
+ assertTrue("QC", result.getSignerInfo().isQualifiedCertificate());
+ assertTrue("SSCD", result.getSignerInfo().isSSCD());
+ assertEquals("qcSource", "TSL", result.getSignerInfo().getQCSource());
+ assertEquals("qcSource", "Certificate", result.getSignerInfo().getSSCDSource());
+
+ assertNotNull("TSL infos", result.getSignerInfo().getTslInfos());
+ assertEquals("TSL CC", "FR", result.getSignerInfo().getTslInfos().getTslIssuerCountry());
+ assertEquals("TSL ServiceType", "http://uri.etsi.org/TrstSvc/Svctype/CA/QC",
+ result.getSignerInfo().getTslInfos().getServiceTypeIdentifier());
+ assertEquals("TSL ServiceStatus", "http://uri.etsi.org/TrstSvc/TrustedList/Svcstatus/granted",
+ result.getSignerInfo().getTslInfos().getServiceTypeStatus());
+ assertFalse("TSL addit. status", result.getSignerInfo().getTslInfos().getAdditionalServiceInformation()
+ .isEmpty());
+ assertEquals("TSL addit. status value",
+ "http://uri.etsi.org/TrstSvc/TrustedList/SvcInfoExt/ForeSignatures",
+ result.getSignerInfo().getTslInfos().getAdditionalServiceInformation().get(0));
+
+ assertNotNull("form val. result", result.getAdESFormResults());
+ assertNotNull("extended val. result", result.getExtendedCertificateCheck());
+ assertEquals("used sig alg", "SHA256withRSA", result.getSignatureAlgorithm());
+
+ }
+
+ @Test
+ public void euTestFile4_4_7() throws MOAException, IOException, ParserConfigurationException {
+ final VerifyXMLSignatureRequest request = buildVerifyXmlRequest(IOUtils.resourceToByteArray(
+ "/testdata/xades/4.4.7-TEST FILE.xml"),
+ "OnlyTSL", true,
+ null,
+ DEFAULT_XPATH_SIGNATURE_LOCATION,
+ null, Collections.emptyMap());
+
+ // perform test
+ final VerifyXMLSignatureResponse result = xadesInvoker.verifyXMLSignature(request);
+
+ // verify result
+ assertNotNull("verification result", result);
+
+ assertEquals("sigCode", 0, result.getSignatureCheck().getCode());
+ assertEquals("certCode", 1, result.getCertificateCheck().getCode());
+
+ assertNotNull("signerInfo", result.getSignerInfo());
+ assertEquals("issuerCC", "FR", result.getSignerInfo().getIssuerCountryCode());
+ assertFalse("publicAuthority", result.getSignerInfo().isPublicAuthority());
+ assertTrue("QC", result.getSignerInfo().isQualifiedCertificate());
+ assertTrue("SSCD", result.getSignerInfo().isSSCD());
+ assertEquals("qcSource", "TSL", result.getSignerInfo().getQCSource());
+ assertEquals("qcSource", "Certificate", result.getSignerInfo().getSSCDSource());
+
+ assertNotNull("TSL infos", result.getSignerInfo().getTslInfos());
+ assertEquals("TSL CC", "FR", result.getSignerInfo().getTslInfos().getTslIssuerCountry());
+ assertEquals("TSL ServiceType", "http://uri.etsi.org/TrstSvc/Svctype/CA/QC",
+ result.getSignerInfo().getTslInfos().getServiceTypeIdentifier());
+ assertEquals("TSL ServiceStatus", "http://uri.etsi.org/TrstSvc/TrustedList/Svcstatus/granted",
+ result.getSignerInfo().getTslInfos().getServiceTypeStatus());
+ assertFalse("TSL addit. status", result.getSignerInfo().getTslInfos().getAdditionalServiceInformation()
+ .isEmpty());
+ assertEquals("TSL addit. status value",
+ "http://uri.etsi.org/TrstSvc/TrustedList/SvcInfoExt/ForeSignatures",
+ result.getSignerInfo().getTslInfos().getAdditionalServiceInformation().get(0));
+
+ assertNotNull("form val. result", result.getAdESFormResults());
+ assertNotNull("extended val. result", result.getExtendedCertificateCheck());
+ assertEquals("used sig alg", "SHA256withRSA", result.getSignatureAlgorithm());
+
+ }
+
+ @Test
+ public void euTestFile4_4_8() throws MOAException, IOException, ParserConfigurationException {
+ final VerifyXMLSignatureRequest request = buildVerifyXmlRequest(IOUtils.resourceToByteArray(
+ "/testdata/xades/4.4.8-TEST FILE.xml"),
+ "OnlyTSL", true,
+ null,
+ DEFAULT_XPATH_SIGNATURE_LOCATION,
+ null, Collections.emptyMap());
+
+ // perform test
+ final VerifyXMLSignatureResponse result = xadesInvoker.verifyXMLSignature(request);
+
+ // verify result
+ assertNotNull("verification result", result);
+
+ assertEquals("sigCode", 0, result.getSignatureCheck().getCode());
+ assertEquals("certCode", 1, result.getCertificateCheck().getCode());
+
+ assertNotNull("signerInfo", result.getSignerInfo());
+ assertEquals("issuerCC", "FR", result.getSignerInfo().getIssuerCountryCode());
+ assertFalse("publicAuthority", result.getSignerInfo().isPublicAuthority());
+ assertTrue("QC", result.getSignerInfo().isQualifiedCertificate());
+ assertTrue("SSCD", result.getSignerInfo().isSSCD());
+ assertEquals("qcSource", "TSL", result.getSignerInfo().getQCSource());
+ assertEquals("qcSource", "Certificate", result.getSignerInfo().getSSCDSource());
+
+ assertNotNull("TSL infos", result.getSignerInfo().getTslInfos());
+ assertEquals("TSL CC", "FR", result.getSignerInfo().getTslInfos().getTslIssuerCountry());
+ assertEquals("TSL ServiceType", "http://uri.etsi.org/TrstSvc/Svctype/CA/QC",
+ result.getSignerInfo().getTslInfos().getServiceTypeIdentifier());
+ assertEquals("TSL ServiceStatus", "http://uri.etsi.org/TrstSvc/TrustedList/Svcstatus/granted",
+ result.getSignerInfo().getTslInfos().getServiceTypeStatus());
+ assertFalse("TSL addit. status", result.getSignerInfo().getTslInfos().getAdditionalServiceInformation()
+ .isEmpty());
+ assertEquals("TSL addit. status value",
+ "http://uri.etsi.org/TrstSvc/TrustedList/SvcInfoExt/ForeSignatures",
+ result.getSignerInfo().getTslInfos().getAdditionalServiceInformation().get(0));
+
+ assertNotNull("form val. result", result.getAdESFormResults());
+ assertNotNull("extended val. result", result.getExtendedCertificateCheck());
+ assertEquals("used sig alg", "SHA256withRSA", result.getSignatureAlgorithm());
+
+ }
+
+ // TODO: should not be QC
+ @Test
+ public void euTestFile4_4_9() throws MOAException, IOException, ParserConfigurationException {
+ final VerifyXMLSignatureRequest request = buildVerifyXmlRequest(IOUtils.resourceToByteArray(
+ "/testdata/xades/4.4.9-TEST FILE.xml"),
+ "OnlyTSL", true,
+ null,
+ DEFAULT_XPATH_SIGNATURE_LOCATION,
+ null, Collections.emptyMap());
+
+ // perform test
+ final VerifyXMLSignatureResponse result = xadesInvoker.verifyXMLSignature(request);
+
+ // verify result
+ assertNotNull("verification result", result);
+
+ assertEquals("sigCode", 0, result.getSignatureCheck().getCode());
+ assertEquals("certCode", 1, result.getCertificateCheck().getCode());
+
+ assertNotNull("signerInfo", result.getSignerInfo());
+ assertEquals("issuerCC", "FR", result.getSignerInfo().getIssuerCountryCode());
+ assertFalse("publicAuthority", result.getSignerInfo().isPublicAuthority());
+ assertTrue("QC", result.getSignerInfo().isQualifiedCertificate());
+ assertTrue("SSCD", result.getSignerInfo().isSSCD());
+ assertEquals("qcSource", "TSL", result.getSignerInfo().getQCSource());
+ assertEquals("qcSource", "Certificate", result.getSignerInfo().getSSCDSource());
+
+ assertNotNull("TSL infos", result.getSignerInfo().getTslInfos());
+ assertEquals("TSL CC", "FR", result.getSignerInfo().getTslInfos().getTslIssuerCountry());
+ assertEquals("TSL ServiceType", "http://uri.etsi.org/TrstSvc/Svctype/CA/QC",
+ result.getSignerInfo().getTslInfos().getServiceTypeIdentifier());
+ assertEquals("TSL ServiceStatus", "http://uri.etsi.org/TrstSvc/TrustedList/Svcstatus/granted",
+ result.getSignerInfo().getTslInfos().getServiceTypeStatus());
+ assertFalse("TSL addit. status", result.getSignerInfo().getTslInfos().getAdditionalServiceInformation()
+ .isEmpty());
+ assertEquals("TSL addit. status value",
+ "http://uri.etsi.org/TrstSvc/TrustedList/SvcInfoExt/ForeSignatures",
+ result.getSignerInfo().getTslInfos().getAdditionalServiceInformation().get(0));
+
+ assertNotNull("form val. result", result.getAdESFormResults());
+ assertNotNull("extended val. result", result.getExtendedCertificateCheck());
+ assertEquals("used sig alg", "SHA256withRSA", result.getSignatureAlgorithm());
+
+ }
+
+ @Test
+ public void euTestFile4_4_10() throws MOAException, IOException, ParserConfigurationException {
+ final VerifyXMLSignatureRequest request = buildVerifyXmlRequest(IOUtils.resourceToByteArray(
+ "/testdata/xades/4.4.10-TEST FILE.xml"),
+ "OnlyTSL", true,
+ null,
+ DEFAULT_XPATH_SIGNATURE_LOCATION,
+ null, Collections.emptyMap());
+
+ // perform test
+ final VerifyXMLSignatureResponse result = xadesInvoker.verifyXMLSignature(request);
+
+ // verify result
+ assertNotNull("verification result", result);
+
+ assertEquals("sigCode", 0, result.getSignatureCheck().getCode());
+ assertEquals("certCode", 1, result.getCertificateCheck().getCode());
+
+ assertNotNull("signerInfo", result.getSignerInfo());
+ assertEquals("issuerCC", "FR", result.getSignerInfo().getIssuerCountryCode());
+ assertFalse("publicAuthority", result.getSignerInfo().isPublicAuthority());
+ assertFalse("QC", result.getSignerInfo().isQualifiedCertificate());
+ assertTrue("SSCD", result.getSignerInfo().isSSCD());
+ assertEquals("qcSource", "Certificate", result.getSignerInfo().getQCSource());
+ assertEquals("qcSource", "Certificate", result.getSignerInfo().getSSCDSource());
+
+ assertNotNull("TSL infos", result.getSignerInfo().getTslInfos());
+ assertEquals("TSL CC", "FR", result.getSignerInfo().getTslInfos().getTslIssuerCountry());
+ assertEquals("TSL ServiceType", "http://uri.etsi.org/TrstSvc/Svctype/CA/QC",
+ result.getSignerInfo().getTslInfos().getServiceTypeIdentifier());
+ assertEquals("TSL ServiceStatus", "http://uri.etsi.org/TrstSvc/TrustedList/Svcstatus/granted",
+ result.getSignerInfo().getTslInfos().getServiceTypeStatus());
+ assertFalse("TSL addit. status", result.getSignerInfo().getTslInfos().getAdditionalServiceInformation()
+ .isEmpty());
+ assertEquals("TSL addit. status value",
+ "http://uri.etsi.org/TrstSvc/TrustedList/SvcInfoExt/ForeSignatures",
+ result.getSignerInfo().getTslInfos().getAdditionalServiceInformation().get(0));
+
+ assertNotNull("form val. result", result.getAdESFormResults());
+ assertNotNull("extended val. result", result.getExtendedCertificateCheck());
+ assertEquals("used sig alg", "SHA256withRSA", result.getSignatureAlgorithm());
+
+ }
+
+ @Test
+ public void euTestFile4_4_11() throws MOAException, IOException, ParserConfigurationException {
+ final VerifyXMLSignatureRequest request = buildVerifyXmlRequest(IOUtils.resourceToByteArray(
+ "/testdata/xades/4.4.11-TEST FILE.xml"),
+ "OnlyTSL", true,
+ null,
+ DEFAULT_XPATH_SIGNATURE_LOCATION,
+ null, Collections.emptyMap());
+
+ // perform test
+ final VerifyXMLSignatureResponse result = xadesInvoker.verifyXMLSignature(request);
+
+ // verify result
+ assertNotNull("verification result", result);
+
+ assertEquals("sigCode", 0, result.getSignatureCheck().getCode());
+ assertEquals("certCode", 1, result.getCertificateCheck().getCode());
+
+ assertNotNull("signerInfo", result.getSignerInfo());
+ assertEquals("issuerCC", "FR", result.getSignerInfo().getIssuerCountryCode());
+ assertFalse("publicAuthority", result.getSignerInfo().isPublicAuthority());
+ assertFalse("QC", result.getSignerInfo().isQualifiedCertificate());
+ assertFalse("SSCD", result.getSignerInfo().isSSCD());
+ assertEquals("qcSource", "Certificate", result.getSignerInfo().getQCSource());
+ assertEquals("qcSource", "Certificate", result.getSignerInfo().getSSCDSource());
+
+ assertNull("TSL infos", result.getSignerInfo().getTslInfos());
+
+ assertNotNull("form val. result", result.getAdESFormResults());
+ assertNotNull("extended val. result", result.getExtendedCertificateCheck());
+ assertEquals("used sig alg", "SHA256withRSA", result.getSignatureAlgorithm());
+
+ }
+
+ @Test
+ public void euTestFile4_4_12() throws MOAException, IOException, ParserConfigurationException {
+ final VerifyXMLSignatureRequest request = buildVerifyXmlRequest(IOUtils.resourceToByteArray(
+ "/testdata/xades/4.4.12-TEST FILE.xml"),
+ "OnlyTSL", true,
+ null,
+ DEFAULT_XPATH_SIGNATURE_LOCATION,
+ null, Collections.emptyMap());
+
+ // perform test
+ final VerifyXMLSignatureResponse result = xadesInvoker.verifyXMLSignature(request);
+
+ // verify result
+ assertNotNull("verification result", result);
+
+ assertEquals("sigCode", 0, result.getSignatureCheck().getCode());
+ assertEquals("certCode", 1, result.getCertificateCheck().getCode());
+
+ assertNotNull("signerInfo", result.getSignerInfo());
+ assertEquals("issuerCC", "FR", result.getSignerInfo().getIssuerCountryCode());
+ assertFalse("publicAuthority", result.getSignerInfo().isPublicAuthority());
+ assertFalse("QC", result.getSignerInfo().isQualifiedCertificate());
+ assertFalse("SSCD", result.getSignerInfo().isSSCD());
+ assertEquals("qcSource", "Certificate", result.getSignerInfo().getQCSource());
+ assertEquals("qcSource", "Certificate", result.getSignerInfo().getSSCDSource());
+
+ assertNull("TSL infos", result.getSignerInfo().getTslInfos());
+
+ assertNotNull("form val. result", result.getAdESFormResults());
+ assertNotNull("extended val. result", result.getExtendedCertificateCheck());
+ assertEquals("used sig alg", "SHA256withRSA", result.getSignatureAlgorithm());
+
+ }
+
+ @Test
+ public void euTestFile4_4_13() throws MOAException, IOException, ParserConfigurationException {
+ final VerifyXMLSignatureRequest request = buildVerifyXmlRequest(IOUtils.resourceToByteArray(
+ "/testdata/xades/4.4.13-TEST FILE.xml"),
+ "OnlyTSL", true,
+ null,
+ DEFAULT_XPATH_SIGNATURE_LOCATION,
+ null, Collections.emptyMap());
+
+ // perform test
+ final VerifyXMLSignatureResponse result = xadesInvoker.verifyXMLSignature(request);
+
+ // verify result
+ assertNotNull("verification result", result);
+
+ assertEquals("sigCode", 0, result.getSignatureCheck().getCode());
+ assertEquals("certCode", 1, result.getCertificateCheck().getCode());
+
+ assertNotNull("signerInfo", result.getSignerInfo());
+ assertEquals("issuerCC", "FR", result.getSignerInfo().getIssuerCountryCode());
+ assertFalse("publicAuthority", result.getSignerInfo().isPublicAuthority());
+ assertTrue("QC", result.getSignerInfo().isQualifiedCertificate());
+ assertTrue("SSCD", result.getSignerInfo().isSSCD());
+ assertEquals("qcSource", "TSL", result.getSignerInfo().getQCSource());
+ assertEquals("qcSource", "TSL", result.getSignerInfo().getSSCDSource());
+
+ assertNotNull("TSL infos", result.getSignerInfo().getTslInfos());
+ assertEquals("TSL CC", "FR", result.getSignerInfo().getTslInfos().getTslIssuerCountry());
+ assertEquals("TSL ServiceType", "http://uri.etsi.org/TrstSvc/Svctype/CA/QC",
+ result.getSignerInfo().getTslInfos().getServiceTypeIdentifier());
+ assertEquals("TSL ServiceStatus", "http://uri.etsi.org/TrstSvc/TrustedList/Svcstatus/granted",
+ result.getSignerInfo().getTslInfos().getServiceTypeStatus());
+ assertFalse("TSL addit. status", result.getSignerInfo().getTslInfos().getAdditionalServiceInformation()
+ .isEmpty());
+ assertEquals("TSL addit. status value",
+ "http://uri.etsi.org/TrstSvc/TrustedList/SvcInfoExt/ForeSignatures",
+ result.getSignerInfo().getTslInfos().getAdditionalServiceInformation().get(0));
+
+ assertNotNull("form val. result", result.getAdESFormResults());
+ assertNotNull("extended val. result", result.getExtendedCertificateCheck());
+ assertEquals("used sig alg", "SHA256withRSA", result.getSignatureAlgorithm());
+
+ }
+
+ @Test
+ public void euTestFile4_4_14() throws MOAException, IOException, ParserConfigurationException {
+ final VerifyXMLSignatureRequest request = buildVerifyXmlRequest(IOUtils.resourceToByteArray(
+ "/testdata/xades/4.4.14-TEST FILE.xml"),
+ "OnlyTSL", true,
+ null,
+ DEFAULT_XPATH_SIGNATURE_LOCATION,
+ null, Collections.emptyMap());
+
+ // perform test
+ final VerifyXMLSignatureResponse result = xadesInvoker.verifyXMLSignature(request);
+
+ // verify result
+ assertNotNull("verification result", result);
+
+ assertEquals("sigCode", 0, result.getSignatureCheck().getCode());
+ assertEquals("certCode", 1, result.getCertificateCheck().getCode());
+
+ assertNotNull("signerInfo", result.getSignerInfo());
+ assertEquals("issuerCC", "FR", result.getSignerInfo().getIssuerCountryCode());
+ assertFalse("publicAuthority", result.getSignerInfo().isPublicAuthority());
+ assertTrue("QC", result.getSignerInfo().isQualifiedCertificate());
+ assertFalse("SSCD", result.getSignerInfo().isSSCD());
+ assertEquals("qcSource", "TSL", result.getSignerInfo().getQCSource());
+ assertEquals("qcSource", "Certificate", result.getSignerInfo().getSSCDSource());
+
+ assertNotNull("TSL infos", result.getSignerInfo().getTslInfos());
+ assertEquals("TSL CC", "FR", result.getSignerInfo().getTslInfos().getTslIssuerCountry());
+ assertEquals("TSL ServiceType", "http://uri.etsi.org/TrstSvc/Svctype/CA/QC",
+ result.getSignerInfo().getTslInfos().getServiceTypeIdentifier());
+ assertEquals("TSL ServiceStatus", "http://uri.etsi.org/TrstSvc/TrustedList/Svcstatus/granted",
+ result.getSignerInfo().getTslInfos().getServiceTypeStatus());
+ assertFalse("TSL addit. status", result.getSignerInfo().getTslInfos().getAdditionalServiceInformation()
+ .isEmpty());
+ assertEquals("TSL addit. status value",
+ "http://uri.etsi.org/TrstSvc/TrustedList/SvcInfoExt/ForeSignatures",
+ result.getSignerInfo().getTslInfos().getAdditionalServiceInformation().get(0));
+
+ assertNotNull("form val. result", result.getAdESFormResults());
+ assertNotNull("extended val. result", result.getExtendedCertificateCheck());
+ assertEquals("used sig alg", "SHA256withRSA", result.getSignatureAlgorithm());
+
+ }
+
+ @Test
+ public void euTestFile4_4_15() throws MOAException, IOException, ParserConfigurationException {
+ final VerifyXMLSignatureRequest request = buildVerifyXmlRequest(IOUtils.resourceToByteArray(
+ "/testdata/xades/4.4.15-TEST FILE.xml"),
+ "OnlyTSL", true,
+ null,
+ DEFAULT_XPATH_SIGNATURE_LOCATION,
+ null, Collections.emptyMap());
+
+ // perform test
+ final VerifyXMLSignatureResponse result = xadesInvoker.verifyXMLSignature(request);
+
+ // verify result
+ assertNotNull("verification result", result);
+
+ assertEquals("sigCode", 0, result.getSignatureCheck().getCode());
+ assertEquals("certCode", 1, result.getCertificateCheck().getCode());
+
+ assertNotNull("signerInfo", result.getSignerInfo());
+ assertEquals("issuerCC", "FR", result.getSignerInfo().getIssuerCountryCode());
+ assertFalse("publicAuthority", result.getSignerInfo().isPublicAuthority());
+ assertTrue("QC", result.getSignerInfo().isQualifiedCertificate());
+ assertTrue("SSCD", result.getSignerInfo().isSSCD());
+ assertEquals("qcSource", "TSL", result.getSignerInfo().getQCSource());
+ assertEquals("sscdSource", "TSL", result.getSignerInfo().getSSCDSource());
+
+ assertNotNull("TSL infos", result.getSignerInfo().getTslInfos());
+ assertEquals("TSL CC", "FR", result.getSignerInfo().getTslInfos().getTslIssuerCountry());
+ assertEquals("TSL ServiceType", "http://uri.etsi.org/TrstSvc/Svctype/CA/QC",
+ result.getSignerInfo().getTslInfos().getServiceTypeIdentifier());
+ assertEquals("TSL ServiceStatus", "http://uri.etsi.org/TrstSvc/TrustedList/Svcstatus/granted",
+ result.getSignerInfo().getTslInfos().getServiceTypeStatus());
+ assertFalse("TSL addit. status", result.getSignerInfo().getTslInfos().getAdditionalServiceInformation()
+ .isEmpty());
+ assertEquals("TSL addit. status value",
+ "http://uri.etsi.org/TrstSvc/TrustedList/SvcInfoExt/ForeSignatures",
+ result.getSignerInfo().getTslInfos().getAdditionalServiceInformation().get(0));
+
+ assertNotNull("form val. result", result.getAdESFormResults());
+ assertNotNull("extended val. result", result.getExtendedCertificateCheck());
+ assertEquals("used sig alg", "SHA256withRSA", result.getSignatureAlgorithm());
+
+ }
+
+ @Test
+ public void euTestFile4_4_16() throws MOAException, IOException, ParserConfigurationException {
+ final VerifyXMLSignatureRequest request = buildVerifyXmlRequest(IOUtils.resourceToByteArray(
+ "/testdata/xades/4.4.16-TEST FILE.xml"),
+ "OnlyTSL", true,
+ null,
+ DEFAULT_XPATH_SIGNATURE_LOCATION,
+ null, Collections.emptyMap());
+
+ // perform test
+ final VerifyXMLSignatureResponse result = xadesInvoker.verifyXMLSignature(request);
+
+ // verify result
+ assertNotNull("verification result", result);
+
+ assertEquals("sigCode", 0, result.getSignatureCheck().getCode());
+ assertEquals("certCode", 1, result.getCertificateCheck().getCode());
+
+ assertNotNull("signerInfo", result.getSignerInfo());
+ assertEquals("issuerCC", "FR", result.getSignerInfo().getIssuerCountryCode());
+ assertFalse("publicAuthority", result.getSignerInfo().isPublicAuthority());
+ assertTrue("QC", result.getSignerInfo().isQualifiedCertificate());
+ assertFalse("SSCD", result.getSignerInfo().isSSCD());
+ assertEquals("qcSource", "TSL", result.getSignerInfo().getQCSource());
+ assertEquals("sscdSource", "Certificate", result.getSignerInfo().getSSCDSource());
+
+ assertNotNull("TSL infos", result.getSignerInfo().getTslInfos());
+ assertEquals("TSL CC", "FR", result.getSignerInfo().getTslInfos().getTslIssuerCountry());
+ assertEquals("TSL ServiceType", "http://uri.etsi.org/TrstSvc/Svctype/CA/QC",
+ result.getSignerInfo().getTslInfos().getServiceTypeIdentifier());
+ assertEquals("TSL ServiceStatus", "http://uri.etsi.org/TrstSvc/TrustedList/Svcstatus/granted",
+ result.getSignerInfo().getTslInfos().getServiceTypeStatus());
+ assertFalse("TSL addit. status", result.getSignerInfo().getTslInfos().getAdditionalServiceInformation()
+ .isEmpty());
+ assertEquals("TSL addit. status value",
+ "http://uri.etsi.org/TrstSvc/TrustedList/SvcInfoExt/ForeSignatures",
+ result.getSignerInfo().getTslInfos().getAdditionalServiceInformation().get(0));
+
+ assertNotNull("form val. result", result.getAdESFormResults());
+ assertNotNull("extended val. result", result.getExtendedCertificateCheck());
+ assertEquals("used sig alg", "SHA256withRSA", result.getSignatureAlgorithm());
+
+ }
+
+ @Test
+ public void euTestFile4_4_17() throws MOAException, IOException, ParserConfigurationException {
+ final VerifyXMLSignatureRequest request = buildVerifyXmlRequest(IOUtils.resourceToByteArray(
+ "/testdata/xades/4.4.17-TEST FILE.xml"),
+ "OnlyTSL", true,
+ null,
+ DEFAULT_XPATH_SIGNATURE_LOCATION,
+ null, Collections.emptyMap());
+
+ // perform test
+ final VerifyXMLSignatureResponse result = xadesInvoker.verifyXMLSignature(request);
+
+ // verify result
+ assertNotNull("verification result", result);
+
+ assertEquals("sigCode", 0, result.getSignatureCheck().getCode());
+ assertEquals("certCode", 1, result.getCertificateCheck().getCode());
+
+ assertNotNull("signerInfo", result.getSignerInfo());
+ assertEquals("issuerCC", "FR", result.getSignerInfo().getIssuerCountryCode());
+ assertFalse("publicAuthority", result.getSignerInfo().isPublicAuthority());
+ assertTrue("QC", result.getSignerInfo().isQualifiedCertificate());
+ assertTrue("SSCD", result.getSignerInfo().isSSCD());
+ assertEquals("qcSource", "TSL", result.getSignerInfo().getQCSource());
+ assertEquals("qcSource", "TSL", result.getSignerInfo().getSSCDSource());
+
+ assertNotNull("TSL infos", result.getSignerInfo().getTslInfos());
+ assertEquals("TSL CC", "FR", result.getSignerInfo().getTslInfos().getTslIssuerCountry());
+ assertEquals("TSL ServiceType", "http://uri.etsi.org/TrstSvc/Svctype/CA/QC",
+ result.getSignerInfo().getTslInfos().getServiceTypeIdentifier());
+ assertEquals("TSL ServiceStatus", "http://uri.etsi.org/TrstSvc/TrustedList/Svcstatus/granted",
+ result.getSignerInfo().getTslInfos().getServiceTypeStatus());
+ assertFalse("TSL addit. status", result.getSignerInfo().getTslInfos().getAdditionalServiceInformation()
+ .isEmpty());
+ assertEquals("TSL addit. status value",
+ "http://uri.etsi.org/TrstSvc/TrustedList/SvcInfoExt/ForeSignatures",
+ result.getSignerInfo().getTslInfos().getAdditionalServiceInformation().get(0));
+
+ assertNotNull("form val. result", result.getAdESFormResults());
+ assertNotNull("extended val. result", result.getExtendedCertificateCheck());
+ assertEquals("used sig alg", "SHA256withRSA", result.getSignatureAlgorithm());
+
+ }
+
+//TODO: should not be QC
+ @Test
+ public void euTestFile4_4_18() throws MOAException, IOException, ParserConfigurationException {
+ final VerifyXMLSignatureRequest request = buildVerifyXmlRequest(IOUtils.resourceToByteArray(
+ "/testdata/xades/4.4.18-TEST FILE.xml"),
+ "OnlyTSL", true,
+ null,
+ DEFAULT_XPATH_SIGNATURE_LOCATION,
+ null, Collections.emptyMap());
+
+ // perform test
+ final VerifyXMLSignatureResponse result = xadesInvoker.verifyXMLSignature(request);
+
+ // verify result
+ assertNotNull("verification result", result);
+
+ assertEquals("sigCode", 0, result.getSignatureCheck().getCode());
+ assertEquals("certCode", 1, result.getCertificateCheck().getCode());
+
+ assertNotNull("signerInfo", result.getSignerInfo());
+ assertEquals("issuerCC", "FR", result.getSignerInfo().getIssuerCountryCode());
+ assertFalse("publicAuthority", result.getSignerInfo().isPublicAuthority());
+ assertTrue("QC", result.getSignerInfo().isQualifiedCertificate());
+ assertFalse("SSCD", result.getSignerInfo().isSSCD());
+ assertEquals("qcSource", "TSL", result.getSignerInfo().getQCSource());
+ assertEquals("qcSource", "Certificate", result.getSignerInfo().getSSCDSource());
+
+ assertNotNull("TSL infos", result.getSignerInfo().getTslInfos());
+ assertEquals("TSL CC", "FR", result.getSignerInfo().getTslInfos().getTslIssuerCountry());
+ assertEquals("TSL ServiceType", "http://uri.etsi.org/TrstSvc/Svctype/CA/QC",
+ result.getSignerInfo().getTslInfos().getServiceTypeIdentifier());
+ assertEquals("TSL ServiceStatus", "http://uri.etsi.org/TrstSvc/TrustedList/Svcstatus/granted",
+ result.getSignerInfo().getTslInfos().getServiceTypeStatus());
+ assertFalse("TSL addit. status", result.getSignerInfo().getTslInfos().getAdditionalServiceInformation()
+ .isEmpty());
+ assertEquals("TSL addit. status value",
+ "http://uri.etsi.org/TrstSvc/TrustedList/SvcInfoExt/ForeSignatures",
+ result.getSignerInfo().getTslInfos().getAdditionalServiceInformation().get(0));
+
+ assertNotNull("form val. result", result.getAdESFormResults());
+ assertNotNull("extended val. result", result.getExtendedCertificateCheck());
+ assertEquals("used sig alg", "SHA256withRSA", result.getSignatureAlgorithm());
+
+ }
+
+ @Test
+ public void euTestFile4_4_19() throws MOAException, IOException, ParserConfigurationException {
+ final VerifyXMLSignatureRequest request = buildVerifyXmlRequest(IOUtils.resourceToByteArray(
+ "/testdata/xades/4.4.19-TEST FILE.xml"),
+ "OnlyTSL", true,
+ null,
+ DEFAULT_XPATH_SIGNATURE_LOCATION,
+ null, Collections.emptyMap());
+
+ // perform test
+ final VerifyXMLSignatureResponse result = xadesInvoker.verifyXMLSignature(request);
+
+ // verify result
+ assertNotNull("verification result", result);
+
+ assertEquals("sigCode", 0, result.getSignatureCheck().getCode());
+ assertEquals("certCode", 1, result.getCertificateCheck().getCode());
+
+ assertNotNull("signerInfo", result.getSignerInfo());
+ assertEquals("issuerCC", "FR", result.getSignerInfo().getIssuerCountryCode());
+ assertFalse("publicAuthority", result.getSignerInfo().isPublicAuthority());
+ assertTrue("QC", result.getSignerInfo().isQualifiedCertificate());
+ assertTrue("SSCD", result.getSignerInfo().isSSCD());
+ assertEquals("qcSource", "TSL", result.getSignerInfo().getQCSource());
+ assertEquals("qcSource", "TSL", result.getSignerInfo().getSSCDSource());
+
+ assertNotNull("TSL infos", result.getSignerInfo().getTslInfos());
+ assertEquals("TSL CC", "FR", result.getSignerInfo().getTslInfos().getTslIssuerCountry());
+ assertEquals("TSL ServiceType", "http://uri.etsi.org/TrstSvc/Svctype/CA/QC",
+ result.getSignerInfo().getTslInfos().getServiceTypeIdentifier());
+ assertEquals("TSL ServiceStatus", "http://uri.etsi.org/TrstSvc/TrustedList/Svcstatus/granted",
+ result.getSignerInfo().getTslInfos().getServiceTypeStatus());
+ assertFalse("TSL addit. status", result.getSignerInfo().getTslInfos().getAdditionalServiceInformation()
+ .isEmpty());
+ assertEquals("TSL addit. status value",
+ "http://uri.etsi.org/TrstSvc/TrustedList/SvcInfoExt/ForeSignatures",
+ result.getSignerInfo().getTslInfos().getAdditionalServiceInformation().get(0));
+
+ assertNotNull("form val. result", result.getAdESFormResults());
+ assertNotNull("extended val. result", result.getExtendedCertificateCheck());
+ assertEquals("used sig alg", "SHA256withRSA", result.getSignatureAlgorithm());
+
+ }
+
+ // TODO: should not be QC
+ @Test
+ public void euTestFile4_4_20() throws MOAException, IOException, ParserConfigurationException {
+ final VerifyXMLSignatureRequest request = buildVerifyXmlRequest(IOUtils.resourceToByteArray(
+ "/testdata/xades/4.4.20-TEST FILE.xml"),
+ "OnlyTSL", true,
+ null,
+ DEFAULT_XPATH_SIGNATURE_LOCATION,
+ null, Collections.emptyMap());
+
+ // perform test
+ final VerifyXMLSignatureResponse result = xadesInvoker.verifyXMLSignature(request);
+
+ // verify result
+ assertNotNull("verification result", result);
+
+ assertEquals("sigCode", 0, result.getSignatureCheck().getCode());
+ assertEquals("certCode", 1, result.getCertificateCheck().getCode());
+
+ assertNotNull("signerInfo", result.getSignerInfo());
+ assertEquals("issuerCC", "FR", result.getSignerInfo().getIssuerCountryCode());
+ assertFalse("publicAuthority", result.getSignerInfo().isPublicAuthority());
+ assertTrue("QC", result.getSignerInfo().isQualifiedCertificate());
+ assertFalse("SSCD", result.getSignerInfo().isSSCD());
+ assertEquals("qcSource", "TSL", result.getSignerInfo().getQCSource());
+ assertEquals("qcSource", "Certificate", result.getSignerInfo().getSSCDSource());
+
+ assertNotNull("TSL infos", result.getSignerInfo().getTslInfos());
+ assertEquals("TSL CC", "FR", result.getSignerInfo().getTslInfos().getTslIssuerCountry());
+ assertEquals("TSL ServiceType", "http://uri.etsi.org/TrstSvc/Svctype/CA/QC",
+ result.getSignerInfo().getTslInfos().getServiceTypeIdentifier());
+ assertEquals("TSL ServiceStatus", "http://uri.etsi.org/TrstSvc/TrustedList/Svcstatus/granted",
+ result.getSignerInfo().getTslInfos().getServiceTypeStatus());
+ assertFalse("TSL addit. status", result.getSignerInfo().getTslInfos().getAdditionalServiceInformation()
+ .isEmpty());
+ assertEquals("TSL addit. status value",
+ "http://uri.etsi.org/TrstSvc/TrustedList/SvcInfoExt/ForeSignatures",
+ result.getSignerInfo().getTslInfos().getAdditionalServiceInformation().get(0));
+
+ assertNotNull("form val. result", result.getAdESFormResults());
+ assertNotNull("extended val. result", result.getExtendedCertificateCheck());
+ assertEquals("used sig alg", "SHA256withRSA", result.getSignatureAlgorithm());
+
+ }
+
+ // TODO: should not be QC
+ @Test
+ public void euTestFile4_4_21() throws MOAException, IOException, ParserConfigurationException {
+ final VerifyXMLSignatureRequest request = buildVerifyXmlRequest(IOUtils.resourceToByteArray(
+ "/testdata/xades/4.4.21-TEST FILE.xml"),
+ "OnlyTSL", true,
+ null,
+ DEFAULT_XPATH_SIGNATURE_LOCATION,
+ null, Collections.emptyMap());
+
+ // perform test
+ final VerifyXMLSignatureResponse result = xadesInvoker.verifyXMLSignature(request);
+
+ // verify result
+ assertNotNull("verification result", result);
+
+ assertEquals("sigCode", 0, result.getSignatureCheck().getCode());
+ assertEquals("certCode", 1, result.getCertificateCheck().getCode());
+
+ assertNotNull("signerInfo", result.getSignerInfo());
+ assertEquals("issuerCC", "FR", result.getSignerInfo().getIssuerCountryCode());
+ assertFalse("publicAuthority", result.getSignerInfo().isPublicAuthority());
+ assertTrue("QC", result.getSignerInfo().isQualifiedCertificate());
+ assertTrue("SSCD", result.getSignerInfo().isSSCD());
+ assertEquals("qcSource", "TSL", result.getSignerInfo().getQCSource());
+ assertEquals("qcSource", "TSL", result.getSignerInfo().getSSCDSource());
+
+ assertNotNull("TSL infos", result.getSignerInfo().getTslInfos());
+ assertEquals("TSL CC", "FR", result.getSignerInfo().getTslInfos().getTslIssuerCountry());
+ assertEquals("TSL ServiceType", "http://uri.etsi.org/TrstSvc/Svctype/CA/QC",
+ result.getSignerInfo().getTslInfos().getServiceTypeIdentifier());
+ assertEquals("TSL ServiceStatus", "http://uri.etsi.org/TrstSvc/TrustedList/Svcstatus/granted",
+ result.getSignerInfo().getTslInfos().getServiceTypeStatus());
+ assertFalse("TSL addit. status", result.getSignerInfo().getTslInfos().getAdditionalServiceInformation()
+ .isEmpty());
+ assertEquals("TSL addit. status value",
+ "http://uri.etsi.org/TrstSvc/TrustedList/SvcInfoExt/ForeSignatures",
+ result.getSignerInfo().getTslInfos().getAdditionalServiceInformation().get(0));
+
+ assertNotNull("form val. result", result.getAdESFormResults());
+ assertNotNull("extended val. result", result.getExtendedCertificateCheck());
+ assertEquals("used sig alg", "SHA256withRSA", result.getSignatureAlgorithm());
+
+ }
+
+ @Test
+ public void euTestFile4_5_1() throws MOAException, IOException, ParserConfigurationException {
+ final VerifyXMLSignatureRequest request = buildVerifyXmlRequest(IOUtils.resourceToByteArray(
+ "/testdata/xades/4.5.1-TEST FILE.xml"),
+ "OnlyTSL", true,
+ null,
+ DEFAULT_XPATH_SIGNATURE_LOCATION,
+ null, Collections.emptyMap());
+
+ // perform test
+ final VerifyXMLSignatureResponse result = xadesInvoker.verifyXMLSignature(request);
+
+ // verify result
+ assertNotNull("verification result", result);
+
+ assertEquals("sigCode", 0, result.getSignatureCheck().getCode());
+ assertEquals("certCode", 1, result.getCertificateCheck().getCode());
+
+ assertNotNull("signerInfo", result.getSignerInfo());
+ assertEquals("issuerCC", "FR", result.getSignerInfo().getIssuerCountryCode());
+ assertFalse("publicAuthority", result.getSignerInfo().isPublicAuthority());
+ assertFalse("QC", result.getSignerInfo().isQualifiedCertificate());
+ assertTrue("SSCD", result.getSignerInfo().isSSCD());
+ assertEquals("qcSource", "Certificate", result.getSignerInfo().getQCSource());
+ assertEquals("qcSource", "Certificate", result.getSignerInfo().getSSCDSource());
+
+ assertNotNull("TSL infos", result.getSignerInfo().getTslInfos());
+ assertEquals("TSL CC", "FR", result.getSignerInfo().getTslInfos().getTslIssuerCountry());
+ assertEquals("TSL ServiceType", "http://uri.etsi.org/TrstSvc/Svctype/CA/QC",
+ result.getSignerInfo().getTslInfos().getServiceTypeIdentifier());
+ assertEquals("TSL ServiceStatus", "http://uri.etsi.org/TrstSvc/TrustedList/Svcstatus/granted",
+ result.getSignerInfo().getTslInfos().getServiceTypeStatus());
+ assertFalse("TSL addit. status", result.getSignerInfo().getTslInfos().getAdditionalServiceInformation()
+ .isEmpty());
+ assertEquals("TSL addit. status value",
+ "http://uri.etsi.org/TrstSvc/TrustedList/SvcInfoExt/ForeSignatures",
+ result.getSignerInfo().getTslInfos().getAdditionalServiceInformation().get(0));
+
+ assertNotNull("form val. result", result.getAdESFormResults());
+ assertNotNull("extended val. result", result.getExtendedCertificateCheck());
+ assertEquals("used sig alg", "SHA256withRSA", result.getSignatureAlgorithm());
+
+ }
+
+ @Test
+ public void euTestFile4_5_2() throws MOAException, IOException, ParserConfigurationException {
+ final VerifyXMLSignatureRequest request = buildVerifyXmlRequest(IOUtils.resourceToByteArray(
+ "/testdata/xades/4.5.2-TEST FILE.xml"),
+ "OnlyTSL", true,
+ null,
+ DEFAULT_XPATH_SIGNATURE_LOCATION,
+ null, Collections.emptyMap());
+
+ // perform test
+ final VerifyXMLSignatureResponse result = xadesInvoker.verifyXMLSignature(request);
+
+ // verify result
+ assertNotNull("verification result", result);
+
+ assertEquals("sigCode", 0, result.getSignatureCheck().getCode());
+ assertEquals("certCode", 1, result.getCertificateCheck().getCode());
+
+ assertNotNull("signerInfo", result.getSignerInfo());
+ assertEquals("issuerCC", "FR", result.getSignerInfo().getIssuerCountryCode());
+ assertFalse("publicAuthority", result.getSignerInfo().isPublicAuthority());
+ assertFalse("QC", result.getSignerInfo().isQualifiedCertificate());
+ assertTrue("SSCD", result.getSignerInfo().isSSCD());
+ assertEquals("qcSource", "Certificate", result.getSignerInfo().getQCSource());
+ assertEquals("qcSource", "Certificate", result.getSignerInfo().getSSCDSource());
+
+ assertNotNull("TSL infos", result.getSignerInfo().getTslInfos());
+ assertEquals("TSL CC", "FR", result.getSignerInfo().getTslInfos().getTslIssuerCountry());
+ assertEquals("TSL ServiceType", "http://uri.etsi.org/TrstSvc/Svctype/CA/QC",
+ result.getSignerInfo().getTslInfos().getServiceTypeIdentifier());
+ assertEquals("TSL ServiceStatus", "http://uri.etsi.org/TrstSvc/TrustedList/Svcstatus/granted",
+ result.getSignerInfo().getTslInfos().getServiceTypeStatus());
+ assertFalse("TSL addit. status", result.getSignerInfo().getTslInfos().getAdditionalServiceInformation()
+ .isEmpty());
+ assertEquals("TSL addit. status value",
+ "http://uri.etsi.org/TrstSvc/TrustedList/SvcInfoExt/ForeSignatures",
+ result.getSignerInfo().getTslInfos().getAdditionalServiceInformation().get(0));
+
+ assertNotNull("form val. result", result.getAdESFormResults());
+ assertNotNull("extended val. result", result.getExtendedCertificateCheck());
+ assertEquals("used sig alg", "SHA256withRSA", result.getSignatureAlgorithm());
+
+ }
+
+ @Test
+ public void euTestFile4_5_3() throws MOAException, IOException, ParserConfigurationException {
+ final VerifyXMLSignatureRequest request = buildVerifyXmlRequest(IOUtils.resourceToByteArray(
+ "/testdata/xades/4.5.3-TEST FILE.xml"),
+ "OnlyTSL", true,
+ null,
+ DEFAULT_XPATH_SIGNATURE_LOCATION,
+ null, Collections.emptyMap());
+
+ // perform test
+ final VerifyXMLSignatureResponse result = xadesInvoker.verifyXMLSignature(request);
+
+ // verify result
+ assertNotNull("verification result", result);
+
+ assertEquals("sigCode", 0, result.getSignatureCheck().getCode());
+ assertEquals("certCode", 1, result.getCertificateCheck().getCode());
+
+ assertNotNull("signerInfo", result.getSignerInfo());
+ assertEquals("issuerCC", "FR", result.getSignerInfo().getIssuerCountryCode());
+ assertFalse("publicAuthority", result.getSignerInfo().isPublicAuthority());
+ assertFalse("QC", result.getSignerInfo().isQualifiedCertificate());
+ assertTrue("SSCD", result.getSignerInfo().isSSCD());
+ assertEquals("qcSource", "Certificate", result.getSignerInfo().getQCSource());
+ assertEquals("qcSource", "Certificate", result.getSignerInfo().getSSCDSource());
+
+ assertNotNull("TSL infos", result.getSignerInfo().getTslInfos());
+ assertEquals("TSL CC", "FR", result.getSignerInfo().getTslInfos().getTslIssuerCountry());
+ assertEquals("TSL ServiceType", "http://uri.etsi.org/TrstSvc/Svctype/CA/QC",
+ result.getSignerInfo().getTslInfos().getServiceTypeIdentifier());
+ assertEquals("TSL ServiceStatus", "http://uri.etsi.org/TrstSvc/TrustedList/Svcstatus/granted",
+ result.getSignerInfo().getTslInfos().getServiceTypeStatus());
+ assertFalse("TSL addit. status", result.getSignerInfo().getTslInfos().getAdditionalServiceInformation()
+ .isEmpty());
+ assertEquals("TSL addit. status value",
+ "http://uri.etsi.org/TrstSvc/TrustedList/SvcInfoExt/ForeSignatures",
+ result.getSignerInfo().getTslInfos().getAdditionalServiceInformation().get(0));
+
+ assertNotNull("form val. result", result.getAdESFormResults());
+ assertNotNull("extended val. result", result.getExtendedCertificateCheck());
+ assertEquals("used sig alg", "SHA256withRSA", result.getSignatureAlgorithm());
+
+ }
+
+ // TODO: maybe wrong result
+ @Test
+ public void euTestFile4_5_4() throws MOAException, IOException, ParserConfigurationException {
+ final VerifyXMLSignatureRequest request = buildVerifyXmlRequest(IOUtils.resourceToByteArray(
+ "/testdata/xades/4.5.4-TEST FILE.xml"),
+ "OnlyTSL", true,
+ null,
+ DEFAULT_XPATH_SIGNATURE_LOCATION,
+ null, Collections.emptyMap());
+
+ // perform test
+ final VerifyXMLSignatureResponse result = xadesInvoker.verifyXMLSignature(request);
+
+ // verify result
+ assertNotNull("verification result", result);
+
+ assertEquals("sigCode", 0, result.getSignatureCheck().getCode());
+ assertEquals("certCode", 1, result.getCertificateCheck().getCode());
+
+ assertNotNull("signerInfo", result.getSignerInfo());
+ assertEquals("issuerCC", "FR", result.getSignerInfo().getIssuerCountryCode());
+ assertFalse("publicAuthority", result.getSignerInfo().isPublicAuthority());
+ assertTrue("QC", result.getSignerInfo().isQualifiedCertificate());
+ assertTrue("SSCD", result.getSignerInfo().isSSCD());
+ assertEquals("qcSource", "TSL", result.getSignerInfo().getQCSource());
+ assertEquals("qcSource", "Certificate", result.getSignerInfo().getSSCDSource());
+
+ assertNotNull("TSL infos", result.getSignerInfo().getTslInfos());
+ assertEquals("TSL CC", "FR", result.getSignerInfo().getTslInfos().getTslIssuerCountry());
+ assertEquals("TSL ServiceType", "http://uri.etsi.org/TrstSvc/Svctype/CA/QC",
+ result.getSignerInfo().getTslInfos().getServiceTypeIdentifier());
+ assertEquals("TSL ServiceStatus", "http://uri.etsi.org/TrstSvc/TrustedList/Svcstatus/undersupervision",
+ result.getSignerInfo().getTslInfos().getServiceTypeStatus());
+ assertTrue("TSL addit. status", result.getSignerInfo().getTslInfos().getAdditionalServiceInformation()
+ .isEmpty());
+
+ assertNotNull("form val. result", result.getAdESFormResults());
+ assertNotNull("extended val. result", result.getExtendedCertificateCheck());
+ assertEquals("used sig alg", "SHA256withRSA", result.getSignatureAlgorithm());
+
+ }
+
+ @Test
+ public void euTestFile5_2_1() throws MOAException, IOException, ParserConfigurationException {
+ final VerifyXMLSignatureRequest request = buildVerifyXmlRequest(IOUtils.resourceToByteArray(
+ "/testdata/xades/5.2.1-TEST FILE.xml"),
+ "OnlyTSL", true,
+ null,
+ DEFAULT_XPATH_SIGNATURE_LOCATION,
+ null, Collections.emptyMap());
+
+ // perform test
+ final VerifyXMLSignatureResponse result = xadesInvoker.verifyXMLSignature(request);
+
+ // verify result
+ assertNotNull("verification result", result);
+
+ assertEquals("sigCode", 0, result.getSignatureCheck().getCode());
+ assertEquals("certCode", 1, result.getCertificateCheck().getCode());
+
+ assertNotNull("signerInfo", result.getSignerInfo());
+ assertEquals("issuerCC", "IT", result.getSignerInfo().getIssuerCountryCode());
+ assertFalse("publicAuthority", result.getSignerInfo().isPublicAuthority());
+ assertTrue("QC", result.getSignerInfo().isQualifiedCertificate());
+ assertTrue("SSCD", result.getSignerInfo().isSSCD());
+ assertEquals("qcSource", "TSL", result.getSignerInfo().getQCSource());
+ assertEquals("qcSource", "Certificate", result.getSignerInfo().getSSCDSource());
+
+ assertNotNull("TSL infos", result.getSignerInfo().getTslInfos());
+ assertEquals("TSL CC", "IT", result.getSignerInfo().getTslInfos().getTslIssuerCountry());
+ assertEquals("TSL ServiceType", "http://uri.etsi.org/TrstSvc/Svctype/CA/QC",
+ result.getSignerInfo().getTslInfos().getServiceTypeIdentifier());
+ assertEquals("TSL ServiceStatus", "http://uri.etsi.org/TrstSvc/TrustedList/Svcstatus/granted",
+ result.getSignerInfo().getTslInfos().getServiceTypeStatus());
+ assertFalse("TSL addit. status", result.getSignerInfo().getTslInfos().getAdditionalServiceInformation()
+ .isEmpty());
+ assertEquals("TSL addit. status value",
+ "http://uri.etsi.org/TrstSvc/TrustedList/SvcInfoExt/ForeSignatures",
+ result.getSignerInfo().getTslInfos().getAdditionalServiceInformation().get(0));
+
+ assertNotNull("form val. result", result.getAdESFormResults());
+ assertNotNull("extended val. result", result.getExtendedCertificateCheck());
+ assertEquals("used sig alg", "SHA256withRSA", result.getSignatureAlgorithm());
+
+ }
+
+ // TODO: should be not QC
+ @Test
+ public void euTestFile5_2_2() throws MOAException, IOException, ParserConfigurationException {
+ final VerifyXMLSignatureRequest request = buildVerifyXmlRequest(IOUtils.resourceToByteArray(
+ "/testdata/xades/5.2.2-TEST FILE.xml"),
+ "OnlyTSL", true,
+ null,
+ DEFAULT_XPATH_SIGNATURE_LOCATION,
+ null, Collections.emptyMap());
+
+ // perform test
+ final VerifyXMLSignatureResponse result = xadesInvoker.verifyXMLSignature(request);
+
+ // verify result
+ assertNotNull("verification result", result);
+
+ assertEquals("sigCode", 0, result.getSignatureCheck().getCode());
+ assertEquals("certCode", 1, result.getCertificateCheck().getCode());
+
+ assertNotNull("signerInfo", result.getSignerInfo());
+ assertEquals("issuerCC", "IT", result.getSignerInfo().getIssuerCountryCode());
+ assertFalse("publicAuthority", result.getSignerInfo().isPublicAuthority());
+ assertTrue("QC", result.getSignerInfo().isQualifiedCertificate());
+ assertTrue("SSCD", result.getSignerInfo().isSSCD());
+ assertEquals("qcSource", "TSL", result.getSignerInfo().getQCSource());
+ assertEquals("qcSource", "Certificate", result.getSignerInfo().getSSCDSource());
+
+ assertNotNull("TSL infos", result.getSignerInfo().getTslInfos());
+ assertEquals("TSL CC", "IT", result.getSignerInfo().getTslInfos().getTslIssuerCountry());
+ assertEquals("TSL ServiceType", "http://uri.etsi.org/TrstSvc/Svctype/CA/QC",
+ result.getSignerInfo().getTslInfos().getServiceTypeIdentifier());
+ assertEquals("TSL ServiceStatus", "http://uri.etsi.org/TrstSvc/TrustedList/Svcstatus/granted",
+ result.getSignerInfo().getTslInfos().getServiceTypeStatus());
+ assertFalse("TSL addit. status", result.getSignerInfo().getTslInfos().getAdditionalServiceInformation()
+ .isEmpty());
+ assertEquals("TSL addit. status value",
+ "http://uri.etsi.org/TrstSvc/TrustedList/SvcInfoExt/ForeSignatures",
+ result.getSignerInfo().getTslInfos().getAdditionalServiceInformation().get(0));
+
+ assertNotNull("form val. result", result.getAdESFormResults());
+ assertNotNull("extended val. result", result.getExtendedCertificateCheck());
+ assertEquals("used sig alg", "SHA256withRSA", result.getSignatureAlgorithm());
+
+ }
+
+ @Test
+ public void euTestFile5_2_3() throws MOAException, IOException, ParserConfigurationException {
+ final VerifyXMLSignatureRequest request = buildVerifyXmlRequest(IOUtils.resourceToByteArray(
+ "/testdata/xades/5.2.3-TEST FILE.xml"),
+ "OnlyTSL", true,
+ null,
+ DEFAULT_XPATH_SIGNATURE_LOCATION,
+ null, Collections.emptyMap());
+
+ // perform test
+ final VerifyXMLSignatureResponse result = xadesInvoker.verifyXMLSignature(request);
+
+ // verify result
+ assertNotNull("verification result", result);
+
+ assertEquals("sigCode", 0, result.getSignatureCheck().getCode());
+ assertEquals("certCode", 1, result.getCertificateCheck().getCode());
+
+ assertNotNull("signerInfo", result.getSignerInfo());
+ assertEquals("issuerCC", "IT", result.getSignerInfo().getIssuerCountryCode());
+ assertFalse("publicAuthority", result.getSignerInfo().isPublicAuthority());
+ assertFalse("QC", result.getSignerInfo().isQualifiedCertificate());
+ assertTrue("SSCD", result.getSignerInfo().isSSCD());
+ assertEquals("qcSource", "Certificate", result.getSignerInfo().getQCSource());
+ assertEquals("qcSource", "Certificate", result.getSignerInfo().getSSCDSource());
+
+ assertNotNull("TSL infos", result.getSignerInfo().getTslInfos());
+ assertEquals("TSL CC", "IT", result.getSignerInfo().getTslInfos().getTslIssuerCountry());
+ assertEquals("TSL ServiceType", "http://uri.etsi.org/TrstSvc/Svctype/CA/QC",
+ result.getSignerInfo().getTslInfos().getServiceTypeIdentifier());
+ assertEquals("TSL ServiceStatus", "http://uri.etsi.org/TrstSvc/TrustedList/Svcstatus/granted",
+ result.getSignerInfo().getTslInfos().getServiceTypeStatus());
+ assertFalse("TSL addit. status", result.getSignerInfo().getTslInfos().getAdditionalServiceInformation()
+ .isEmpty());
+ assertEquals("TSL addit. status value",
+ "http://uri.etsi.org/TrstSvc/TrustedList/SvcInfoExt/ForeSignatures",
+ result.getSignerInfo().getTslInfos().getAdditionalServiceInformation().get(0));
+
+ assertNotNull("form val. result", result.getAdESFormResults());
+ assertNotNull("extended val. result", result.getExtendedCertificateCheck());
+ assertEquals("used sig alg", "SHA256withRSA", result.getSignatureAlgorithm());
+
+ }
+
+ @Test
+ public void euTestFile5_2_4() throws MOAException, IOException, ParserConfigurationException {
+ final VerifyXMLSignatureRequest request = buildVerifyXmlRequest(IOUtils.resourceToByteArray(
+ "/testdata/xades/5.2.4-TEST FILE.xml"),
+ "OnlyTSL", true,
+ null,
+ DEFAULT_XPATH_SIGNATURE_LOCATION,
+ null, Collections.emptyMap());
+
+ // perform test
+ final VerifyXMLSignatureResponse result = xadesInvoker.verifyXMLSignature(request);
+
+ // verify result
+ assertNotNull("verification result", result);
+
+ assertEquals("sigCode", 0, result.getSignatureCheck().getCode());
+ assertEquals("certCode", 1, result.getCertificateCheck().getCode());
+
+ assertNotNull("signerInfo", result.getSignerInfo());
+ assertEquals("issuerCC", "IT", result.getSignerInfo().getIssuerCountryCode());
+ assertFalse("publicAuthority", result.getSignerInfo().isPublicAuthority());
+ assertTrue("QC", result.getSignerInfo().isQualifiedCertificate());
+ assertTrue("SSCD", result.getSignerInfo().isSSCD());
+ assertEquals("qcSource", "TSL", result.getSignerInfo().getQCSource());
+ assertEquals("qcSource", "Certificate", result.getSignerInfo().getSSCDSource());
+
+ assertNotNull("TSL infos", result.getSignerInfo().getTslInfos());
+ assertEquals("TSL CC", "IT", result.getSignerInfo().getTslInfos().getTslIssuerCountry());
+ assertEquals("TSL ServiceType", "http://uri.etsi.org/TrstSvc/Svctype/CA/QC",
+ result.getSignerInfo().getTslInfos().getServiceTypeIdentifier());
+ assertEquals("TSL ServiceStatus", "http://uri.etsi.org/TrstSvc/TrustedList/Svcstatus/granted",
+ result.getSignerInfo().getTslInfos().getServiceTypeStatus());
+ assertFalse("TSL addit. status", result.getSignerInfo().getTslInfos().getAdditionalServiceInformation()
+ .isEmpty());
+ assertEquals("TSL addit. status value",
+ "http://uri.etsi.org/TrstSvc/TrustedList/SvcInfoExt/ForeSignatures",
+ result.getSignerInfo().getTslInfos().getAdditionalServiceInformation().get(0));
+
+ assertNotNull("form val. result", result.getAdESFormResults());
+ assertNotNull("extended val. result", result.getExtendedCertificateCheck());
+ assertEquals("used sig alg", "SHA256withRSA", result.getSignatureAlgorithm());
+
+ }
+
+}
diff --git a/moaSig/moa-sig/src/test/resources/log4j.properties b/moaSig/moa-sig/src/test/resources/log4j.properties
new file mode 100644
index 0000000..a0c593c
--- /dev/null
+++ b/moaSig/moa-sig/src/test/resources/log4j.properties
@@ -0,0 +1,20 @@
+#
+# Sample log4j configuration for the MOA-SPSS web service
+#
+
+# commons-logging setup
+org.apache.commons.logging.LogFactory=org.apache.commons.logging.impl.Log4jFactory
+
+# Configure root logger and loggers for moa-spss
+log4j.rootLogger=warn,stdout
+log4j.logger.moa.spss.server=debug,stdout
+log4j.logger.iaik.server=debug,stdout
+log4j.logger.iaik.pki=debug,stdout
+log4j.logger.at.gv.egovernment.moa.spss=debug, stdout
+log4j.logger.at.gv.egovernment.moa.sig.tsl=debug, stdout
+
+# Configure the 'stdout' appender to write logging output to the console
+log4j.appender.stdout=org.apache.log4j.ConsoleAppender
+log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
+log4j.appender.stdout.layout.ConversionPattern=log4j | %5p | %d{dd HH:mm:ss,SSS} | %C{1} | %20c | %10t | %m%n
+
diff --git a/moaSig/moa-sig/src/test/resources/moaspss_config/MOASPSSConfiguration.xml b/moaSig/moa-sig/src/test/resources/moaspss_config/MOASPSSConfiguration.xml
index f7bff6c..aa9368e 100644
--- a/moaSig/moa-sig/src/test/resources/moaspss_config/MOASPSSConfiguration.xml
+++ b/moaSig/moa-sig/src/test/resources/moaspss_config/MOASPSSConfiguration.xml
@@ -38,18 +38,10 @@
</cfg:TrustAnchor>
</cfg:ChainingMode>
<cfg:TrustProfile>
- <cfg:Id>MOAIDBuergerkartePersonenbindung</cfg:Id>
- <cfg:TrustAnchorsLocation>trustProfiles/MOAIDBuergerkartePersonenbindungOhneTestkarten</cfg:TrustAnchorsLocation>
- </cfg:TrustProfile>
- <cfg:TrustProfile>
<cfg:Id>MOAIDBuergerkarteAuthentisierungsDaten</cfg:Id>
<cfg:TrustAnchorsLocation>trustProfiles/MOAIDBuergerkarteAuthentisierungsDatenOhneTestkarten</cfg:TrustAnchorsLocation>
</cfg:TrustProfile>
<cfg:TrustProfile>
- <cfg:Id>MOAIDBuergerkartePersonenbindungMitTestkarten</cfg:Id>
- <cfg:TrustAnchorsLocation>trustProfiles/MOAIDBuergerkartePersonenbindungMitTestkarten</cfg:TrustAnchorsLocation>
- </cfg:TrustProfile>
- <cfg:TrustProfile>
<cfg:Id>MOAIDBuergerkarteAuthentisierungsDatenMitTestkarten</cfg:Id>
<cfg:TrustAnchorsLocation>trustProfiles/MOAIDBuergerkarteAuthentisierungsDatenMitTestkarten</cfg:TrustAnchorsLocation>
</cfg:TrustProfile>
diff --git a/moaSig/moa-sig/src/test/resources/moaspss_config/MOASPSSConfiguration_tsl_eu_test_1.xml b/moaSig/moa-sig/src/test/resources/moaspss_config/MOASPSSConfiguration_tsl_eu_test_1.xml
new file mode 100644
index 0000000..7fb7267
--- /dev/null
+++ b/moaSig/moa-sig/src/test/resources/moaspss_config/MOASPSSConfiguration_tsl_eu_test_1.xml
@@ -0,0 +1,109 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--MOA SPSS 1.3 Configuration File created by MOA SPSS Configuration Mapper-->
+<cfg:MOAConfiguration xmlns:cfg="http://reference.e-government.gv.at/namespace/moaconfig/20021122#" xmlns:dsig="http://www.w3.org/2000/09/xmldsig#">
+<cfg:Common>
+ <cfg:PermitExternalUris>
+ <cfg:BlackListUri>
+ <cfg:IP>192.168</cfg:IP>
+ </cfg:BlackListUri>
+ </cfg:PermitExternalUris>
+ </cfg:Common>
+ <cfg:SignatureVerification>
+ <cfg:CertificateValidation>
+ <cfg:PathConstruction>
+ <cfg:AutoAddCertificates>true</cfg:AutoAddCertificates>
+ <cfg:UseAuthorityInformationAccess>true</cfg:UseAuthorityInformationAccess>
+ <cfg:CertificateStore>
+ <cfg:DirectoryStore>
+ <cfg:Location>certstore</cfg:Location>
+ </cfg:DirectoryStore>
+ </cfg:CertificateStore>
+ </cfg:PathConstruction>
+ <cfg:PathValidation>
+ <cfg:ChainingMode>
+ <cfg:DefaultMode>pkix</cfg:DefaultMode>
+ <cfg:TrustAnchor>
+ <cfg:Identification>
+ <dsig:X509IssuerName>CN=A-Trust-nQual-0,OU=A-Trust-nQual-0,O=A-Trust,C=AT</dsig:X509IssuerName>
+ <dsig:X509SerialNumber>536</dsig:X509SerialNumber>
+ </cfg:Identification>
+ <cfg:Mode>chaining</cfg:Mode>
+ </cfg:TrustAnchor>
+ <cfg:TrustAnchor>
+ <cfg:Identification>
+ <dsig:X509IssuerName>C=AT,O=Hauptverband österr. Sozialvers.,CN=Root-CA 1</dsig:X509IssuerName>
+ <dsig:X509SerialNumber>376503867878755617282523408360935024869</dsig:X509SerialNumber>
+ </cfg:Identification>
+ <cfg:Mode>chaining</cfg:Mode>
+ </cfg:TrustAnchor>
+ </cfg:ChainingMode>
+ <cfg:TrustProfile>
+ <cfg:Id>MOAIDBuergerkarteAuthentisierungsDaten</cfg:Id>
+ <cfg:TrustAnchorsLocation>trustProfiles/MOAIDBuergerkarteAuthentisierungsDatenOhneTestkarten</cfg:TrustAnchorsLocation>
+ </cfg:TrustProfile>
+ <cfg:TrustProfile>
+ <cfg:Id>MOAIDBuergerkarteAuthentisierungsDatenMitTestkarten</cfg:Id>
+ <cfg:TrustAnchorsLocation>trustProfiles/MOAIDBuergerkarteAuthentisierungsDatenMitTestkarten</cfg:TrustAnchorsLocation>
+ </cfg:TrustProfile>
+ <cfg:TrustProfile>
+ <cfg:Id>OnlyTSL</cfg:Id>
+ <cfg:TrustAnchorsLocation>trustProfiles/testTSL</cfg:TrustAnchorsLocation>
+ <!-- aktiviere TSL-Unterstützung für dieses Vertrauensprofil -->
+ <cfg:EUTSL>
+ <!-- Optional kann eine Länderliste mit zweistelligen Länderkürzeln angegeben werden (d.h. nur die -->
+ <!-- Vertrauensanker der angegeben Länder werden importiert) -->
+ <!-- cfg:CountrySelection>AT,BE</cfg:CountrySelection>
+ <cfg:AllowedTSPStatus></cfg:AllowedTSPStatus>
+ <cfg:AllowedTSPServiceTypes></cfg:AllowedTSPServiceTypes> -->
+ </cfg:EUTSL>
+ </cfg:TrustProfile>
+ </cfg:PathValidation>
+ <cfg:RevocationChecking>
+ <cfg:EnableChecking>false</cfg:EnableChecking>
+ <cfg:MaxRevocationAge>0</cfg:MaxRevocationAge>
+ <cfg:ServiceOrder>
+ <cfg:Service>CRL</cfg:Service>
+ <cfg:Service>OCSP</cfg:Service>
+ </cfg:ServiceOrder>
+ <cfg:Archiving>
+ <cfg:EnableArchiving>false</cfg:EnableArchiving>
+ <cfg:ArchiveDuration>365</cfg:ArchiveDuration>
+ <cfg:Archive>
+ <cfg:DatabaseArchive>
+ <cfg:JDBCURL>jdbc:url</cfg:JDBCURL>
+ <cfg:JDBCDriverClassName>fully.qualified.classname</cfg:JDBCDriverClassName>
+ </cfg:DatabaseArchive>
+ </cfg:Archive>
+ </cfg:Archiving>
+ </cfg:RevocationChecking>
+ <!-- Optionale Angabe einer TSL Konfiguration-->
+ <!-- Wichtig: Das WorkingDirectory muss jedenfalls den Unterordner „trust“ aus der Beispielkonfiguration beinhalten. -->
+ <cfg:TSLConfiguration>
+ <cfg:EUTSLUrl>https://esignature.ec.europa.eu/efda/validation-tests/testcase/tl/LOTL-2.xml</cfg:EUTSLUrl>
+ <cfg:UpdateSchedule>
+ <cfg:StartTime>02:00:00</cfg:StartTime>
+ <cfg:Period>86400000</cfg:Period>
+ </cfg:UpdateSchedule>
+ <cfg:WorkingDirectory>tslworking</cfg:WorkingDirectory>
+ <cfg:Evaluation>
+ <cfg:QCQualifier>http://uri.etsi.org/TrstSvc/Svctype/CA/QC,http://uri.etsi.org/TrstSvc/Svctype/TSA/QTST</cfg:QCQualifier>
+ <cfg:SSCDQualifier>http://uri.etsi.org/TrstSvc/TrustedList/SvcInfoExt/QCWithSSCD,http://uri.etsi.org/TrstSvc/TrustedList/SvcInfoExt/QCWithQSCD</cfg:SSCDQualifier>
+ </cfg:Evaluation>
+ </cfg:TSLConfiguration>
+
+ </cfg:CertificateValidation>
+ <cfg:VerifyTransformsInfoProfile>
+ <cfg:Id>SL20Authblock_v1.0</cfg:Id>
+ <cfg:Location>profiles/SL20_authblock_v1.0.xml</cfg:Location>
+ </cfg:VerifyTransformsInfoProfile>
+ <cfg:VerifyTransformsInfoProfile>
+ <cfg:Id>SL20Authblock_v1.0_SIC</cfg:Id>
+ <cfg:Location>profiles/SL20_authblock_v1.0_SIC.xml</cfg:Location>
+ </cfg:VerifyTransformsInfoProfile>
+ <cfg:VerifyTransformsInfoProfile>
+ <cfg:Id>SL20Authblock_v1.0_OWN</cfg:Id>
+ <cfg:Location>profiles/SL20_authblock_v1.0_own.xml</cfg:Location>
+ </cfg:VerifyTransformsInfoProfile>
+ </cfg:SignatureVerification>
+
+</cfg:MOAConfiguration>
diff --git a/moaSig/moa-sig/src/test/resources/moaspss_config/MOASPSSConfiguration_tsl_eu_test_2.xml b/moaSig/moa-sig/src/test/resources/moaspss_config/MOASPSSConfiguration_tsl_eu_test_2.xml
new file mode 100644
index 0000000..45fb619
--- /dev/null
+++ b/moaSig/moa-sig/src/test/resources/moaspss_config/MOASPSSConfiguration_tsl_eu_test_2.xml
@@ -0,0 +1,109 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--MOA SPSS 1.3 Configuration File created by MOA SPSS Configuration Mapper-->
+<cfg:MOAConfiguration xmlns:cfg="http://reference.e-government.gv.at/namespace/moaconfig/20021122#" xmlns:dsig="http://www.w3.org/2000/09/xmldsig#">
+<cfg:Common>
+ <cfg:PermitExternalUris>
+ <cfg:BlackListUri>
+ <cfg:IP>192.168</cfg:IP>
+ </cfg:BlackListUri>
+ </cfg:PermitExternalUris>
+ </cfg:Common>
+ <cfg:SignatureVerification>
+ <cfg:CertificateValidation>
+ <cfg:PathConstruction>
+ <cfg:AutoAddCertificates>true</cfg:AutoAddCertificates>
+ <cfg:UseAuthorityInformationAccess>true</cfg:UseAuthorityInformationAccess>
+ <cfg:CertificateStore>
+ <cfg:DirectoryStore>
+ <cfg:Location>certstore</cfg:Location>
+ </cfg:DirectoryStore>
+ </cfg:CertificateStore>
+ </cfg:PathConstruction>
+ <cfg:PathValidation>
+ <cfg:ChainingMode>
+ <cfg:DefaultMode>pkix</cfg:DefaultMode>
+ <cfg:TrustAnchor>
+ <cfg:Identification>
+ <dsig:X509IssuerName>CN=A-Trust-nQual-0,OU=A-Trust-nQual-0,O=A-Trust,C=AT</dsig:X509IssuerName>
+ <dsig:X509SerialNumber>536</dsig:X509SerialNumber>
+ </cfg:Identification>
+ <cfg:Mode>chaining</cfg:Mode>
+ </cfg:TrustAnchor>
+ <cfg:TrustAnchor>
+ <cfg:Identification>
+ <dsig:X509IssuerName>C=AT,O=Hauptverband österr. Sozialvers.,CN=Root-CA 1</dsig:X509IssuerName>
+ <dsig:X509SerialNumber>376503867878755617282523408360935024869</dsig:X509SerialNumber>
+ </cfg:Identification>
+ <cfg:Mode>chaining</cfg:Mode>
+ </cfg:TrustAnchor>
+ </cfg:ChainingMode>
+ <cfg:TrustProfile>
+ <cfg:Id>MOAIDBuergerkarteAuthentisierungsDaten</cfg:Id>
+ <cfg:TrustAnchorsLocation>trustProfiles/MOAIDBuergerkarteAuthentisierungsDatenOhneTestkarten</cfg:TrustAnchorsLocation>
+ </cfg:TrustProfile>
+ <cfg:TrustProfile>
+ <cfg:Id>MOAIDBuergerkarteAuthentisierungsDatenMitTestkarten</cfg:Id>
+ <cfg:TrustAnchorsLocation>trustProfiles/MOAIDBuergerkarteAuthentisierungsDatenMitTestkarten</cfg:TrustAnchorsLocation>
+ </cfg:TrustProfile>
+ <cfg:TrustProfile>
+ <cfg:Id>OnlyTSL</cfg:Id>
+ <cfg:TrustAnchorsLocation>trustProfiles/testTSL</cfg:TrustAnchorsLocation>
+ <!-- aktiviere TSL-Unterstützung für dieses Vertrauensprofil -->
+ <cfg:EUTSL>
+ <!-- Optional kann eine Länderliste mit zweistelligen Länderkürzeln angegeben werden (d.h. nur die -->
+ <!-- Vertrauensanker der angegeben Länder werden importiert) -->
+ <!-- cfg:CountrySelection>AT,BE</cfg:CountrySelection>
+ <cfg:AllowedTSPStatus></cfg:AllowedTSPStatus>
+ <cfg:AllowedTSPServiceTypes></cfg:AllowedTSPServiceTypes> -->
+ </cfg:EUTSL>
+ </cfg:TrustProfile>
+ </cfg:PathValidation>
+ <cfg:RevocationChecking>
+ <cfg:EnableChecking>false</cfg:EnableChecking>
+ <cfg:MaxRevocationAge>0</cfg:MaxRevocationAge>
+ <cfg:ServiceOrder>
+ <cfg:Service>CRL</cfg:Service>
+ <cfg:Service>OCSP</cfg:Service>
+ </cfg:ServiceOrder>
+ <cfg:Archiving>
+ <cfg:EnableArchiving>false</cfg:EnableArchiving>
+ <cfg:ArchiveDuration>365</cfg:ArchiveDuration>
+ <cfg:Archive>
+ <cfg:DatabaseArchive>
+ <cfg:JDBCURL>jdbc:url</cfg:JDBCURL>
+ <cfg:JDBCDriverClassName>fully.qualified.classname</cfg:JDBCDriverClassName>
+ </cfg:DatabaseArchive>
+ </cfg:Archive>
+ </cfg:Archiving>
+ </cfg:RevocationChecking>
+ <!-- Optionale Angabe einer TSL Konfiguration-->
+ <!-- Wichtig: Das WorkingDirectory muss jedenfalls den Unterordner „trust“ aus der Beispielkonfiguration beinhalten. -->
+ <cfg:TSLConfiguration>
+ <cfg:EUTSLUrl>https://esignature.ec.europa.eu/efda/validation-tests/testcase/tl/LOTL-3.xml</cfg:EUTSLUrl>
+ <cfg:UpdateSchedule>
+ <cfg:StartTime>02:00:00</cfg:StartTime>
+ <cfg:Period>86400000</cfg:Period>
+ </cfg:UpdateSchedule>
+ <cfg:WorkingDirectory>tslworking</cfg:WorkingDirectory>
+ <cfg:Evaluation>
+ <cfg:QCQualifier>http://uri.etsi.org/TrstSvc/Svctype/CA/QC,http://uri.etsi.org/TrstSvc/Svctype/TSA/QTST</cfg:QCQualifier>
+ <cfg:SSCDQualifier>http://uri.etsi.org/TrstSvc/TrustedList/SvcInfoExt/QCWithSSCD,http://uri.etsi.org/TrstSvc/TrustedList/SvcInfoExt/QCWithQSCD</cfg:SSCDQualifier>
+ </cfg:Evaluation>
+ </cfg:TSLConfiguration>
+
+ </cfg:CertificateValidation>
+ <cfg:VerifyTransformsInfoProfile>
+ <cfg:Id>SL20Authblock_v1.0</cfg:Id>
+ <cfg:Location>profiles/SL20_authblock_v1.0.xml</cfg:Location>
+ </cfg:VerifyTransformsInfoProfile>
+ <cfg:VerifyTransformsInfoProfile>
+ <cfg:Id>SL20Authblock_v1.0_SIC</cfg:Id>
+ <cfg:Location>profiles/SL20_authblock_v1.0_SIC.xml</cfg:Location>
+ </cfg:VerifyTransformsInfoProfile>
+ <cfg:VerifyTransformsInfoProfile>
+ <cfg:Id>SL20Authblock_v1.0_OWN</cfg:Id>
+ <cfg:Location>profiles/SL20_authblock_v1.0_own.xml</cfg:Location>
+ </cfg:VerifyTransformsInfoProfile>
+ </cfg:SignatureVerification>
+
+</cfg:MOAConfiguration>
diff --git a/moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/006EF01AE36BBE9D8C4528E15D1CF4449C92347D/4C487F03949459CD579C5A9BEA95573F8CC74180 b/moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/006EF01AE36BBE9D8C4528E15D1CF4449C92347D/4C487F03949459CD579C5A9BEA95573F8CC74180
new file mode 100644
index 0000000..0cf7fce
--- /dev/null
+++ b/moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/006EF01AE36BBE9D8C4528E15D1CF4449C92347D/4C487F03949459CD579C5A9BEA95573F8CC74180
Binary files differ
diff --git a/moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/01AD7DE9AE3411A658A4D205F5D7C30E570BD950/AE72B02B4BFD413A8CF9625EBF9D46A29FB3FA3F b/moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/01AD7DE9AE3411A658A4D205F5D7C30E570BD950/AE72B02B4BFD413A8CF9625EBF9D46A29FB3FA3F
new file mode 100644
index 0000000..32e7ac6
--- /dev/null
+++ b/moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/01AD7DE9AE3411A658A4D205F5D7C30E570BD950/AE72B02B4BFD413A8CF9625EBF9D46A29FB3FA3F
Binary files differ
diff --git a/moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/105B708E920AEA7AD63DE49A033CB4F087B4BA7B/9C9410F38D2BC61677E23378146F794497A2A48C b/moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/105B708E920AEA7AD63DE49A033CB4F087B4BA7B/9C9410F38D2BC61677E23378146F794497A2A48C
new file mode 100644
index 0000000..624189e
--- /dev/null
+++ b/moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/105B708E920AEA7AD63DE49A033CB4F087B4BA7B/9C9410F38D2BC61677E23378146F794497A2A48C
Binary files differ
diff --git a/moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/10E03DDD1F57A0D2ECE8CECAEA03C88021472F23/37809B6BDA10D16E3004C5A9063A2EE2381A5D41 b/moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/10E03DDD1F57A0D2ECE8CECAEA03C88021472F23/37809B6BDA10D16E3004C5A9063A2EE2381A5D41
new file mode 100644
index 0000000..5872e0d
--- /dev/null
+++ b/moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/10E03DDD1F57A0D2ECE8CECAEA03C88021472F23/37809B6BDA10D16E3004C5A9063A2EE2381A5D41
Binary files differ
diff --git a/moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/1321120587BF1F000287044B0A2D01888CA27570/BEAEE400183668AAD65001EC242D77B7DDFBE802 b/moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/1321120587BF1F000287044B0A2D01888CA27570/BEAEE400183668AAD65001EC242D77B7DDFBE802
new file mode 100644
index 0000000..f83e94e
--- /dev/null
+++ b/moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/1321120587BF1F000287044B0A2D01888CA27570/BEAEE400183668AAD65001EC242D77B7DDFBE802
Binary files differ
diff --git a/moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/1336BAB6C57E007E0D3ACB140962517750E2158D/09861F9628CCEC9E404E884AC83F3D0F5E4D3EC8 b/moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/1336BAB6C57E007E0D3ACB140962517750E2158D/09861F9628CCEC9E404E884AC83F3D0F5E4D3EC8
new file mode 100644
index 0000000..0fd6fdc
--- /dev/null
+++ b/moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/1336BAB6C57E007E0D3ACB140962517750E2158D/09861F9628CCEC9E404E884AC83F3D0F5E4D3EC8
Binary files differ
diff --git a/moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/140B7886BAF62C5997B7FB13D00201A958D3C7E7/DBC255698DEDF247934DE5FDB62A12FD85C8B07F b/moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/140B7886BAF62C5997B7FB13D00201A958D3C7E7/DBC255698DEDF247934DE5FDB62A12FD85C8B07F
new file mode 100644
index 0000000..270fbb6
--- /dev/null
+++ b/moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/140B7886BAF62C5997B7FB13D00201A958D3C7E7/DBC255698DEDF247934DE5FDB62A12FD85C8B07F
Binary files differ
diff --git a/moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/1737C7FE3464AA0BB890F88A6900DD4E72DF02AD/9D35325E3429654BC91D44CC665E962F2A4335DC b/moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/1737C7FE3464AA0BB890F88A6900DD4E72DF02AD/9D35325E3429654BC91D44CC665E962F2A4335DC
new file mode 100644
index 0000000..e7da864
--- /dev/null
+++ b/moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/1737C7FE3464AA0BB890F88A6900DD4E72DF02AD/9D35325E3429654BC91D44CC665E962F2A4335DC
Binary files differ
diff --git a/moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/241ECDABF178046BE788313A5B2226E2CCDEB207/750AB1EB4240550AF0AA0A0A88BE490131DACCDB b/moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/241ECDABF178046BE788313A5B2226E2CCDEB207/750AB1EB4240550AF0AA0A0A88BE490131DACCDB
new file mode 100644
index 0000000..110c904
--- /dev/null
+++ b/moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/241ECDABF178046BE788313A5B2226E2CCDEB207/750AB1EB4240550AF0AA0A0A88BE490131DACCDB
Binary files differ
diff --git a/moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/26E6F1BA9B7EA8F0E9A30765BB02FAB581243E94/A7EF0C4E3634D9A698928570FD1169C85B0AFA21 b/moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/26E6F1BA9B7EA8F0E9A30765BB02FAB581243E94/A7EF0C4E3634D9A698928570FD1169C85B0AFA21
new file mode 100644
index 0000000..c54e594
--- /dev/null
+++ b/moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/26E6F1BA9B7EA8F0E9A30765BB02FAB581243E94/A7EF0C4E3634D9A698928570FD1169C85B0AFA21
Binary files differ
diff --git a/moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/29D027986C8BE3BA96753C9956C8A2D9D40133AC/65B327F0CC157F53E8AFEDC64D7AFA7BB4276EE9 b/moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/29D027986C8BE3BA96753C9956C8A2D9D40133AC/65B327F0CC157F53E8AFEDC64D7AFA7BB4276EE9
new file mode 100644
index 0000000..49d5671
--- /dev/null
+++ b/moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/29D027986C8BE3BA96753C9956C8A2D9D40133AC/65B327F0CC157F53E8AFEDC64D7AFA7BB4276EE9
Binary files differ
diff --git a/moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/39E89608FEB18D606A795569CC3865F4D0061246/9EDA42E4C4F0F7151F30924552A48EE28533518B b/moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/39E89608FEB18D606A795569CC3865F4D0061246/9EDA42E4C4F0F7151F30924552A48EE28533518B
new file mode 100644
index 0000000..03be6ac
--- /dev/null
+++ b/moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/39E89608FEB18D606A795569CC3865F4D0061246/9EDA42E4C4F0F7151F30924552A48EE28533518B
Binary files differ
diff --git a/moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/4396D4AD733150F8098F03084DC3A0CC48C9C68D/7BCD79B7CBB5DD5E2F71045F402C32814E3D9AFD b/moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/4396D4AD733150F8098F03084DC3A0CC48C9C68D/7BCD79B7CBB5DD5E2F71045F402C32814E3D9AFD
new file mode 100644
index 0000000..a128243
--- /dev/null
+++ b/moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/4396D4AD733150F8098F03084DC3A0CC48C9C68D/7BCD79B7CBB5DD5E2F71045F402C32814E3D9AFD
Binary files differ
diff --git a/moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/4C7747ED13F431F1502F4CCE5AE483B6D720E075/2D82AE75674758C155EE7F0601ABDE89D5489250 b/moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/4C7747ED13F431F1502F4CCE5AE483B6D720E075/2D82AE75674758C155EE7F0601ABDE89D5489250
new file mode 100644
index 0000000..7c1e520
--- /dev/null
+++ b/moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/4C7747ED13F431F1502F4CCE5AE483B6D720E075/2D82AE75674758C155EE7F0601ABDE89D5489250
Binary files differ
diff --git a/moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/50E1793E2FA6A54E358E1849D6CB650A9F6BE6EB/A07D7A4A74FC9C1EFB613ED4CC2C783E3F51B88F b/moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/50E1793E2FA6A54E358E1849D6CB650A9F6BE6EB/A07D7A4A74FC9C1EFB613ED4CC2C783E3F51B88F
new file mode 100644
index 0000000..bb480aa
--- /dev/null
+++ b/moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/50E1793E2FA6A54E358E1849D6CB650A9F6BE6EB/A07D7A4A74FC9C1EFB613ED4CC2C783E3F51B88F
Binary files differ
diff --git a/moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/51D1B77633EDBB271F0F7B75D012683D984FCAD1/51C251D13B856BF7E5DB1B344B8F184591446FAF b/moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/51D1B77633EDBB271F0F7B75D012683D984FCAD1/51C251D13B856BF7E5DB1B344B8F184591446FAF
new file mode 100644
index 0000000..352a66b
--- /dev/null
+++ b/moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/51D1B77633EDBB271F0F7B75D012683D984FCAD1/51C251D13B856BF7E5DB1B344B8F184591446FAF
Binary files differ
diff --git a/moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/568AC5E80B9412A3F7EF5EDFB598446882C053BF/127169D08B8095C826E62CE0CC6CD4B76EC70AEA b/moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/568AC5E80B9412A3F7EF5EDFB598446882C053BF/127169D08B8095C826E62CE0CC6CD4B76EC70AEA
new file mode 100644
index 0000000..a11f3ea
--- /dev/null
+++ b/moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/568AC5E80B9412A3F7EF5EDFB598446882C053BF/127169D08B8095C826E62CE0CC6CD4B76EC70AEA
Binary files differ
diff --git a/moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/5C8A95C51BA194521993F68D014431AD6A021045/01072A7406969FB38470EFF30C9EB77B44987780 b/moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/5C8A95C51BA194521993F68D014431AD6A021045/01072A7406969FB38470EFF30C9EB77B44987780
new file mode 100644
index 0000000..5abe244
--- /dev/null
+++ b/moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/5C8A95C51BA194521993F68D014431AD6A021045/01072A7406969FB38470EFF30C9EB77B44987780
Binary files differ
diff --git a/moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/5FBEAF84C7F58B5B6C9E774690D8BA13D7444CB1/85826346270005A60F6E2099445D7E04A9CEDFBC b/moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/5FBEAF84C7F58B5B6C9E774690D8BA13D7444CB1/85826346270005A60F6E2099445D7E04A9CEDFBC
new file mode 100644
index 0000000..af7b686
--- /dev/null
+++ b/moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/5FBEAF84C7F58B5B6C9E774690D8BA13D7444CB1/85826346270005A60F6E2099445D7E04A9CEDFBC
Binary files differ
diff --git a/moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/5FEF7FCBD2F2DDB753F79EAFA01B1D5C108E5A56/2E3009F003EAFD49B0D520704C743A8AEA7EFB82 b/moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/5FEF7FCBD2F2DDB753F79EAFA01B1D5C108E5A56/2E3009F003EAFD49B0D520704C743A8AEA7EFB82
new file mode 100644
index 0000000..ba00346
--- /dev/null
+++ b/moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/5FEF7FCBD2F2DDB753F79EAFA01B1D5C108E5A56/2E3009F003EAFD49B0D520704C743A8AEA7EFB82
Binary files differ
diff --git a/moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/605C34616545FB534A7214CD13A2115DCEFF6238/018EE623F66AAB0FCA64B6B41CDCACA0F8E263F3 b/moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/605C34616545FB534A7214CD13A2115DCEFF6238/018EE623F66AAB0FCA64B6B41CDCACA0F8E263F3
new file mode 100644
index 0000000..d82ab8b
--- /dev/null
+++ b/moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/605C34616545FB534A7214CD13A2115DCEFF6238/018EE623F66AAB0FCA64B6B41CDCACA0F8E263F3
Binary files differ
diff --git a/moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/646B613915EC6F29F6292757B8E87D9FA6C5B306/8C459A6043BA8974AFF3D1DF37948AA7A75D6DB5 b/moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/646B613915EC6F29F6292757B8E87D9FA6C5B306/8C459A6043BA8974AFF3D1DF37948AA7A75D6DB5
new file mode 100644
index 0000000..b0e4055
--- /dev/null
+++ b/moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/646B613915EC6F29F6292757B8E87D9FA6C5B306/8C459A6043BA8974AFF3D1DF37948AA7A75D6DB5
Binary files differ
diff --git a/moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/655390AAFE8C7BCEF5FB5BA16370096D20974BCA/03C18F40D6720F945E73EE2874EB7DC448641CA9 b/moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/655390AAFE8C7BCEF5FB5BA16370096D20974BCA/03C18F40D6720F945E73EE2874EB7DC448641CA9
new file mode 100644
index 0000000..4a010e3
--- /dev/null
+++ b/moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/655390AAFE8C7BCEF5FB5BA16370096D20974BCA/03C18F40D6720F945E73EE2874EB7DC448641CA9
Binary files differ
diff --git a/moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/675B237E463894006F958DCEBB903FF5884923CE/196CAF0E6A2643D22CB8982D8FDA0CE3D36A854A b/moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/675B237E463894006F958DCEBB903FF5884923CE/196CAF0E6A2643D22CB8982D8FDA0CE3D36A854A
new file mode 100644
index 0000000..08f16f7
--- /dev/null
+++ b/moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/675B237E463894006F958DCEBB903FF5884923CE/196CAF0E6A2643D22CB8982D8FDA0CE3D36A854A
Binary files differ
diff --git a/moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/6791704519FE0106BA98C17C9CB42937F489ED1D/742C5906DF454E579FD41170C7EEEFE62FFA4A4E b/moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/6791704519FE0106BA98C17C9CB42937F489ED1D/742C5906DF454E579FD41170C7EEEFE62FFA4A4E
new file mode 100644
index 0000000..7fe24f2
--- /dev/null
+++ b/moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/6791704519FE0106BA98C17C9CB42937F489ED1D/742C5906DF454E579FD41170C7EEEFE62FFA4A4E
Binary files differ
diff --git a/moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/6CB03635E5788B0A8645CD236BC5AFA1BD9E3729/892740E3C13A71DD4FE749AF2BB309026D50C1A2 b/moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/6CB03635E5788B0A8645CD236BC5AFA1BD9E3729/892740E3C13A71DD4FE749AF2BB309026D50C1A2
new file mode 100644
index 0000000..eca991a
--- /dev/null
+++ b/moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/6CB03635E5788B0A8645CD236BC5AFA1BD9E3729/892740E3C13A71DD4FE749AF2BB309026D50C1A2
Binary files differ
diff --git a/moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/7B088EDDB4473CEC0AB8BEDD6AA982987686FC44/D4B13E86555BEBC4F614B2C775C29230923AC16C b/moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/7B088EDDB4473CEC0AB8BEDD6AA982987686FC44/D4B13E86555BEBC4F614B2C775C29230923AC16C
new file mode 100644
index 0000000..1531d1b
--- /dev/null
+++ b/moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/7B088EDDB4473CEC0AB8BEDD6AA982987686FC44/D4B13E86555BEBC4F614B2C775C29230923AC16C
Binary files differ
diff --git a/moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/80864236918C41B8333ED31FA0FAC57409C49355/A6DD82E2ECA562D83B0FABF3AC96C0A92BA69039 b/moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/80864236918C41B8333ED31FA0FAC57409C49355/A6DD82E2ECA562D83B0FABF3AC96C0A92BA69039
new file mode 100644
index 0000000..a5fcc3a
--- /dev/null
+++ b/moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/80864236918C41B8333ED31FA0FAC57409C49355/A6DD82E2ECA562D83B0FABF3AC96C0A92BA69039
Binary files differ
diff --git a/moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/88896FC3B7048BCD29F193BCF4B7255FA9B94D9E/432406D3A56A60E5646E7F68709E1F64F0047015 b/moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/88896FC3B7048BCD29F193BCF4B7255FA9B94D9E/432406D3A56A60E5646E7F68709E1F64F0047015
new file mode 100644
index 0000000..07e9e94
--- /dev/null
+++ b/moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/88896FC3B7048BCD29F193BCF4B7255FA9B94D9E/432406D3A56A60E5646E7F68709E1F64F0047015
Binary files differ
diff --git a/moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/8CD36328422F54743278BB76F9DD7FAAE557D210/331BFEF7026D55047D598FBDA972CC3F9D8041E5 b/moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/8CD36328422F54743278BB76F9DD7FAAE557D210/331BFEF7026D55047D598FBDA972CC3F9D8041E5
new file mode 100644
index 0000000..e474a29
--- /dev/null
+++ b/moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/8CD36328422F54743278BB76F9DD7FAAE557D210/331BFEF7026D55047D598FBDA972CC3F9D8041E5
Binary files differ
diff --git a/moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/9409AFCBA61A245B282454479DDDE29B6217A556/9A20C2822F95DE158B29E506B2157D78A3CDB75C b/moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/9409AFCBA61A245B282454479DDDE29B6217A556/9A20C2822F95DE158B29E506B2157D78A3CDB75C
new file mode 100644
index 0000000..71362c8
--- /dev/null
+++ b/moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/9409AFCBA61A245B282454479DDDE29B6217A556/9A20C2822F95DE158B29E506B2157D78A3CDB75C
Binary files differ
diff --git a/moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/98D2B978D778380F4C30E4E5366EB215343CE4F2/F423F8BEC4CBF98927C732714A304BA34DE3C5AE b/moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/98D2B978D778380F4C30E4E5366EB215343CE4F2/F423F8BEC4CBF98927C732714A304BA34DE3C5AE
new file mode 100644
index 0000000..e9a53ce
--- /dev/null
+++ b/moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/98D2B978D778380F4C30E4E5366EB215343CE4F2/F423F8BEC4CBF98927C732714A304BA34DE3C5AE
Binary files differ
diff --git a/moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/A9C754E04514EAAA09DC85152E9FD8A4E89E3F45/69A38477FC9C5F812E0E88E67735C12F69602377 b/moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/A9C754E04514EAAA09DC85152E9FD8A4E89E3F45/69A38477FC9C5F812E0E88E67735C12F69602377
new file mode 100644
index 0000000..24ebf79
--- /dev/null
+++ b/moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/A9C754E04514EAAA09DC85152E9FD8A4E89E3F45/69A38477FC9C5F812E0E88E67735C12F69602377
Binary files differ
diff --git a/moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/C07A5164FD92ED657F0C6C4438C4DB5B9117B883/8531AD85A7CB5516FED795D8325986FD82FE98E0 b/moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/C07A5164FD92ED657F0C6C4438C4DB5B9117B883/8531AD85A7CB5516FED795D8325986FD82FE98E0
new file mode 100644
index 0000000..c81dc3e
--- /dev/null
+++ b/moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/C07A5164FD92ED657F0C6C4438C4DB5B9117B883/8531AD85A7CB5516FED795D8325986FD82FE98E0
Binary files differ
diff --git a/moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/D06A9023994E632D57CF1C2460A90EE7E8BBB5E6/3AD24AB47E4B2DAD91D5BD129145FAF0C053A1DA b/moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/D06A9023994E632D57CF1C2460A90EE7E8BBB5E6/3AD24AB47E4B2DAD91D5BD129145FAF0C053A1DA
new file mode 100644
index 0000000..ad45d93
--- /dev/null
+++ b/moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/D06A9023994E632D57CF1C2460A90EE7E8BBB5E6/3AD24AB47E4B2DAD91D5BD129145FAF0C053A1DA
Binary files differ
diff --git a/moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/D50524F8CC985C4A111AD086841D5CF9BCC7F63E/93225ADA3FCD432C5F302CA7440DB0F980B9668B b/moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/D50524F8CC985C4A111AD086841D5CF9BCC7F63E/93225ADA3FCD432C5F302CA7440DB0F980B9668B
new file mode 100644
index 0000000..a35fee6
--- /dev/null
+++ b/moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/D50524F8CC985C4A111AD086841D5CF9BCC7F63E/93225ADA3FCD432C5F302CA7440DB0F980B9668B
Binary files differ
diff --git a/moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/DCB8E79C2096D0CE6C933CF1B7A2411519DEF0B2/3EB139B27E8FD94A7B7D89FA757A0706B0CD51FA b/moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/DCB8E79C2096D0CE6C933CF1B7A2411519DEF0B2/3EB139B27E8FD94A7B7D89FA757A0706B0CD51FA
new file mode 100644
index 0000000..87d63fd
--- /dev/null
+++ b/moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/DCB8E79C2096D0CE6C933CF1B7A2411519DEF0B2/3EB139B27E8FD94A7B7D89FA757A0706B0CD51FA
Binary files differ
diff --git a/moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/DDA6D1D1E74E051B0D89AE947D05AB35D3C52CBD/7572381D144FC8496A746D34F566815EF8148AED b/moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/DDA6D1D1E74E051B0D89AE947D05AB35D3C52CBD/7572381D144FC8496A746D34F566815EF8148AED
new file mode 100644
index 0000000..bd3c346
--- /dev/null
+++ b/moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/DDA6D1D1E74E051B0D89AE947D05AB35D3C52CBD/7572381D144FC8496A746D34F566815EF8148AED
Binary files differ
diff --git a/moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/E41B26A867E953250BFCA26A7794859002F7F9EB/178DBD4090CCAACFE9A160B06F183D5DBB74C438 b/moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/E41B26A867E953250BFCA26A7794859002F7F9EB/178DBD4090CCAACFE9A160B06F183D5DBB74C438
new file mode 100644
index 0000000..1943488
--- /dev/null
+++ b/moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/E41B26A867E953250BFCA26A7794859002F7F9EB/178DBD4090CCAACFE9A160B06F183D5DBB74C438
Binary files differ
diff --git a/moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/F3B27E0E2A5AA134D6238978A1F45B90AF09B8AB/02A0EBBB29B549A607C1D7F771BE8BE65C6C4DCB b/moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/F3B27E0E2A5AA134D6238978A1F45B90AF09B8AB/02A0EBBB29B549A607C1D7F771BE8BE65C6C4DCB
new file mode 100644
index 0000000..757d2c5
--- /dev/null
+++ b/moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/F3B27E0E2A5AA134D6238978A1F45B90AF09B8AB/02A0EBBB29B549A607C1D7F771BE8BE65C6C4DCB
Binary files differ
diff --git a/moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/F7745D8A0CE129CF73F0CE358373BAC19015E41A/D9246F9517436B229280C95E162FFB95382C7C1E b/moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/F7745D8A0CE129CF73F0CE358373BAC19015E41A/D9246F9517436B229280C95E162FFB95382C7C1E
new file mode 100644
index 0000000..2ddb0a5
--- /dev/null
+++ b/moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/F7745D8A0CE129CF73F0CE358373BAC19015E41A/D9246F9517436B229280C95E162FFB95382C7C1E
Binary files differ
diff --git a/moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/FA804355FAE3B938C0E474F760736AD4B5543405/78D95F54B29E3E33BE9A8F124D6F208881D5A504 b/moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/FA804355FAE3B938C0E474F760736AD4B5543405/78D95F54B29E3E33BE9A8F124D6F208881D5A504
new file mode 100644
index 0000000..e16894d
--- /dev/null
+++ b/moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/FA804355FAE3B938C0E474F760736AD4B5543405/78D95F54B29E3E33BE9A8F124D6F208881D5A504
Binary files differ
diff --git a/moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/FF9B7634A51FBA99BFB244CCE6059F4E31D52ED3/D6E9CB5D169E962F1804CDC30798A184FFFFCCB0 b/moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/FF9B7634A51FBA99BFB244CCE6059F4E31D52ED3/D6E9CB5D169E962F1804CDC30798A184FFFFCCB0
new file mode 100644
index 0000000..8c56c2d
--- /dev/null
+++ b/moaSig/moa-sig/src/test/resources/moaspss_config/certstore/subjectdn/FF9B7634A51FBA99BFB244CCE6059F4E31D52ED3/D6E9CB5D169E962F1804CDC30798A184FFFFCCB0
Binary files differ
diff --git a/moaSig/moa-sig/src/test/resources/moaspss_config/svaconfig.example b/moaSig/moa-sig/src/test/resources/moaspss_config/svaconfig.example
new file mode 100644
index 0000000..7be4541
--- /dev/null
+++ b/moaSig/moa-sig/src/test/resources/moaspss_config/svaconfig.example
@@ -0,0 +1,97 @@
+# Format [key]=[value]
+#
+# Note that if an '=' is used in a key or value it has to be escaped: "\="
+
+##################### WebConfig #######################
+
+#The path to the sva configuration file
+#svaconfig=/data/sigval/incoming/svaconfig
+
+#The directories where to store the collected testdata
+#testdir=/data/sigval/incoming/test/
+
+#The basepath for signature validation
+#basepath=/data/sigval/incoming
+
+######################################################
+
+#The path prefix for all file system locations
+pathprefix=/home/user/example/prefix
+
+#The file where the xmldsig core schema is located
+xmlschemaloc=schema/xmldsig-core-schema.xsd
+
+#The root folder where truststore and certstore are created later on
+certroot=certs/example
+
+#The folder containing the trustanchors
+trustanchorloc=certs/example/trustanchors
+
+#The folder containing the timestampauthority trustanchors
+tsttrustanchorloc=certs/example/tstanchor
+
+#The folder containing alternative revocation information (comment out to use
+#infos contained in the certificate)
+#altdp=certs/example/revocation
+
+#The maximum age of a revocation information of a end user certificate in hours
+endusercertgrace=4382
+
+#The maximum age of a revocation information for a ca certificate in hours
+cacertgrace=4382
+
+tstcoherencetolerance=10
+
+#The maximum time difference (in hours) the signing-time property and a
+#time stamp
+#timestampdelay=24
+
+# Defines the forbidden hashing algorithms and the inception date
+# Format: {<algorithm name>, <inception date>};{<algname 2>, <inc date 2>}...
+hashconstraint={md5, 2000-08-08};{sha1, 2013-08-08}
+
+# Defines the minimum required key lengths
+# Format: {<algorithm name>, <min len>,<inception date>};{...}...
+keylenconstraint={rsa, 1024, 2000-08-08}
+
+# Defines the minimum required key lengths for CA Certificates
+# Format: {<algorithm name>, <min len>,<inception date>};{...}...
+cakeylenconstraint={rsa,512,2000-08-08}
+
+# Defines the minimum required key lengths for timestamps
+# Format: {<algorithm name>, <min len>,<inception date>};{...}...
+tstkeylenconstraint={rsa, 1024, 2000-08-08}
+
+# Defines the mapping from sub indications to main indications.
+# If a sub indication1 is not present or empty, the default mappings are used.
+# See "Final draft ETSI EN 319 102-1 V1.1.0 (2016-02)"
+# Format: {<sub indication1>, <main indication1>};{...}...
+indicationmapping={FORMAT_FAILURE,INDETERMINATE};{NO_VALID_TIMESTAMPS_FOUND, INDETERMINATE}
+
+# Allows any key usage if set to true, otherwise only dig. signature
+allowanykeyusage=false
+
+# Defines the chaining model for path validation.
+# possible values are:
+# - All certificates are valid at validationtime (SHELL model). This is the default value.
+# - All certificates are valid at the time they were used for issuing a certificate or signing (CHAIN model).
+chainingmodel=shell
+
+# Defines if the validation of each timestap should be added to the validation report.
+# If set to true, the timestamp validation reports will be added. Default value is true.
+timestampreports=true
+
+# defines the bits which HAS TO be set in the key usage field of the
+# end users certificate. The valid bits (from RFC5280) to set are as follows:
+# (if omitted or empty it defaults to DIGITAL_SIGNATURE):
+# digitalSignature (0),
+# contentCommitment (1)
+# dataEncipherment (3),
+# keyAgreement (4),
+# keyCertSign (5),
+# cRLSign (6),
+# encipherOnly (7),
+# decipherOnly (8)
+
+# Format: {<index of bit to set>; ...}
+keyusage = {0, 1} \ No newline at end of file
diff --git a/moaSig/moa-sig/src/test/resources/moaspss_config/trustProfiles/testTSL/dummy_element b/moaSig/moa-sig/src/test/resources/moaspss_config/trustProfiles/testTSL/dummy_element
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/moaSig/moa-sig/src/test/resources/moaspss_config/trustProfiles/testTSL/dummy_element
diff --git a/moaSig/moa-sig/src/test/resources/moaspss_config/tslworking/trust/eu/EU_Test_TSL_2.crt b/moaSig/moa-sig/src/test/resources/moaspss_config/tslworking/trust/eu/EU_Test_TSL_2.crt
new file mode 100644
index 0000000..39a131a
--- /dev/null
+++ b/moaSig/moa-sig/src/test/resources/moaspss_config/tslworking/trust/eu/EU_Test_TSL_2.crt
@@ -0,0 +1,3 @@
+-----BEGIN CERTIFICATE-----
+MIIDRjCCAi6gAwIBAgIBATANBgkqhkiG9w0BAQ0FADBVMRQwEgYDVQQDDAtDRVJULUxPVEwtMjEYMBYGA1UECgwPRVUgT3JnYW5pemF0aW9uMRYwFAYDVQQLDA1DRVJUIEZPUiBURVNUMQswCQYDVQQGEwJMVTAeFw0yMDAzMjEwMDAwMDVaFw0yMjAzMjEwMDAwMDVaMFUxFDASBgNVBAMMC0NFUlQtTE9UTC0yMRgwFgYDVQQKDA9FVSBPcmdhbml6YXRpb24xFjAUBgNVBAsMDUNFUlQgRk9SIFRFU1QxCzAJBgNVBAYTAkxVMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA6V/iTD4gBfLio3JFGF9pD47TkScePPTdIDh195dmA3UsMmcNhgVrPVrSLfYB0Eu6v2gQgINtgGaKtjU8kBQNF6cWWYsdJAAHEUpT4+kCZhp2rI6UmjHC/mpQ/6KJn+qnR643iVh/Xp3ltE1K9t9Baywn6Ma++IJ2MH+vM3nZi4oq0z4tkb+SDPaK4tMh/oHVYvmYbRjalLxPdcB6VzXaulSYbgve69blv8t925PkS4kcy0tza/mynd3ooYK8IkxIBPfB1BcY4Gumu1rcdQFzjgvui2Tgxn/97POA4TYcgS9GgqzG13BLJ1HnfTYSoxTWKxH+881lgCTWMyrupfQX/wIDAQABoyEwHzAdBgNVHQ4EFgQUZWzzSbzdOPDusaGPd1EL8JS7nkEwDQYJKoZIhvcNAQENBQADggEBAN/enWkH/dMHHqKU6jTcLZx9fiyWIyd50U5hhg6q6QXk965xDYl4pEUu7il7vcIAUGhGejTZL8eRbXDTEarkmPfDv5Z347c6JKhGsj9ofhfiZ/kjz4T4yrKVQYg5fwAykSYCYqsANjTUBULGKOJZb8wqcxGQARhOxohblrtzLRBZ1IAAut3CZ3wBiTcxTpSP+sxYWG/dJ/OSZ0QIeiz4s65jdWaWfxU4Gw2KljtZ0fHYE9/9mUIl3TjZPPWept0562b1K6WYjwe0B5tAfA0ZYx4SsVDig8SSmzEe0LhTTKfxOu+vJcQVCx3Sodp4BJPKtjXtNxEOmYdwbOVGkEtNKQM=
+-----END CERTIFICATE-----
diff --git a/moaSig/moa-sig/src/test/resources/moaspss_config/tslworking/trust/eu/EU_Test_TSL_3.crt b/moaSig/moa-sig/src/test/resources/moaspss_config/tslworking/trust/eu/EU_Test_TSL_3.crt
new file mode 100644
index 0000000..c7ae734
--- /dev/null
+++ b/moaSig/moa-sig/src/test/resources/moaspss_config/tslworking/trust/eu/EU_Test_TSL_3.crt
@@ -0,0 +1,3 @@
+-----BEGIN CERTIFICATE-----
+MIIDRjCCAi6gAwIBAgIBATANBgkqhkiG9w0BAQ0FADBVMRQwEgYDVQQDDAtDRVJULUxPVEwtMzEYMBYGA1UECgwPRVUgT3JnYW5pemF0aW9uMRYwFAYDVQQLDA1DRVJUIEZPUiBURVNUMQswCQYDVQQGEwJMVTAeFw0yMDAzMjEwMDAwMDBaFw0yMjAzMjEwMDAwMDBaMFUxFDASBgNVBAMMC0NFUlQtTE9UTC0zMRgwFgYDVQQKDA9FVSBPcmdhbml6YXRpb24xFjAUBgNVBAsMDUNFUlQgRk9SIFRFU1QxCzAJBgNVBAYTAkxVMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEApLR3+WBUvXzj6gAYVDtgnYPGwQEp1PbpveQcy+9MfLaJTHS+5PW7529PsEMZbfZjPmSrsuzlxNNWy5KcS4NAtwDV2BlAGSjUlu6g+N7gJH0J68YMoGX6H2LzjWy5p+1bxDzxSSH+I4JJgtQdRrYqNWzmVLm8nwFG8fkPwparpoNtQje7Y6R4lULc+tnIoqEW8AsUt/Qy400TccXpIKiWnf7ex+jfpwPF/YsXdbqXHuqdDYZcr17Q2axxFZNU0GchsiT4yYZXlwc+o8Gn6jy+PLn5Vn1lgRvvBFbhxH5+7b/FVpIvwTQi7to8czZ3PozAsCZ6xctwv3uT5qr8y4wtkwIDAQABoyEwHzAdBgNVHQ4EFgQUcMm1a+dmaMswvpdh2SUah+JobOQwDQYJKoZIhvcNAQENBQADggEBABq6a88b4/CeSIdEt3gmlvSBWiXn2s1U5hVQUnjqMX8drxxXuoqJ60fgUEdxmwMX7KxH5LsxlciHg3zfLKLAtpc75P2sQEmobJJ5VfnZfiCUjI8A84yNZQ4R4EAvUtq443fthcORW4RalWtE7hOmXZcew1ysqVkTC4HKnDlA+CENh3MK3pXkjE5GaNy7qAxOgQMZc25xOSbryze6EA83fUzQYion1IO29moBywWTRd+RkHQNtgxVwYTflMFSq4EyluPDluqCfhibLU1cVIEl4J3AT34S5/X4xdRjjY966t8rnIwCWVZIoO5RuMfHe/11CPrskkrGS3MHGNxrEpKzHm8=
+-----END CERTIFICATE-----
diff --git a/moaSig/moa-sig/src/test/resources/moaspss_config/tslworking/trust/eu/current_20180206_EU_TLS_CERT.crt b/moaSig/moa-sig/src/test/resources/moaspss_config/tslworking/trust/eu/current_20180206_EU_TLS_CERT.crt
new file mode 100644
index 0000000..5b64d9a
--- /dev/null
+++ b/moaSig/moa-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aWOJak9mpRhvvlH9+sdIjNvGO46BCNykUPu4Mdgi0Zq5rsoCJUp5EpUWrAmdM5yMufMMKXqW8XHqU0KsTGyBcIkoElmhvtCQBBTfE5vh7yOS6hYpzTop9fLTJ+uQJI14DTOu+iVSmw5Oh8AYTPKh5wzKkEWTiq5Z0KiwmmOIxo8T9Ytlhsae/7aO1nC3WxFKaqWAFQx5UPIs4bQ0rRW39n1T6PovJxkKTPEW6TPmYrYjR2DYlsSnIbR9ebHUbRB/v/o9Pvqx6dArlpVuhDWWDjuAT1bW3ej+/jIJGyQtwKqL9fnDcmuUqzoBa9fXJuB1e8m3+tI1H5e9F/JH3kdkPsrV9DMS13+MYIeQJgAK3ofJcuKCKYQ5uUEZaU2CKiR6TzvzzGqQ==
+-----END CERTIFICATE-----
diff --git a/moaSig/moa-sig/src/test/resources/testdata/tsl_tests/LOTL-2.xml b/moaSig/moa-sig/src/test/resources/testdata/tsl_tests/LOTL-2.xml
new file mode 100644
index 0000000..3b6f289
--- /dev/null
+++ b/moaSig/moa-sig/src/test/resources/testdata/tsl_tests/LOTL-2.xml
@@ -0,0 +1,175 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?><TrustServiceStatusList xmlns="http://uri.etsi.org/02231/v2#" xmlns:ns2="http://www.w3.org/2000/09/xmldsig#" xmlns:ns3="http://uri.etsi.org/02231/v2/additionaltypes#" xmlns:ns4="http://uri.etsi.org/01903/v1.3.2#" xmlns:ns5="http://uri.etsi.org/TrstSvc/SvcInfoExt/eSigDir-1999-93-EC-TrustedList/#" xmlns:ns6="http://uri.etsi.org/01903/v1.4.1#" Id="LOTL1235" TSLTag="http://uri.etsi.org/19612/TSLTag">
+ <SchemeInformation>
+ <TSLVersionIdentifier>5</TSLVersionIdentifier>
+ <TSLSequenceNumber>1</TSLSequenceNumber>
+ <TSLType>http://uri.etsi.org/TrstSvc/TrustedList/TSLType/EUlistofthelists</TSLType>
+ <SchemeOperatorName>
+ <Name xml:lang="en">EU Operator name</Name>
+ </SchemeOperatorName>
+ <SchemeOperatorAddress>
+ <PostalAddresses>
+ <PostalAddress xml:lang="en">
+ <StreetAddress>TEST</StreetAddress>
+ <Locality>TEST</Locality>
+ <PostalCode>TEST</PostalCode>
+ <CountryName>EU</CountryName>
+ </PostalAddress>
+ </PostalAddresses>
+ <ElectronicAddress>
+ <URI xml:lang="en">mailto:test@test.test</URI>
+ </ElectronicAddress>
+ </SchemeOperatorAddress>
+ <SchemeName>
+ <Name xml:lang="en">EU: TEST</Name>
+ </SchemeName>
+ <SchemeInformationURI>
+ <URI xml:lang="en">https://eur-lex.europa.eu/legal-content/EN/TXT/?uri=uriserv:OJ.C_.2019.276.01.0001.01.ENG</URI>
+ <URI xml:lang="en">https://ec.europa.eu/tools/lotl/eu-lotl-legalnotice.html#en</URI>
+ </SchemeInformationURI>
+ <StatusDeterminationApproach>http://uri.etsi.org/TrstSvc/TrustedList/StatusDetn/EUlistofthelists</StatusDeterminationApproach>
+ <SchemeTypeCommunityRules>
+ <URI xml:lang="en">http://uri.etsi.org/TrstSvc/TrustedList/schemerules/EUlistofthelists</URI>
+ </SchemeTypeCommunityRules>
+ <SchemeTerritory>EU</SchemeTerritory>
+ <PolicyOrLegalNotice>
+ <TSLLegalNotice xml:lang="en">TEST</TSLLegalNotice>
+ </PolicyOrLegalNotice>
+ <HistoricalInformationPeriod>65535</HistoricalInformationPeriod>
+ <PointersToOtherTSL>
+ <OtherTSLPointer>
+ <ServiceDigitalIdentities>
+ <ServiceDigitalIdentity>
+ <DigitalId>
+ <X509Certificate>MIIDRjCCAi6gAwIBAgIBATANBgkqhkiG9w0BAQ0FADBVMRQwEgYDVQQDDAtDRVJULUxPVEwtMjEYMBYGA1UECgwPRVUgT3JnYW5pemF0aW9uMRYwFAYDVQQLDA1DRVJUIEZPUiBURVNUMQswCQYDVQQGEwJMVTAeFw0yMDAzMjEwMDAwMDVaFw0yMjAzMjEwMDAwMDVaMFUxFDASBgNVBAMMC0NFUlQtTE9UTC0yMRgwFgYDVQQKDA9FVSBPcmdhbml6YXRpb24xFjAUBgNVBAsMDUNFUlQgRk9SIFRFU1QxCzAJBgNVBAYTAkxVMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA6V/iTD4gBfLio3JFGF9pD47TkScePPTdIDh195dmA3UsMmcNhgVrPVrSLfYB0Eu6v2gQgINtgGaKtjU8kBQNF6cWWYsdJAAHEUpT4+kCZhp2rI6UmjHC/mpQ/6KJn+qnR643iVh/Xp3ltE1K9t9Baywn6Ma++IJ2MH+vM3nZi4oq0z4tkb+SDPaK4tMh/oHVYvmYbRjalLxPdcB6VzXaulSYbgve69blv8t925PkS4kcy0tza/mynd3ooYK8IkxIBPfB1BcY4Gumu1rcdQFzjgvui2Tgxn/97POA4TYcgS9GgqzG13BLJ1HnfTYSoxTWKxH+881lgCTWMyrupfQX/wIDAQABoyEwHzAdBgNVHQ4EFgQUZWzzSbzdOPDusaGPd1EL8JS7nkEwDQYJKoZIhvcNAQENBQADggEBAN/enWkH/dMHHqKU6jTcLZx9fiyWIyd50U5hhg6q6QXk965xDYl4pEUu7il7vcIAUGhGejTZL8eRbXDTEarkmPfDv5Z347c6JKhGsj9ofhfiZ/kjz4T4yrKVQYg5fwAykSYCYqsANjTUBULGKOJZb8wqcxGQARhOxohblrtzLRBZ1IAAut3CZ3wBiTcxTpSP+sxYWG/dJ/OSZ0QIeiz4s65jdWaWfxU4Gw2KljtZ0fHYE9/9mUIl3TjZPPWept0562b1K6WYjwe0B5tAfA0ZYx4SsVDig8SSmzEe0LhTTKfxOu+vJcQVCx3Sodp4BJPKtjXtNxEOmYdwbOVGkEtNKQM=</X509Certificate>
+ </DigitalId>
+ </ServiceDigitalIdentity>
+ </ServiceDigitalIdentities>
+ <TSLLocation>https://esignature.ec.europa.eu/efda/validation-tests/testcase/tl/LOTL-2.xml</TSLLocation>
+ <AdditionalInformation>
+ <OtherInformation>
+ <SchemeTerritory>EU</SchemeTerritory>
+ </OtherInformation>
+ <OtherInformation>
+ <TSLType>http://uri.etsi.org/TrstSvc/TrustedList/TSLType/EUlistofthelists</TSLType>
+ </OtherInformation>
+ <OtherInformation>
+ <SchemeOperatorName>
+ <Name xml:lang="en">EU Operator name</Name>
+ </SchemeOperatorName>
+ </OtherInformation>
+ <OtherInformation>
+ <ns3:MimeType>application/vnd.etsi.tsl+xml</ns3:MimeType>
+ </OtherInformation>
+ </AdditionalInformation>
+ </OtherTSLPointer>
+ <OtherTSLPointer>
+ <ServiceDigitalIdentities>
+ <ServiceDigitalIdentity>
+ <DigitalId>
+ <X509Certificate>MIIDSDCCAjCgAwIBAgIBATANBgkqhkiG9w0BAQ0FADBWMRMwEQYDVQQDDApDRVJULVRMLTIxMRowGAYDVQQKDBFUTDIxIE9yZ2FuaXphdGlvbjEWMBQGA1UECwwNQ0VSVCBGT1IgVEVTVDELMAkGA1UEBhMCTFUwHhcNMjAwMzIxMDAwMDA1WhcNMjIwMzIxMDAwMDA1WjBWMRMwEQYDVQQDDApDRVJULVRMLTIxMRowGAYDVQQKDBFUTDIxIE9yZ2FuaXphdGlvbjEWMBQGA1UECwwNQ0VSVCBGT1IgVEVTVDELMAkGA1UEBhMCTFUwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDE1KquL+p6wJ+Z3KeCBYX2+m8xFvv4SVyOVJiuPHAtTxCtGOE11teSe93xrfEILRWx1e3McquUf4buOz/HEpbBqPYaaL+XAUKFDAq1UUERUAraqmliDF5wLQDrNRyORH3z5Q6Byx71Q+R65wKVOJxvRAVwxXrlNVS03cwsCkVm2t2lGNc+cwI6RsOs8e5nksRK35mZe9fzis2vhyqzE7EOJQ4oUpu9Ty48CIMHapz68nBvTy6b9fdGk3XhnUI1Xfwe3T//BaotYsfMuYCDkNJdBdQg72COeixGVX8sz/e1abbG4OykHbZfEDHA2xA+G9x2WNeLiA76Tsg2FBtfb+KpAgMBAAGjITAfMB0GA1UdDgQWBBS85AQ1/BGS/JeyjBRN0Why613miDANBgkqhkiG9w0BAQ0FAAOCAQEACyU7qhZQIGoAsSr6RXceF3j0/D9CRWIJ4a/u2G8q8QSdix68j89P9DPZFm1mTHVMpuqDAzRirWEnDkXjtgUKYMqk1BLTgxTDHuTcLDt3Rq2abaHBvqVbFrVvdg+bgnKOXR9xwjZLDFZ+NizU+9y9y9u31mzxPzVGuweSKX40tp8d0TDZNwZ7pfrUhJTxazUT45yUhJLamY5vtixS364IJ4wZnMGUg+pAeIZgcrELCJd2dt1mngOGGWC5BtT6Xf5nDOqcS2f1X1OK6al7dVWYbEMyjNC+OghnY3h/CqzlbcZmbvoCVwYZ32NzBSHzKBaS9ONlPbc+FT071uNNKBj5jA==</X509Certificate>
+ </DigitalId>
+ </ServiceDigitalIdentity>
+ </ServiceDigitalIdentities>
+ <TSLLocation>https://esignature.ec.europa.eu/efda/validation-tests/testcase/tl/TL-21.xml</TSLLocation>
+ <AdditionalInformation>
+ <OtherInformation>
+ <SchemeTerritory>LU</SchemeTerritory>
+ </OtherInformation>
+ <OtherInformation>
+ <TSLType>http://uri.etsi.org/TrstSvc/TrustedList/TSLType/EUgeneric</TSLType>
+ </OtherInformation>
+ <OtherInformation>
+ <SchemeOperatorName>
+ <Name xml:lang="en">LU Operator name</Name>
+ </SchemeOperatorName>
+ </OtherInformation>
+ <OtherInformation>
+ <ns3:MimeType>application/vnd.etsi.tsl+xml</ns3:MimeType>
+ </OtherInformation>
+ </AdditionalInformation>
+ </OtherTSLPointer>
+ <OtherTSLPointer>
+ <ServiceDigitalIdentities>
+ <ServiceDigitalIdentity>
+ <DigitalId>
+ <X509Certificate>MIIDSDCCAjCgAwIBAgIBATANBgkqhkiG9w0BAQ0FADBWMRMwEQYDVQQDDApDRVJULVRMLTIyMRowGAYDVQQKDBFUTDIyIE9yZ2FuaXphdGlvbjEWMBQGA1UECwwNQ0VSVCBGT1IgVEVTVDELMAkGA1UEBhMCRlIwHhcNMjAwMzIxMDAwMDA2WhcNMjIwMzIxMDAwMDA2WjBWMRMwEQYDVQQDDApDRVJULVRMLTIyMRowGAYDVQQKDBFUTDIyIE9yZ2FuaXphdGlvbjEWMBQGA1UECwwNQ0VSVCBGT1IgVEVTVDELMAkGA1UEBhMCRlIwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCm7MHUbbbauLTKOCs+JrXbEB/lgIU0La1uJLI+ngBh+lLK70Wg5Dv3dVvg72FSNf0yVStoRTg6Ht7sklLHdxHXHmkyoyfZbhXqljEpoiXhLoledA54aSGFuVBXzsKevctz+zcIWM0BfPZNCxKkSPfNWeZUHGbCru6eceG5j/Zd6ZSjsdgErlO/qR/9CHiPNlxsDjP6or8cBtkhMqHEx5gnsJMqHBXqJCqmcnkR14Ca/y/PneYsGWv5OEJto2zIwIIjlSVzsk9ZyZqZuqG/lnRLm8hkSATOoOusywNA+B80bOF6FYvIgJzuLYt63/V0Q8UdrkGRRaeMxZTt+dGECv4NAgMBAAGjITAfMB0GA1UdDgQWBBSdW+uMbEE9g+mBMTPv15M4Pbjn/TANBgkqhkiG9w0BAQ0FAAOCAQEAm08L80/xCKEgHYzKdUAuK7kRr9obtIV1kzwkbmpXzDqbvnta1Nh7EfsgYNjGE8rpZ+yz936cSaMCCiAVXloUxgvWIqy8JPx7Qm0EsbqzWbu2bnoc1WgMdG1UxV4gz2873lQwCpycsy6l3CaNk3FveeSpRAhxiw8nZxOplJpksZyZzVooj7UEh4SdhSOEpGTqQ4MgQh2QPVWLmT8lOklURLKc2XFuTIIrBwO9zCu824ixndS9t46f0mLBRv5QphK1Pd60p2yCJrMfyT14vCjaFpdCSItJktdyzagmNQeQbYGL2HY4s6Jl3cMogkGbPWy1Tdf1jFC+xkMx0lXwT7u5RA==</X509Certificate>
+ </DigitalId>
+ </ServiceDigitalIdentity>
+ </ServiceDigitalIdentities>
+ <TSLLocation>https://esignature.ec.europa.eu/efda/validation-tests/testcase/tl/TL-22.xml</TSLLocation>
+ <AdditionalInformation>
+ <OtherInformation>
+ <SchemeTerritory>FR</SchemeTerritory>
+ </OtherInformation>
+ <OtherInformation>
+ <TSLType>http://uri.etsi.org/TrstSvc/TrustedList/TSLType/EUgeneric</TSLType>
+ </OtherInformation>
+ <OtherInformation>
+ <SchemeOperatorName>
+ <Name xml:lang="en">FR Operator name</Name>
+ </SchemeOperatorName>
+ </OtherInformation>
+ <OtherInformation>
+ <ns3:MimeType>application/vnd.etsi.tsl+xml</ns3:MimeType>
+ </OtherInformation>
+ </AdditionalInformation>
+ </OtherTSLPointer>
+ <OtherTSLPointer>
+ <ServiceDigitalIdentities>
+ <ServiceDigitalIdentity>
+ <DigitalId>
+ <X509Certificate>MIIDSDCCAjCgAwIBAgIBATANBgkqhkiG9w0BAQ0FADBWMRMwEQYDVQQDDApDRVJULVRMLTIzMRowGAYDVQQKDBFUTDIzIE9yZ2FuaXphdGlvbjEWMBQGA1UECwwNQ0VSVCBGT1IgVEVTVDELMAkGA1UEBhMCQkUwHhcNMTYwMzIxMDAwMDEwWhcNMjYwMzIxMDAwMDEwWjBWMRMwEQYDVQQDDApDRVJULVRMLTIzMRowGAYDVQQKDBFUTDIzIE9yZ2FuaXphdGlvbjEWMBQGA1UECwwNQ0VSVCBGT1IgVEVTVDELMAkGA1UEBhMCQkUwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDAA6Glydw6cAZbzk8sAqnfOFKxzhT7C4ydXtQEDj4dpQ+hREAByaWsu8QF3oB984IQw7sdYshYhPvmJiMx6V6s+Hz89OJRxQo0floqjvXwpgLJep/dbyiJqGeAAEJtqT4uNMd6m68LWsdgxa79ZvP9sRZj+vEenbw92zg7vHJZx6wbhIvSDQ7bfFVOahR+/aiEHkDsirgowTRscDwRUH2YVG67T5CG9J3a8MMlFM8GfG7SnztPxrKQnkP+vHb6RDGp5q7ILtRwxwTSHda+C7jrH5Owm/yR9HVQYpT7dkrFE++ZcwT2yeMVJ3sEnrQOdtrPnVJQGJeRq7jLAnyQI9xtAgMBAAGjITAfMB0GA1UdDgQWBBSwqPMIrUN+sMjg57NW+VSvCtU2mjANBgkqhkiG9w0BAQ0FAAOCAQEAHQ1iFmdFaL91KQscdyZThMJuOQ/CMYlw8/LCpQSCgDHOBliLdDAL+SigozvzKBNgZBKs3G3JBfiy6JQPHRF/Gw1XzG57+inr8DjkvdNavpJDZZyO9IUHKzsLS3MyFu6T/q4S++MJGuzK/rUVGjXHXB/3M/UU/NyCD+qEj9SFvWbT6EDWOAHjGJlEEDtjUWzux0KuTQkEeAwMrNOkP1HOVdFncLMwNpcZlfReKT9Sck49Minq6sK7yyBxL/O17mgA56ghqmacifcclQJg6Y5chcInR1uX2vyeJ2EHYLvqmTxL28Iiw2fqEHAYG7yaUW5YqB4QHGXOAgI78pukjkFpYg==</X509Certificate>
+ </DigitalId>
+ </ServiceDigitalIdentity>
+ </ServiceDigitalIdentities>
+ <TSLLocation>https://esignature.ec.europa.eu/efda/validation-tests/testcase/tl/TL-23.xml</TSLLocation>
+ <AdditionalInformation>
+ <OtherInformation>
+ <SchemeTerritory>BE</SchemeTerritory>
+ </OtherInformation>
+ <OtherInformation>
+ <TSLType>http://uri.etsi.org/TrstSvc/TrustedList/TSLType/EUgeneric</TSLType>
+ </OtherInformation>
+ <OtherInformation>
+ <SchemeOperatorName>
+ <Name xml:lang="en">BE Operator name</Name>
+ </SchemeOperatorName>
+ </OtherInformation>
+ <OtherInformation>
+ <ns3:MimeType>application/vnd.etsi.tsl+xml</ns3:MimeType>
+ </OtherInformation>
+ </AdditionalInformation>
+ </OtherTSLPointer>
+ <OtherTSLPointer>
+ <ServiceDigitalIdentities>
+ <ServiceDigitalIdentity>
+ <DigitalId>
+ <X509Certificate>MIIDSDCCAjCgAwIBAgIBATANBgkqhkiG9w0BAQ0FADBWMRMwEQYDVQQDDApDRVJULVRMLTI0MRowGAYDVQQKDBFUTDI0IE9yZ2FuaXphdGlvbjEWMBQGA1UECwwNQ0VSVCBGT1IgVEVTVDELMAkGA1UEBhMCREUwHhcNMjAwMzIxMDAwMDIyWhcNMjIwMzIxMDAwMDIyWjBWMRMwEQYDVQQDDApDRVJULVRMLTI0MRowGAYDVQQKDBFUTDI0IE9yZ2FuaXphdGlvbjEWMBQGA1UECwwNQ0VSVCBGT1IgVEVTVDELMAkGA1UEBhMCREUwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCtf9+fZ6K2FbGyM4rBhCG0Hiye0l7kz505EnjVYr7+uNp+58JJD6dUVpg2HFiq+bbSTZr1wahylgYSUrwhL8rwE9zHvIU/6MdQGYe7s0K61O9rFBrc8eUtjW0an1SHNuu4fm751aeVebYZ1CVQUfOOwv88dx72xYZbug9hM9kHL3laJckMQAO4ck39MMLdDbsQRfmu/ISJFGNaeGdD6lC6fFbtJ5buiw6rqpEFmArb+gSfNZVZ1NN8YiWkfNtpHouId8QlFJCVZ6hc0Egz0jN/3ASP2SGyCmidrHNtpfdVoLzyvD/QZAHxGHHPy1/FMRyYh2tbpf/gkojOKCSSKEMBAgMBAAGjITAfMB0GA1UdDgQWBBQUypK0P7fA2GbjVnRsw7gQuifwbDANBgkqhkiG9w0BAQ0FAAOCAQEAeAkGGPrLeoenhiWXRWFV/+itrPgkS9Fp08kDcaIxwKCsoI8ycub6IF5DFJWahG/bGeYy1dOArEv70tLquw+UixKXqISwSnQEx6bkQvOsMG4Q+ccnTPBhhYlA3u7gaGMuG+9R6Sw8Lu3PWCK36hYY401mBMovX+J9aXDNMZi3u0Tk4Gczl0b1NDMJpR/ShAxhSf1aJfN9iOhW53Dhss+6qikh8yXBVHucxRUKQu77GXHdud1mylvf0gVbnpLFTvIEWy2QoAzdKAnFxbUnxIIWQT79XcUbGHXqA9xPdoCy8N2RRps8LJrQgDf485S699XzIxnBU6faBkXviQ2AbAGebw==</X509Certificate>
+ </DigitalId>
+ </ServiceDigitalIdentity>
+ </ServiceDigitalIdentities>
+ <TSLLocation>https://esignature.ec.europa.eu/efda/validation-tests/testcase/tl/TL-24.xml</TSLLocation>
+ <AdditionalInformation>
+ <OtherInformation>
+ <SchemeTerritory>DE</SchemeTerritory>
+ </OtherInformation>
+ <OtherInformation>
+ <TSLType>http://uri.etsi.org/TrstSvc/TrustedList/TSLType/EUgeneric</TSLType>
+ </OtherInformation>
+ <OtherInformation>
+ <SchemeOperatorName>
+ <Name xml:lang="en">DE Operator name</Name>
+ </SchemeOperatorName>
+ </OtherInformation>
+ <OtherInformation>
+ <ns3:MimeType>application/vnd.etsi.tsl+xml</ns3:MimeType>
+ </OtherInformation>
+ </AdditionalInformation>
+ </OtherTSLPointer>
+ </PointersToOtherTSL>
+ <ListIssueDateTime>2021-03-20T00:00:00Z</ListIssueDateTime>
+ <NextUpdate>
+ <dateTime>2021-04-20T23:00:00Z</dateTime>
+ </NextUpdate>
+ </SchemeInformation>
+<ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#" Id="id-1c1152593283b314694039bf9a3aadf1"><ds:SignedInfo><ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/><ds:SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"/><ds:Reference Id="xml_ref_id" URI=""><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature"/><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>KkFw1zEZzHwo2mMZr+wwU92v7y3S6UJvaMew4XzT9P8=</ds:DigestValue></ds:Reference><ds:Reference Type="http://uri.etsi.org/01903#SignedProperties" URI="#xades-id-1c1152593283b314694039bf9a3aadf1"><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>BxwunpVE9tEoERdJccXCpglCHssZmpJxzdAOau8qEjc=</ds:DigestValue></ds:Reference></ds:SignedInfo><ds:SignatureValue Id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S9GgqzG13BLJ1HnfTYSoxTWKxH+881lgCTWMyrupfQX/wIDAQABoyEwHzAdBgNVHQ4EFgQUZWzzSbzdOPDusaGPd1EL8JS7nkEwDQYJKoZIhvcNAQENBQADggEBAN/enWkH/dMHHqKU6jTcLZx9fiyWIyd50U5hhg6q6QXk965xDYl4pEUu7il7vcIAUGhGejTZL8eRbXDTEarkmPfDv5Z347c6JKhGsj9ofhfiZ/kjz4T4yrKVQYg5fwAykSYCYqsANjTUBULGKOJZb8wqcxGQARhOxohblrtzLRBZ1IAAut3CZ3wBiTcxTpSP+sxYWG/dJ/OSZ0QIeiz4s65jdWaWfxU4Gw2KljtZ0fHYE9/9mUIl3TjZPPWept0562b1K6WYjwe0B5tAfA0ZYx4SsVDig8SSmzEe0LhTTKfxOu+vJcQVCx3Sodp4BJPKtjXtNxEOmYdwbOVGkEtNKQM=</ds:X509Certificate></ds:X509Data></ds:KeyInfo><ds:Object><xades:QualifyingProperties xmlns:xades="http://uri.etsi.org/01903/v1.3.2#" Target="#id-1c1152593283b314694039bf9a3aadf1"><xades:SignedProperties Id="xades-id-1c1152593283b314694039bf9a3aadf1"><xades:SignedSignatureProperties><xades:SigningTime>2021-03-21T00:00:50Z</xades:SigningTime><xades:SigningCertificate><xades:Cert><xades:CertDigest><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha512"/><ds:DigestValue>MoVQlz/O3XnyhAFuJa7vV4Wy0ykadVm1FVMV1aXgHLKC8L31t5wrz4o06MHGrc9T0Sy5wShkF8hAhZNBBIiSgQ==</ds:DigestValue></xades:CertDigest><xades:IssuerSerial><ds:X509IssuerName>C=LU,OU=CERT FOR TEST,O=EU Organization,CN=CERT-LOTL-2</ds:X509IssuerName><ds:X509SerialNumber>1</ds:X509SerialNumber></xades:IssuerSerial></xades:Cert></xades:SigningCertificate></xades:SignedSignatureProperties><xades:SignedDataObjectProperties><xades:DataObjectFormat ObjectReference="#xml_ref_id"><xades:MimeType>application/octet-stream</xades:MimeType></xades:DataObjectFormat></xades:SignedDataObjectProperties></xades:SignedProperties></xades:QualifyingProperties></ds:Object></ds:Signature></TrustServiceStatusList> \ No newline at end of file
diff --git a/moaSig/moa-sig/src/test/resources/testdata/tsl_tests/LOTL-2.zip b/moaSig/moa-sig/src/test/resources/testdata/tsl_tests/LOTL-2.zip
new file mode 100644
index 0000000..0ef7a38
--- /dev/null
+++ b/moaSig/moa-sig/src/test/resources/testdata/tsl_tests/LOTL-2.zip
Binary files differ
diff --git a/moaSig/moa-sig/src/test/resources/testdata/tsl_tests/LOTL-3.xml b/moaSig/moa-sig/src/test/resources/testdata/tsl_tests/LOTL-3.xml
new file mode 100644
index 0000000..81ee9b1
--- /dev/null
+++ b/moaSig/moa-sig/src/test/resources/testdata/tsl_tests/LOTL-3.xml
@@ -0,0 +1,227 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?><TrustServiceStatusList xmlns="http://uri.etsi.org/02231/v2#" xmlns:ns2="http://www.w3.org/2000/09/xmldsig#" xmlns:ns3="http://uri.etsi.org/02231/v2/additionaltypes#" xmlns:ns4="http://uri.etsi.org/01903/v1.3.2#" xmlns:ns5="http://uri.etsi.org/TrstSvc/SvcInfoExt/eSigDir-1999-93-EC-TrustedList/#" xmlns:ns6="http://uri.etsi.org/01903/v1.4.1#" Id="LOTL1235" TSLTag="http://uri.etsi.org/19612/TSLTag">
+ <SchemeInformation>
+ <TSLVersionIdentifier>5</TSLVersionIdentifier>
+ <TSLSequenceNumber>1</TSLSequenceNumber>
+ <TSLType>http://uri.etsi.org/TrstSvc/TrustedList/TSLType/EUlistofthelists</TSLType>
+ <SchemeOperatorName>
+ <Name xml:lang="en">EU Operator name</Name>
+ </SchemeOperatorName>
+ <SchemeOperatorAddress>
+ <PostalAddresses>
+ <PostalAddress xml:lang="en">
+ <StreetAddress>TEST</StreetAddress>
+ <Locality>TEST</Locality>
+ <PostalCode>TEST</PostalCode>
+ <CountryName>EU</CountryName>
+ </PostalAddress>
+ </PostalAddresses>
+ <ElectronicAddress>
+ <URI xml:lang="en">mailto:test@test.test</URI>
+ </ElectronicAddress>
+ </SchemeOperatorAddress>
+ <SchemeName>
+ <Name xml:lang="en">EU: TEST</Name>
+ </SchemeName>
+ <SchemeInformationURI>
+ <URI xml:lang="en">https://eur-lex.europa.eu/legal-content/EN/TXT/?uri=uriserv:OJ.C_.2019.276.01.0001.01.ENG</URI>
+ <URI xml:lang="en">https://ec.europa.eu/tools/lotl/eu-lotl-legalnotice.html#en</URI>
+ </SchemeInformationURI>
+ <StatusDeterminationApproach>http://uri.etsi.org/TrstSvc/TrustedList/StatusDetn/EUlistofthelists</StatusDeterminationApproach>
+ <SchemeTypeCommunityRules>
+ <URI xml:lang="en">http://uri.etsi.org/TrstSvc/TrustedList/schemerules/EUlistofthelists</URI>
+ </SchemeTypeCommunityRules>
+ <SchemeTerritory>EU</SchemeTerritory>
+ <PolicyOrLegalNotice>
+ <TSLLegalNotice xml:lang="en">TEST</TSLLegalNotice>
+ </PolicyOrLegalNotice>
+ <HistoricalInformationPeriod>65535</HistoricalInformationPeriod>
+ <PointersToOtherTSL>
+ <OtherTSLPointer>
+ <ServiceDigitalIdentities>
+ <ServiceDigitalIdentity>
+ <DigitalId>
+ <X509Certificate>MIIDRjCCAi6gAwIBAgIBATANBgkqhkiG9w0BAQ0FADBVMRQwEgYDVQQDDAtDRVJULUxPVEwtMzEYMBYGA1UECgwPRVUgT3JnYW5pemF0aW9uMRYwFAYDVQQLDA1DRVJUIEZPUiBURVNUMQswCQYDVQQGEwJMVTAeFw0yMDAzMjEwMDAwMDBaFw0yMjAzMjEwMDAwMDBaMFUxFDASBgNVBAMMC0NFUlQtTE9UTC0zMRgwFgYDVQQKDA9FVSBPcmdhbml6YXRpb24xFjAUBgNVBAsMDUNFUlQgRk9SIFRFU1QxCzAJBgNVBAYTAkxVMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEApLR3+WBUvXzj6gAYVDtgnYPGwQEp1PbpveQcy+9MfLaJTHS+5PW7529PsEMZbfZjPmSrsuzlxNNWy5KcS4NAtwDV2BlAGSjUlu6g+N7gJH0J68YMoGX6H2LzjWy5p+1bxDzxSSH+I4JJgtQdRrYqNWzmVLm8nwFG8fkPwparpoNtQje7Y6R4lULc+tnIoqEW8AsUt/Qy400TccXpIKiWnf7ex+jfpwPF/YsXdbqXHuqdDYZcr17Q2axxFZNU0GchsiT4yYZXlwc+o8Gn6jy+PLn5Vn1lgRvvBFbhxH5+7b/FVpIvwTQi7to8czZ3PozAsCZ6xctwv3uT5qr8y4wtkwIDAQABoyEwHzAdBgNVHQ4EFgQUcMm1a+dmaMswvpdh2SUah+JobOQwDQYJKoZIhvcNAQENBQADggEBABq6a88b4/CeSIdEt3gmlvSBWiXn2s1U5hVQUnjqMX8drxxXuoqJ60fgUEdxmwMX7KxH5LsxlciHg3zfLKLAtpc75P2sQEmobJJ5VfnZfiCUjI8A84yNZQ4R4EAvUtq443fthcORW4RalWtE7hOmXZcew1ysqVkTC4HKnDlA+CENh3MK3pXkjE5GaNy7qAxOgQMZc25xOSbryze6EA83fUzQYion1IO29moBywWTRd+RkHQNtgxVwYTflMFSq4EyluPDluqCfhibLU1cVIEl4J3AT34S5/X4xdRjjY966t8rnIwCWVZIoO5RuMfHe/11CPrskkrGS3MHGNxrEpKzHm8=</X509Certificate>
+ </DigitalId>
+ </ServiceDigitalIdentity>
+ </ServiceDigitalIdentities>
+ <TSLLocation>https://esignature.ec.europa.eu/efda/validation-tests/testcase/tl/LOTL-3.xml</TSLLocation>
+ <AdditionalInformation>
+ <OtherInformation>
+ <SchemeTerritory>EU</SchemeTerritory>
+ </OtherInformation>
+ <OtherInformation>
+ <TSLType>http://uri.etsi.org/TrstSvc/TrustedList/TSLType/EUlistofthelists</TSLType>
+ </OtherInformation>
+ <OtherInformation>
+ <SchemeOperatorName>
+ <Name xml:lang="en">EU Operator name</Name>
+ </SchemeOperatorName>
+ </OtherInformation>
+ <OtherInformation>
+ <ns3:MimeType>application/vnd.etsi.tsl+xml</ns3:MimeType>
+ </OtherInformation>
+ </AdditionalInformation>
+ </OtherTSLPointer>
+ <OtherTSLPointer>
+ <ServiceDigitalIdentities>
+ <ServiceDigitalIdentity>
+ <DigitalId>
+ <X509Certificate>MIIDRDCCAiygAwIBAgIBATANBgkqhkiG9w0BAQ0FADBUMRIwEAYDVQQDDAlDRVJULVRMLTMxGTAXBgNVBAoMEFRMMyBPcmdhbml6YXRpb24xFjAUBgNVBAsMDUNFUlQgRk9SIFRFU1QxCzAJBgNVBAYTAkxVMB4XDTIwMDMyMTAwMDAwMFoXDTIyMDMyMTAwMDAwMFowVDESMBAGA1UEAwwJQ0VSVC1UTC0zMRkwFwYDVQQKDBBUTDMgT3JnYW5pemF0aW9uMRYwFAYDVQQLDA1DRVJUIEZPUiBURVNUMQswCQYDVQQGEwJMVTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMcCuZvK/Lj+oFr1SdNXnNrZfD/aCmcH1SQ9CsiQL7Rs+KkZBfTUYbftOaWtLxYYX9qqG1q+AFHPtvD5ngX6oun+klKkRnG8czNS2tW2SxUWSLWUaXwuOduGQcdxW0kLnIOIikh7DEvXaUgXmcK4evqAQYUcGFm+7sXuh4NNGcJcE+VgHPQtHlP6Fx2/OCi29YhjkZV0WTWXyXAHb4/YFDAJf0615xq4Mub1Rkn6Dk9mntnJAVjA4zfT40xeQpM4Up1iw/KGMwJTRY8d0ojPTfifKkrse5t8w2LzrubFPqrxMnuqdSrABcnN1Kw4ORjTvofFsWRk9TdyV/C71J9osFMCAwEAAaMhMB8wHQYDVR0OBBYEFPAziDLwvYr6VyX3twMZd3rXpmUuMA0GCSqGSIb3DQEBDQUAA4IBAQCErDWzNulUXxj1aHVXFxz+RQXJrQylLym6xe+qFun3AQEHHKDgZypMiSQ629yGcKpMwSELr0Cac7VqHnDgsq95zzfIOptc7RTKgZv6mm/XVtctJgHe0LfV7mi2EJKNbMF+4Lm9GO7BYFz0UsdN+ISF2Q6krxX2G0p7hJSNVOlcAxOV8yBYzHhLexlwgxj8gG3lfprQYe5COhvZwqarIu9+Yywjw0rvYE+/QPafEF+E31Rtxf/i4ftCa2KwVCaPu7jHhG7v/h6FINgNUkeg4gjXpFYQLbaUTGdT5MMDJ0Ydv4VyGF7yY4h/gQ81kh6857LDFLW99tHJtas7sVVNk/eF</X509Certificate>
+ </DigitalId>
+ </ServiceDigitalIdentity>
+ </ServiceDigitalIdentities>
+ <TSLLocation>https://esignature.ec.europa.eu/efda/validation-tests/testcase/tl/TL-3.xml</TSLLocation>
+ <AdditionalInformation>
+ <OtherInformation>
+ <SchemeTerritory>LU</SchemeTerritory>
+ </OtherInformation>
+ <OtherInformation>
+ <TSLType>http://uri.etsi.org/TrstSvc/TrustedList/TSLType/EUgeneric</TSLType>
+ </OtherInformation>
+ <OtherInformation>
+ <SchemeOperatorName>
+ <Name xml:lang="en">LU Operator name</Name>
+ </SchemeOperatorName>
+ </OtherInformation>
+ <OtherInformation>
+ <ns3:MimeType>application/vnd.etsi.tsl+xml</ns3:MimeType>
+ </OtherInformation>
+ </AdditionalInformation>
+ </OtherTSLPointer>
+ <OtherTSLPointer>
+ <ServiceDigitalIdentities>
+ <ServiceDigitalIdentity>
+ <DigitalId>
+ <X509Certificate>MIIDRDCCAiygAwIBAgIBATANBgkqhkiG9w0BAQ0FADBUMRIwEAYDVQQDDAlDRVJULVRMLTQxGTAXBgNVBAoMEFRMNCBPcmdhbml6YXRpb24xFjAUBgNVBAsMDUNFUlQgRk9SIFRFU1QxCzAJBgNVBAYTAkZSMB4XDTIwMDMyMTAwMDAyOVoXDTIyMDMyMTAwMDAyOVowVDESMBAGA1UEAwwJQ0VSVC1UTC00MRkwFwYDVQQKDBBUTDQgT3JnYW5pemF0aW9uMRYwFAYDVQQLDA1DRVJUIEZPUiBURVNUMQswCQYDVQQGEwJGUjCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAKzGcD1kLUjxeJmwI9Y3K1fVXN1T6mqYr0uPaoVBlH/cFDy14LQGbdB8LpJxS8XbEuDUQOeBnYa7CsIlA71Ur+2asGgRfWmsjm7uU306LuxuDCqOj0QbjkcULwNdLjhqYgwu1Ib6s/MNUUVZ+dExQ+9+ckGUXXS1BjSLt/HrGJWL0QMnwAynYsn5somYSWK2P+Zzbtum7yfGqiRtiJdKM4Tn+wnM27qmE/ewevsn+47uXaHekTXddNMIqt+Wn79993BuRf/AWPJ5UkfBlep2dB7s6fu0pb20e74D4aI1SyFIgJZyPP/DSE4OnieSuPm1h4EX/fHYQczvmON/O7GKuHMCAwEAAaMhMB8wHQYDVR0OBBYEFGVEqopj1wx7M8A1U5/1FtdsdI5QMA0GCSqGSIb3DQEBDQUAA4IBAQCCYNZzftBan+H9wUc5/y0z8+gIfYK4d+8aRKOk0dgwYTO6TZAOtNKhpdCbbGAw6RjbTrqAQHHbhDMpAPdczq/M1M3Y4j6fJAP9s91vXz/CZvRjOhGWyDFV4iRnhIh7EAzyjsiIisZQUU/n1cQzSd7WWZtu9+H6Vdt2kK6eTJ8xqhSVqXr3e9pGR8pfYhDUCgNoCx/i9cjTnTG4HMpuPJGftdjEJv7fUbXr/9ktg95J+oM6WL499efpaMF864wBlFTzLhsUU0J1D2P2jTrCA5arEehJ9k1bpSfD3hhaIFK43Ptp1yqXb1rL4eEfuRILrFiJdtPM5aLGhHFxdkMaZtyt</X509Certificate>
+ </DigitalId>
+ </ServiceDigitalIdentity>
+ </ServiceDigitalIdentities>
+ <TSLLocation>https://esignature.ec.europa.eu/efda/validation-tests/testcase/tl/TL-4.xml</TSLLocation>
+ <AdditionalInformation>
+ <OtherInformation>
+ <SchemeTerritory>FR</SchemeTerritory>
+ </OtherInformation>
+ <OtherInformation>
+ <TSLType>http://uri.etsi.org/TrstSvc/TrustedList/TSLType/EUgeneric</TSLType>
+ </OtherInformation>
+ <OtherInformation>
+ <SchemeOperatorName>
+ <Name xml:lang="en">FR Operator name</Name>
+ </SchemeOperatorName>
+ </OtherInformation>
+ <OtherInformation>
+ <ns3:MimeType>application/vnd.etsi.tsl+xml</ns3:MimeType>
+ </OtherInformation>
+ </AdditionalInformation>
+ </OtherTSLPointer>
+ <OtherTSLPointer>
+ <ServiceDigitalIdentities>
+ <ServiceDigitalIdentity>
+ <DigitalId>
+ <X509Certificate>MIIDRDCCAiygAwIBAgIBATANBgkqhkiG9w0BAQ0FADBUMRIwEAYDVQQDDAlDRVJULVRMLTUxGTAXBgNVBAoMEFRMNSBPcmdhbml6YXRpb24xFjAUBgNVBAsMDUNFUlQgRk9SIFRFU1QxCzAJBgNVBAYTAklUMB4XDTIwMDMyMTAwMDAyM1oXDTIyMDMyMTAwMDAyM1owVDESMBAGA1UEAwwJQ0VSVC1UTC01MRkwFwYDVQQKDBBUTDUgT3JnYW5pemF0aW9uMRYwFAYDVQQLDA1DRVJUIEZPUiBURVNUMQswCQYDVQQGEwJJVDCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBANCIwwJNcFvq5EyXMrJhE2JIUrRIEKBrZeXJQTb7dZRSvObju6mSbrT02gnZX55OTMDwZCB5SyFBgRr6CL1IviOa0h7neisYyakixG7PgM+jeJ9QWg/xuvvXnnB4x7pZsJOyzBATMGIho5vv+plhUNhM9dz4Ja3cUpNtkJi+Amx58yxmjEoEh9fOpFSO3zrwAat8ESwleQFYA7BDHT+X8ko8oNhhlt7wioYTvZ8o4LHdLCqMfhRktuePbtP9TCQPchWDKmR+qrVz1UpzP/iggpUY309m07ldnnrvK1jIXrmt1MvJ1kMenGEMAZSj5LTOcVxDhi8LnSqsTN1sOnuWF+8CAwEAAaMhMB8wHQYDVR0OBBYEFP0hl2Oso+Swy7My0dZQ+wqk/YAHMA0GCSqGSIb3DQEBDQUAA4IBAQBnQAroVWl7alPlb60UmOTrWMP6feJdL4tpjAJTAE6fg5Uk/Dm8OW+2KWGuoNRZpa5yrK8HXYc0SPgu68NaAUKst1jhwOS3Y/c03LFJlC3k5rPrRlfQf8pkjjs3u3NAwCWrGM+gkO2Uu9h4slFMTIhR3nbZKwaf4Q/ncDNt/WqGKw24UKBSUFpacFHjfaqisspxIFSkfO0gdo4mW2uQkPrrjVnLXDZx6FcfOybrpR9Sy2/v5aaobbMK0M+fIMF402vjtrX7+mA42xy4rN+/QfOayR27luJJybqtQeOyf0aq595BWFXZ3p7eh1yKGqFJ8/fhxyIGxWfSrvGPZTXzUzYp</X509Certificate>
+ </DigitalId>
+ </ServiceDigitalIdentity>
+ </ServiceDigitalIdentities>
+ <TSLLocation>https://esignature.ec.europa.eu/efda/validation-tests/testcase/tl/TL-5.xml</TSLLocation>
+ <AdditionalInformation>
+ <OtherInformation>
+ <SchemeTerritory>IT</SchemeTerritory>
+ </OtherInformation>
+ <OtherInformation>
+ <TSLType>http://uri.etsi.org/TrstSvc/TrustedList/TSLType/EUgeneric</TSLType>
+ </OtherInformation>
+ <OtherInformation>
+ <SchemeOperatorName>
+ <Name xml:lang="en">IT Operator name</Name>
+ </SchemeOperatorName>
+ </OtherInformation>
+ <OtherInformation>
+ <ns3:MimeType>application/vnd.etsi.tsl+xml</ns3:MimeType>
+ </OtherInformation>
+ </AdditionalInformation>
+ </OtherTSLPointer>
+ <OtherTSLPointer>
+ <ServiceDigitalIdentities>
+ <ServiceDigitalIdentity>
+ <DigitalId>
+ <X509Certificate>MIIDRDCCAiygAwIBAgIBATANBgkqhkiG9w0BAQ0FADBUMRIwEAYDVQQDDAlDRVJULVRMLTYxGTAXBgNVBAoMEFRMNiBPcmdhbml6YXRpb24xFjAUBgNVBAsMDUNFUlQgRk9SIFRFU1QxCzAJBgNVBAYTAkNaMB4XDTIwMDMyMTAwMDAxMVoXDTIyMDMyMTAwMDAxMVowVDESMBAGA1UEAwwJQ0VSVC1UTC02MRkwFwYDVQQKDBBUTDYgT3JnYW5pemF0aW9uMRYwFAYDVQQLDA1DRVJUIEZPUiBURVNUMQswCQYDVQQGEwJDWjCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAJQRNNhRAADyr6DXSoJUh5rUyONVQVmkYyFH5NHHsfOi2jBcWEXcVVfgeWXQEIBuGVQc9+xQzl3ULEeyxDFP0LF8oLrpbUBaCzLkPbFMnWr8ibfm54L1EH1iYWzdE4CDWWrQ68WG1yYXXVwKZPPhknIEyaMpBYlPTxe4UShfs4fKvCFDvEM7zJrA35BHuKM1Bm+WdJd3ExDQvCkt3hOdPuX0yI/Maf+Im1PIVVWQm/5zqFwh0sGOmVOAjZYMJfxOOvyT6d9UYMskyDNhIDAkCyXLqRJy6Lmt6wP1FxhRdxdDs7L8pyv4L04TOHhl6IHSX7v3uaczAU66ldRiu5DPetsCAwEAAaMhMB8wHQYDVR0OBBYEFK9/umn2RJw21r5uvtl7kWWhKTaWMA0GCSqGSIb3DQEBDQUAA4IBAQBxbDALCgh1wnYMmgIKeQrTt6qc95Fpr2aMob0YahONLYau3mc06Mq9SY4nu2bBDaEFkD+eOyalLhZV3fcEMyfACLHbGYkCFAjuSNPOKn7IKeesvE3Zl3t/bQwr0pGYvpc5RFx6ao7nWHxLUNhTe4aO2mxEVLH0EzFcqqfpACz6pqvinOXzslMeAIRNodfKY/eRVhWH/BoEwttJwIroxBAjR5BHLt/jk/YOP3cnuwtmhLyKqHgOXSNfhVBqrgqLDeanFYYZVEXMSisTFgrUvjlLyVugXihfwaUTqR7ArpQgUwaKJkg/tTTnbVg4m+V3bznrEFB3KkXAv7fV2JuFwDES</X509Certificate>
+ </DigitalId>
+ </ServiceDigitalIdentity>
+ </ServiceDigitalIdentities>
+ <TSLLocation>https://esignature.ec.europa.eu/efda/validation-tests/testcase/tl/TL-6.xml</TSLLocation>
+ <AdditionalInformation>
+ <OtherInformation>
+ <SchemeTerritory>CZ</SchemeTerritory>
+ </OtherInformation>
+ <OtherInformation>
+ <TSLType>http://uri.etsi.org/TrstSvc/TrustedList/TSLType/EUgeneric</TSLType>
+ </OtherInformation>
+ <OtherInformation>
+ <SchemeOperatorName>
+ <Name xml:lang="en">CZ Operator name</Name>
+ </SchemeOperatorName>
+ </OtherInformation>
+ <OtherInformation>
+ <ns3:MimeType>application/vnd.etsi.tsl+xml</ns3:MimeType>
+ </OtherInformation>
+ </AdditionalInformation>
+ </OtherTSLPointer>
+ <OtherTSLPointer>
+ <ServiceDigitalIdentities>
+ <ServiceDigitalIdentity>
+ <DigitalId>
+ <X509Certificate>MIIDRDCCAiygAwIBAgIBATANBgkqhkiG9w0BAQ0FADBUMRIwEAYDVQQDDAlDRVJULVRMLTcxGTAXBgNVBAoMEFRMNyBPcmdhbml6YXRpb24xFjAUBgNVBAsMDUNFUlQgRk9SIFRFU1QxCzAJBgNVBAYTAkJHMB4XDTIwMDMyMTAwMDAwNloXDTIyMDMyMTAwMDAwNlowVDESMBAGA1UEAwwJQ0VSVC1UTC03MRkwFwYDVQQKDBBUTDcgT3JnYW5pemF0aW9uMRYwFAYDVQQLDA1DRVJUIEZPUiBURVNUMQswCQYDVQQGEwJCRzCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMW+WaG7IJkTmsjH5yo/4klBjR3Ra4CjTzkPI3/cw9BiXc5zmiF7wLoCtnGJF7FDSO2Xn2DhLLcz2TJIn7UN5CW0OgiQuJ8gahNPho+7ustDhsPB14f3S1vhKpzPlFyR5LBzMBi3RZ3UkxRX2H4A53DyNE4DdqG8TKbBbTPF5ZVRtDDASOLwZ6ICxaDTFwO1vDpSZ0Cc76+K0Rqunzt59gCYA8k+i9BmI/ziIUL30Cety40Uim+ybwsq7pIEIbCLTVJhkjpAH2TjXnimfbmXtQSP50Kw5RJrX1SJvkIPYSKdCt+EEeAJ3didX5dKGV4l7wuXvnUqXghg55ky6cVIsKsCAwEAAaMhMB8wHQYDVR0OBBYEFO9MYV/gHRHurW3ZGjVpnvjct5qeMA0GCSqGSIb3DQEBDQUAA4IBAQAsjJJA/0P/Jj1lQiPqQSuQ0ilswAfTGXxnC1VL9H+fR/83Li7zCvLL4iQzDbXdiRormuvZq4WujS5UjGe9x63vP/62m5HsKwNrGO2zXRno4A5ju25rauo/lU4kfWE88I5UQV11t61idpcyXuNP4yVv4LqJu7Blyi1JNk/95ym0xdBncTfaueBoQzm+m+xj5B1ZgHUjxa8zNXrzI7o91RSHTJDN+VPhWL1HJZ8lwJdl2aXPq2zXNLdvg/0sY1K249NHh2eifkq/W3+qTw5uGC9cdZxb7FcNjnqNTvMVvfGyeJQYee6ibrKgQOXA3bdarjuN7feB07N+i4+r/FSTWQRF</X509Certificate>
+ </DigitalId>
+ </ServiceDigitalIdentity>
+ </ServiceDigitalIdentities>
+ <TSLLocation>https://esignature.ec.europa.eu/efda/validation-tests/testcase/tl/TL-7.xml</TSLLocation>
+ <AdditionalInformation>
+ <OtherInformation>
+ <SchemeTerritory>BG</SchemeTerritory>
+ </OtherInformation>
+ <OtherInformation>
+ <TSLType>http://uri.etsi.org/TrstSvc/TrustedList/TSLType/EUgeneric</TSLType>
+ </OtherInformation>
+ <OtherInformation>
+ <SchemeOperatorName>
+ <Name xml:lang="en">BG Operator name</Name>
+ </SchemeOperatorName>
+ </OtherInformation>
+ <OtherInformation>
+ <ns3:MimeType>application/vnd.etsi.tsl+xml</ns3:MimeType>
+ </OtherInformation>
+ </AdditionalInformation>
+ </OtherTSLPointer>
+ <OtherTSLPointer>
+ <ServiceDigitalIdentities>
+ <ServiceDigitalIdentity>
+ <DigitalId>
+ <X509Certificate>MIIDRjCCAi6gAwIBAgIBATANBgkqhkiG9w0BAQ0FADBVMRIwEAYDVQQDDAlDRVJULVRMLTgxGjAYBgNVBAoMEVRMLTggT3JnYW5pemF0aW9uMRYwFAYDVQQLDA1DRVJUIEZPUiBURVNUMQswCQYDVQQGEwJVSzAeFw0yMDAzMjEwMDAwNDlaFw0yMjAzMjEwMDAwNDlaMFUxEjAQBgNVBAMMCUNFUlQtVEwtODEaMBgGA1UECgwRVEwtOCBPcmdhbml6YXRpb24xFjAUBgNVBAsMDUNFUlQgRk9SIFRFU1QxCzAJBgNVBAYTAlVLMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAu8raPFbYwPYnUQtovDi7x83M+fIKgxFVb9VELUeXnvyV1nSXndQ832t9/WqV4xhzDacPBx8nuE0/SYO4g5q4f7wxMat1uHciGQuz1sAUW3wQ8lVbLaY9nIITijZUYCDDM/je5F0YCAPSUAQkNIyYvXWGJiEt/0yZ6cOOKn4V8In955NQWJhHMpZzFqdIJ00PDGq7otg4ahlvOHjN/jErvRLOW+RyZdXzT8hdVOuurkdmxjgTgRFzFlXNX6jMcZZiFioIutQG7aRbZgK55PnEE40pbPl2jiQb5W2uO3c29v2/YctzViX0f0lh3jRayp1vRhO18WeabFwizA5mTE7cGwIDAQABoyEwHzAdBgNVHQ4EFgQUAAF7dgqTJuA8GY0cPzUA4pvUF0owDQYJKoZIhvcNAQENBQADggEBAJRg85ij+uEs61qGNsqu+ndAtdC3aYyaSF5EnPG2R+1su3+NsQYqw3OLZlORysvNHY/hOorRBaivJDcyHUia4X5jTPmGNtkM6fs1PbJZbqsl8KXLGil1XwiPV0i9sxLvAHJcQSwjhuoRuMKoO5PqsKdkbGTzfzOnyHe1705TFqKdj15g8hrPGzGELbTDcpXbqowFlQ/C/c03vOue5dIrge+JGkvNqvN9Q90tp3g1im5IZ0IImFGq2xt/n0n8E3whh0FNEHMgjLRAkwjK4BFskvA2YW+fKd+hhCl7aYpaq8gXtTR9onAXpAvb/5vQGeIc7CSz3qMzIzttlADcqbrjUkE=</X509Certificate>
+ </DigitalId>
+ </ServiceDigitalIdentity>
+ </ServiceDigitalIdentities>
+ <TSLLocation>https://esignature.ec.europa.eu/efda/validation-tests/testcase/tl/TL-8.xml</TSLLocation>
+ <AdditionalInformation>
+ <OtherInformation>
+ <SchemeTerritory>UK</SchemeTerritory>
+ </OtherInformation>
+ <OtherInformation>
+ <TSLType>http://uri.etsi.org/TrstSvc/TrustedList/TSLType/EUgeneric</TSLType>
+ </OtherInformation>
+ <OtherInformation>
+ <SchemeOperatorName>
+ <Name xml:lang="en">UK Operator name</Name>
+ </SchemeOperatorName>
+ </OtherInformation>
+ <OtherInformation>
+ <ns3:MimeType>application/vnd.etsi.tsl+xml</ns3:MimeType>
+ </OtherInformation>
+ </AdditionalInformation>
+ </OtherTSLPointer>
+ </PointersToOtherTSL>
+ <ListIssueDateTime>2021-03-20T00:00:00Z</ListIssueDateTime>
+ <NextUpdate>
+ <dateTime>2021-04-20T23:00:00Z</dateTime>
+ </NextUpdate>
+ </SchemeInformation>
+<ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#" Id="id-32ff47a91d0b44160b44902deef1e7e4"><ds:SignedInfo><ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/><ds:SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"/><ds:Reference Id="xml_ref_id" URI=""><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature"/><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>vfJoj5uzMHYfN5sZAmbwSILFMZXh7aQrACnbga8u3XI=</ds:DigestValue></ds:Reference><ds:Reference Type="http://uri.etsi.org/01903#SignedProperties" URI="#xades-id-32ff47a91d0b44160b44902deef1e7e4"><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>41GobgJZ/BgxQuMChnz7GmYWkMhDFqNGbdTMkcYFneg=</ds:DigestValue></ds:Reference></ds:SignedInfo><ds:SignatureValue Id="value-id-32ff47a91d0b44160b44902deef1e7e4">US6iErhn4hpNVYiQ5T9csz8O65NX/iTXN2cZTV2lh1Dyxqp2uos3Io+iTOZiMCuIE0conxYsXoq0j2F7vNyAPH3Sc9gRWNoOEa747cjYWdmmpNk/mwahoIn43GIAdhumz/ws2mwDtJ8+V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J60fgUEdxmwMX7KxH5LsxlciHg3zfLKLAtpc75P2sQEmobJJ5VfnZfiCUjI8A84yNZQ4R4EAvUtq443fthcORW4RalWtE7hOmXZcew1ysqVkTC4HKnDlA+CENh3MK3pXkjE5GaNy7qAxOgQMZc25xOSbryze6EA83fUzQYion1IO29moBywWTRd+RkHQNtgxVwYTflMFSq4EyluPDluqCfhibLU1cVIEl4J3AT34S5/X4xdRjjY966t8rnIwCWVZIoO5RuMfHe/11CPrskkrGS3MHGNxrEpKzHm8=</ds:X509Certificate></ds:X509Data></ds:KeyInfo><ds:Object><xades:QualifyingProperties xmlns:xades="http://uri.etsi.org/01903/v1.3.2#" Target="#id-32ff47a91d0b44160b44902deef1e7e4"><xades:SignedProperties Id="xades-id-32ff47a91d0b44160b44902deef1e7e4"><xades:SignedSignatureProperties><xades:SigningTime>2021-03-21T00:00:50Z</xades:SigningTime><xades:SigningCertificate><xades:Cert><xades:CertDigest><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha512"/><ds:DigestValue>IvzeqTdUHVhH+xYK9twzgOzIPk0zI5lAx3MmLrtIVcvbZ89pDuR2A/KgWsw8xo8O/RB6u9NerYgOIUdTS7N9xQ==</ds:DigestValue></xades:CertDigest><xades:IssuerSerial><ds:X509IssuerName>C=LU,OU=CERT FOR TEST,O=EU Organization,CN=CERT-LOTL-3</ds:X509IssuerName><ds:X509SerialNumber>1</ds:X509SerialNumber></xades:IssuerSerial></xades:Cert></xades:SigningCertificate></xades:SignedSignatureProperties><xades:SignedDataObjectProperties><xades:DataObjectFormat ObjectReference="#xml_ref_id"><xades:MimeType>application/octet-stream</xades:MimeType></xades:DataObjectFormat></xades:SignedDataObjectProperties></xades:SignedProperties></xades:QualifyingProperties></ds:Object></ds:Signature></TrustServiceStatusList> \ No newline at end of file
diff --git a/moaSig/moa-sig/src/test/resources/testdata/tsl_tests/LOTL-3.zip b/moaSig/moa-sig/src/test/resources/testdata/tsl_tests/LOTL-3.zip
new file mode 100644
index 0000000..67680c4
--- /dev/null
+++ b/moaSig/moa-sig/src/test/resources/testdata/tsl_tests/LOTL-3.zip
Binary files differ
diff --git a/moaSig/moa-sig/src/test/resources/testdata/xades/2.1.1-TEST FILE.xml b/moaSig/moa-sig/src/test/resources/testdata/xades/2.1.1-TEST FILE.xml
new file mode 100644
index 0000000..d77e7f4
--- /dev/null
+++ b/moaSig/moa-sig/src/test/resources/testdata/xades/2.1.1-TEST FILE.xml
@@ -0,0 +1,3 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?><FILE>
+ <TEST>SAMPLE</TEST>
+<ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#" Id="id-c057b3a9747cc89be8dfd1bd32d7f5f3"><ds:SignedInfo><ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/><ds:SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"/><ds:Reference Id="r-id-c057b3a9747cc89be8dfd1bd32d7f5f3-1" URI=""><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2002/06/xmldsig-filter2"><dsig-filter2:XPath xmlns:dsig-filter2="http://www.w3.org/2002/06/xmldsig-filter2" Filter="subtract">/descendant::ds:Signature</dsig-filter2:XPath></ds:Transform><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>kfsK43NJaZNZwDUkwbME+Sn+ziU/Rl4K0N2bvfbuwvk=</ds:DigestValue></ds:Reference><ds:Reference Type="http://uri.etsi.org/01903#SignedProperties" URI="#xades-id-c057b3a9747cc89be8dfd1bd32d7f5f3"><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>opDkIQW7OHrSgoLQIokCqi2smqKzc0ZUNAteL3+Ojig=</ds:DigestValue></ds:Reference></ds:SignedInfo><ds:SignatureValue Id="value-id-c057b3a9747cc89be8dfd1bd32d7f5f3">UEnGAF0gkTxETXf2rJYKthAjMtXIA9DsJf9/VQCCCLcaX418zTJawj/1Ro68ksE7Ufu9cJOILzHbrQxEXd2fmMeqZg9+ys5IGv0CZuYm3Rq+GcoEAp6TuoQuaNf+DKk+hvYUIamoEpKeotgGJ1+AKUuVql3ZWp1NlBpwyF63gky9OF/LzwEpBSh8sAzxl0Xh0jl0J/WPdJWnBLoB7U3Y5IyYQztgB6dimwCAuK+uS664uCbC02pu/K3DknFp2P6mcoU7Nr531595re6R3LYY84++Ka2JxCQPwepG9jX8kqATU6deuzQQDzmRyZAYQU2JT8j6WtJ+uwg6dFURWF7ylg==</ds:SignatureValue><ds:KeyInfo><ds:X509Data><ds:X509Certificate>MIIEWzCCA0OgAwIBAgIBBDANBgkqhkiG9w0BAQsFADBSMRMwEQYDVQQDDApTREktMjEuMS4xMRYwFAYDVQQKDA1UU1AtMjEuMSBOYW1lMRYwFAYDVQQLDA1DRVJUIEZPUiBURVNUMQswCQYDVQQGEwJMVTAeFw0yMDAzMjEwMDAwMDZaFw0yMjAzMjEwMDAwMDZaMFwxGTAXBgNVBAMMEENFUlQtVEVTVC0yMS4xLjExGjAYBgNVBAoMEVRMMjEgT3JnYW5pemF0aW9uMRYwFAYDVQQLDA1DRVJUIEZPUiBURVNUMQswCQYDVQQGEwJMVTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBANOhk00VfFQTMuRV4hQBugYr62Sv0daq/+Hp/DbKZ2FIN6rea1zj/9l7xP68VOxBiLMuRv2iQxWsCtQ8LTAfnqfJK8lfsYLxAuvXD2JFHUYNRgZ54gATVkx91GBlic5sYkE87UZwQpxo2FEfkwE/7fpwcIQacdTV+X9gKsfsSLwIi0+FUvkSURx2d3UINUm07AwMPbiMUtaTrsONVhJynbLHLbmrfqPCY5fHdWzQGuzTD98HjTXKU3ctnsiCEbQ7y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w0yMjAzMjEwMDAwMDZaMFIxEzARBgNVBAMMClNESS0yMS4xLjExFjAUBgNVBAoMDVRTUC0yMS4xIE5hbWUxFjAUBgNVBAsMDUNFUlQgRk9SIFRFU1QxCzAJBgNVBAYTAkxVMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAtHv2ugf/wSL1oedc5QMyxkuD54xon32RVaNl9rRPtzOwBhyDFXrDiFewWBLyL2hNU9/xKrDdLwgMrel7Eg7cxivAfIlCyihKbpE/iHXxJyyeH+st2B4TtsBLjbATj+svycYcULlqXF1BZfEBIgAPtJ0s2OpoiVrWjVMAlwtDlINNmdG8S166Si7O+QUNypQvz5VmKqKm0wN7+defv9G0LrxIYL0CawsRqiAn0AdMTLvFRQiEV5euZ4mb0o6hNGmt/rCWj6sXkpQE4DpwULzW5tTujH03AR4SZ+wJ8OItapsrlzVUmBVxja0il+DxLSUaIYsAagCOPN43ckRiQtq1gQIDAQABo0IwQDAOBgNVHQ8BAf8EBAMCAQYwHQYDVR0OBBYEFENzEuM+bBv6tkPrj9GGKMY6uispMA8GA1UdEwEB/wQFMAMBAf8wDQYJKoZIhvcNAQELBQADggEBAKKSAIUjEvcqqZx2XBByGT8NzNP4fkI0FuWPI107ECkyjac+xFAgTC32s5M0c+WYsTGOuUXef84vPF4tYX+npqHQsmXJLnCDE5W0DqZ0Eam5S7QfMr7mV7KTyeogsvv7Mk5duDINNKiVFugPST85gD8JOUvjJOJkAfRj4ZdAqq6qdJuqlB1r6eWTsEaAFdC5VLVfs/8lO6YYSSoL/r/XkkYI+6aNweFqRVxYt8W/ZgxmFLO1nvI7+tnopIqZOF9PpMiFg1WSoBugj/tkw27am9plU9AXEHdsnWsv7gwjWdiGrjvLFRxgyMjmneCl21Uvae58LtdNz82N9WTpLVIyD8Q=</ds:X509Certificate></ds:X509Data></ds:KeyInfo><ds:Object><xades:QualifyingProperties xmlns:xades="http://uri.etsi.org/01903/v1.3.2#" Target="#id-c057b3a9747cc89be8dfd1bd32d7f5f3"><xades:SignedProperties Id="xades-id-c057b3a9747cc89be8dfd1bd32d7f5f3"><xades:SignedSignatureProperties><xades:SigningTime>2021-03-21T00:00:54Z</xades:SigningTime><xades:SigningCertificateV2><xades:Cert><xades:CertDigest><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha512"/><ds:DigestValue>OdObvaqXihaWR8dTBZ7uDFzQXFJ8nN/IR8rMXsGog93oOSktP7SsU0guv3R3hVOBgBQkS4luyEDpL593pInjsA==</ds:DigestValue></xades:CertDigest><xades:IssuerSerialV2>MFswVqRUMFIxEzARBgNVBAMMClNESS0yMS4xLjExFjAUBgNVBAoMDVRTUC0yMS4xIE5hbWUxFjAUBgNVBAsMDUNFUlQgRk9SIFRFU1QxCzAJBgNVBAYTAkxVAgEE</xades:IssuerSerialV2></xades:Cert></xades:SigningCertificateV2></xades:SignedSignatureProperties><xades:SignedDataObjectProperties><xades:DataObjectFormat ObjectReference="#r-id-c057b3a9747cc89be8dfd1bd32d7f5f3-1"><xades:MimeType>application/octet-stream</xades:MimeType></xades:DataObjectFormat></xades:SignedDataObjectProperties></xades:SignedProperties></xades:QualifyingProperties></ds:Object></ds:Signature></FILE> \ No newline at end of file
diff --git a/moaSig/moa-sig/src/test/resources/testdata/xades/2.1.2-TEST FILE.xml b/moaSig/moa-sig/src/test/resources/testdata/xades/2.1.2-TEST FILE.xml
new file mode 100644
index 0000000..0415b25
--- /dev/null
+++ b/moaSig/moa-sig/src/test/resources/testdata/xades/2.1.2-TEST FILE.xml
@@ -0,0 +1,3 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?><FILE>
+ <TEST>SAMPLE</TEST>
+<ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#" Id="id-fce261c7fb765f081d47108e89342e80"><ds:SignedInfo><ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/><ds:SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"/><ds:Reference Id="r-id-fce261c7fb765f081d47108e89342e80-1" URI=""><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2002/06/xmldsig-filter2"><dsig-filter2:XPath xmlns:dsig-filter2="http://www.w3.org/2002/06/xmldsig-filter2" Filter="subtract">/descendant::ds:Signature</dsig-filter2:XPath></ds:Transform><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>kfsK43NJaZNZwDUkwbME+Sn+ziU/Rl4K0N2bvfbuwvk=</ds:DigestValue></ds:Reference><ds:Reference Type="http://uri.etsi.org/01903#SignedProperties" URI="#xades-id-fce261c7fb765f081d47108e89342e80"><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>j+BJOYAla2jO89TJD7i7E6qOoglT5sHWtCYMMyS/zs4=</ds:DigestValue></ds:Reference></ds:SignedInfo><ds:SignatureValue Id="value-id-fce261c7fb765f081d47108e89342e80">aMBJw1PgAthTLWETCDfMRF3AKzi6Hpqobj/P9QQy7DBsITMrX73in8jirYH3WeCRJXkhNSLyI2ihrAZrC6Ea0mhV/0n8W4bQ963iMZ5zJSnG0ysmpadgw+OJOzq83739iNLSf7AeiKmwctTI2uLskBRMYyFqO14u8EcB56J4b2WLRmJYHJ6nvRJvnfOZw/9RK7FEFAUkbm9SptllRi34fmf02DZ0TRUW9IfiTh27C3JwjL4j/KYjM3ZRpK0nnCRY2x1GxSCGAbJvlHARRrrB9057Uz0pyxjmtT2m4HTxea5Vnxpb9O2+B7vsVRsvVULFdTywkn1eUO6qmtlXfC8KZQ==</ds:SignatureValue><ds:KeyInfo><ds:X509Data><ds:X509Certificate>MIIEWzCCA0OgAwIBAgIBAzANBgkqhkiG9w0BAQsFADBSMRMwEQYDVQQDDApTREktMjI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rQIDAQABo0IwQDAOBgNVHQ8BAf8EBAMCAQYwHQYDVR0OBBYEFAQ2knPE9KqH1mx5TZKsm6JrJBn8MA8GA1UdEwEB/wQFMAMBAf8wDQYJKoZIhvcNAQELBQADggEBAHZeapGPpRY6HyrzjoOE3ZblSFhCsFLxiYNANxXu7PHDE/ansis+qyKdx6MYirVc/xKZMQWGGSXKv6Bk+amT4sVWtzhBQ34ztfnsB+F4gHarkSuhRCHErI+gHuYr8R5e7EZUe0U9Pfmp+fun2nKRRxBCekwTfStiwIosqg0HTV8OEyn5IEr/7jQDbzuYpc01Lt754KE2ZGPqzvWqHKsYIGF9Nd+XKVj6heQB8pWZ0I4K9jNv7wTipo0HDF4Ho3OX0ezLBIQVCJA9KYaviPW0rMZDxERarjTnflUp+/awWIjUyAIXFfoqeflwkLWz9sd+c4T5NMFwrjWbeUQ3D+A/HNs=</ds:X509Certificate></ds:X509Data></ds:KeyInfo><ds:Object><xades:QualifyingProperties xmlns:xades="http://uri.etsi.org/01903/v1.3.2#" Target="#id-fce261c7fb765f081d47108e89342e80"><xades:SignedProperties Id="xades-id-fce261c7fb765f081d47108e89342e80"><xades:SignedSignatureProperties><xades:SigningTime>2021-03-21T00:00:54Z</xades:SigningTime><xades:SigningCertificateV2><xades:Cert><xades:CertDigest><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha512"/><ds:DigestValue>q8Q5m2gF1K8S8aD7umQzCc/hKQFLHDbnC9hZf7/yzqt39gy7wqNnnmYvriXtvDvDNoV77JT9uhmEQ1rrWARpZQ==</ds:DigestValue></xades:CertDigest><xades:IssuerSerialV2>MFswVqRUMFIxEzARBgNVBAMMClNESS0yMi4xLjExFjAUBgNVBAoMDVRTUC0yMi4xIE5hbWUxFjAUBgNVBAsMDUNFUlQgRk9SIFRFU1QxCzAJBgNVBAYTAkZSAgED</xades:IssuerSerialV2></xades:Cert></xades:SigningCertificateV2></xades:SignedSignatureProperties><xades:SignedDataObjectProperties><xades:DataObjectFormat ObjectReference="#r-id-fce261c7fb765f081d47108e89342e80-1"><xades:MimeType>application/octet-stream</xades:MimeType></xades:DataObjectFormat></xades:SignedDataObjectProperties></xades:SignedProperties></xades:QualifyingProperties></ds:Object></ds:Signature></FILE> \ No newline at end of file
diff --git a/moaSig/moa-sig/src/test/resources/testdata/xades/2.1.3-TEST FILE.xml b/moaSig/moa-sig/src/test/resources/testdata/xades/2.1.3-TEST FILE.xml
new file mode 100644
index 0000000..e583062
--- /dev/null
+++ b/moaSig/moa-sig/src/test/resources/testdata/xades/2.1.3-TEST FILE.xml
@@ -0,0 +1,3 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?><FILE>
+ <TEST>SAMPLE</TEST>
+<ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#" Id="id-93268bd62e1966295c196e1e007adffa"><ds:SignedInfo><ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/><ds:SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"/><ds:Reference Id="r-id-93268bd62e1966295c196e1e007adffa-1" URI=""><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2002/06/xmldsig-filter2"><dsig-filter2:XPath xmlns:dsig-filter2="http://www.w3.org/2002/06/xmldsig-filter2" Filter="subtract">/descendant::ds:Signature</dsig-filter2:XPath></ds:Transform><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>kfsK43NJaZNZwDUkwbME+Sn+ziU/Rl4K0N2bvfbuwvk=</ds:DigestValue></ds:Reference><ds:Reference Type="http://uri.etsi.org/01903#SignedProperties" URI="#xades-id-93268bd62e1966295c196e1e007adffa"><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>od/ahJk56KZAD/y8FlIqncGpz9D9eJB0zC6bl795wLM=</ds:DigestValue></ds:Reference></ds:SignedInfo><ds:SignatureValue Id="value-id-93268bd62e1966295c196e1e007adffa">iM0mCT4CseayRhLLWb8DLzs2sWc6Si3p+3a0byvl0nGISE7Yr2TkupfMQPwsHRVFn2w7YOwi4f8Za55LvOjcjQmDoBZN928I3S7a/nElZjdPUi8ocJNjtXHoUe2jp6IVKrrauNjz4QONTOpunubwek+aYAIvZ2AU9duxrcWSR6Ma88teoWalMGQJjBQRZmsR3rpPWdi17WJK95V53R0ZEqQWScDQDjPWrRGYPyDyk72AwRdk+xC6Y0y3GQfpmVa7pC1f2B8GAaoXILbWca1N+1gtg1i+PUUcwnSqUjrLStnD6QVlbun0e6YdPb/G4Qxf371NnDl0wMv7+vX1sHpF0w==</ds:SignatureValue><ds:KeyInfo><ds:X509Data><ds:X509Certificate>MIIEWzCCA0OgAwIBAgIBAzANBgkqhkiG9w0BAQsFADBSMRMwEQYDVQQDDApTREktMjMuMS4xMRYwFAYDVQQKDA1UU1AtMjMuMSBOYW1lMRYwFAYDVQQLDA1DRVJUIEZPUiBURVNUMQswCQYDVQQGEwJCRTAeFw0xNjAzMjEwMDAwMTFaFw0yNjAzMjEwMDAwMTFaMFwxGTAXBgNVBAMMEENFUlQtVEVTVC0yMy4xLjExGjAYBgNVBAoMEVRMMjMgT3JnYW5pemF0aW9uMRYwFAYDVQQLDA1DRVJUIEZPUiBURVNUMQswCQYDVQQGEwJCRTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAKNG3CqCP6KiYoYmWVkt448rVJaTzie7onRD8fIdOGW/w5m5MVEwvKsB5YVPwnWVHMt1xDBT1qUUY2Fh8e08BQ8UBqmOuBkWoG+Mdf31PhrLA/QQi47A/mOi54zG2g/+a9r8Tscirlp8QuW2dX6VtVUB81Ypw8JYJ2bpy8/AhJwMgPTcVW0L46WGFA5DkvOGhx42K9OMllgC2sXTtaJGXRzZ+zyScn+FXQ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si.org/01903/v1.3.2#" Target="#id-93268bd62e1966295c196e1e007adffa"><xades:SignedProperties Id="xades-id-93268bd62e1966295c196e1e007adffa"><xades:SignedSignatureProperties><xades:SigningTime>2021-03-21T00:00:54Z</xades:SigningTime><xades:SigningCertificateV2><xades:Cert><xades:CertDigest><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha512"/><ds:DigestValue>u+m728WUsgaFa8HHGN3rPFsehgwEIOul5TpDEmpjbE3J1XqnlpnfwLnztx6nzJTBujKrHoOSkLwMgIQ8dSB5rg==</ds:DigestValue></xades:CertDigest><xades:IssuerSerialV2>MFswVqRUMFIxEzARBgNVBAMMClNESS0yMy4xLjExFjAUBgNVBAoMDVRTUC0yMy4xIE5hbWUxFjAUBgNVBAsMDUNFUlQgRk9SIFRFU1QxCzAJBgNVBAYTAkJFAgED</xades:IssuerSerialV2></xades:Cert></xades:SigningCertificateV2></xades:SignedSignatureProperties><xades:SignedDataObjectProperties><xades:DataObjectFormat ObjectReference="#r-id-93268bd62e1966295c196e1e007adffa-1"><xades:MimeType>application/octet-stream</xades:MimeType></xades:DataObjectFormat></xades:SignedDataObjectProperties></xades:SignedProperties></xades:QualifyingProperties></ds:Object></ds:Signature></FILE> \ No newline at end of file
diff --git a/moaSig/moa-sig/src/test/resources/testdata/xades/3.1.1-TEST FILE.xml b/moaSig/moa-sig/src/test/resources/testdata/xades/3.1.1-TEST FILE.xml
new file mode 100644
index 0000000..1ad4147
--- /dev/null
+++ b/moaSig/moa-sig/src/test/resources/testdata/xades/3.1.1-TEST FILE.xml
@@ -0,0 +1,3 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?><FILE>
+ <TEST>SAMPLE</TEST>
+<ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#" Id="id-4df74b7f04370c3672d020415155bdee"><ds:SignedInfo><ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/><ds:SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"/><ds:Reference Id="r-id-4df74b7f04370c3672d020415155bdee-1" URI=""><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2002/06/xmldsig-filter2"><dsig-filter2:XPath xmlns:dsig-filter2="http://www.w3.org/2002/06/xmldsig-filter2" Filter="subtract">/descendant::ds:Signature</dsig-filter2:XPath></ds:Transform><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>kfsK43NJaZNZwDUkwbME+Sn+ziU/Rl4K0N2bvfbuwvk=</ds:DigestValue></ds:Reference><ds:Reference Type="http://uri.etsi.org/01903#SignedProperties" URI="#xades-id-4df74b7f04370c3672d020415155bdee"><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>N9C+KgOr7M8Mcn5qjgBMhykF705acTnA4fh3caM1Rc4=</ds:DigestValue></ds:Reference></ds:SignedInfo><ds:SignatureValue Id="value-id-4df74b7f04370c3672d020415155bdee">bMHPBLQso+6tHjygZLR3jmKIZWfIRixB07ktGeS3XiPopU5vpLrOWNTjS7Om9mfIzznVS46ZvtckAGffOpZ5C7CvR0TeOlcnZPlhs7pizSY8w75yJAvuzEX8wOkXcMGpIrbSa15qHn+IPNCuPZc7mOesV56BKXRLF4M6ut1alOHl8bVu9d3M6NXHDorBaH2eCeeT/io9+Mh7v/8l1r1TGD3XDi93JyhjVJ3WqQHstBCAzRR5lGDMQyp5u1M5SdsFEiLjcKj9tbVVnXBM+QGe7WRoXlkEbF6TJsCU1ubYfp0RWC6AzAWqeIDndzgmyPK3RBMuxZ0p9TQwKhRkwebWXQ==</ds:SignatureValue><ds:KeyInfo><ds:X509Data><ds:X509Certificate>MIIEazCCA1OgAwIBAgIBAzANBgkqhkiG9w0BAQsFADBaM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RJ3Qv3WKvbRiJVaT/kyj8zANBgkqhkiG9w0BAQsFAAOCAQEAE2g0q4k9W4vJBtqPu55/tjAQVgLvHv0ZUzMhYJMiPAVKLLgfu6qiOlPlIb7YOSGZh2Q41LkBi8zF0+RyLy66kiB5d+jPQ8lYM0+z2wsQehCaiimNd9x3b879++Gbsh7B5HxeApQogGMASoWe34/U6zpE+lt0WNBC+WEhSaQ0exm27zKFV94bc9Dry514s8am1XYvLNmWs21lhMmWbjYT0SAA1Q1BwmVgZdEEtM2vGG5dJeD0WHV9i4TPwnLhpkEe1JxK/knhw2lYpSUaIIV/Ld2JXPDEM67hD+3e9stkVzQ6sV0JNOzpNgr8OoaxPeYEg2Y1Yd2pbAZKWGIwu77RYw==</ds:X509Certificate></ds:X509Data></ds:KeyInfo><ds:Object><xades:QualifyingProperties xmlns:xades="http://uri.etsi.org/01903/v1.3.2#" Target="#id-4df74b7f04370c3672d020415155bdee"><xades:SignedProperties Id="xades-id-4df74b7f04370c3672d020415155bdee"><xades:SignedSignatureProperties><xades:SigningTime>2021-03-21T00:00:54Z</xades:SigningTime><xades:SigningCertificateV2><xades:Cert><xades:CertDigest><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha512"/><ds:DigestValue>UE+AAvKLbgW1i4RMjaThdG63MgT/1bBSi1P01OQCsLeBWA5fheFLx1eYKJpeRIud5dV8/L4VXa0/vl2SS+tNJA==</ds:DigestValue></xades:CertDigest><xades:IssuerSerialV2>MGMwXqRcMFoxGDAWBgNVBAMMD0NFUlQtVEVTVC0zLjEuMTEZMBcGA1UECgwQVEwzIE9yZ2FuaXphdGlvbjEWMBQGA1UECwwNQ0VSVCBGT1IgVEVTVDELMAkGA1UEBhMCTFUCAQM=</xades:IssuerSerialV2></xades:Cert></xades:SigningCertificateV2></xades:SignedSignatureProperties><xades:SignedDataObjectProperties><xades:DataObjectFormat ObjectReference="#r-id-4df74b7f04370c3672d020415155bdee-1"><xades:MimeType>application/octet-stream</xades:MimeType></xades:DataObjectFormat></xades:SignedDataObjectProperties></xades:SignedProperties></xades:QualifyingProperties></ds:Object></ds:Signature></FILE> \ No newline at end of file
diff --git a/moaSig/moa-sig/src/test/resources/testdata/xades/3.1.2-TEST FILE.xml b/moaSig/moa-sig/src/test/resources/testdata/xades/3.1.2-TEST FILE.xml
new file mode 100644
index 0000000..11f0465
--- /dev/null
+++ b/moaSig/moa-sig/src/test/resources/testdata/xades/3.1.2-TEST FILE.xml
@@ -0,0 +1,3 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?><FILE>
+ <TEST>SAMPLE</TEST>
+<ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#" Id="id-8954e491187e37f6e67f450a0a1c0bdb"><ds:SignedInfo><ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/><ds:SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"/><ds:Reference Id="r-id-8954e491187e37f6e67f450a0a1c0bdb-1" URI=""><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2002/06/xmldsig-filter2"><dsig-filter2:XPath xmlns:dsig-filter2="http://www.w3.org/2002/06/xmldsig-filter2" Filter="subtract">/descendant::ds:Signature</dsig-filter2:XPath></ds:Transform><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>kfsK43NJaZNZwDUkwbME+Sn+ziU/Rl4K0N2bvfbuwvk=</ds:DigestValue></ds:Reference><ds:Reference Type="http://uri.etsi.org/01903#SignedProperties" URI="#xades-id-8954e491187e37f6e67f450a0a1c0bdb"><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>Fs18bM2Wp30WIwsWDj3F6cNHbggjmh0hH69EpK/3YvM=</ds:DigestValue></ds:Reference></ds:SignedInfo><ds:SignatureValue Id="value-id-8954e491187e37f6e67f450a0a1c0bdb">bpgQViXX1DSFCN0Y4I9YiCwWnyYP5x5NSHT57EcBFR83oKsTmuKgWItDXKcedFu9IFU4ovN9hbZbktbOTQ3Pzvj5vU00sGVQgzl/rSvH8ciJx9gtpzdtRuWMD0HeGTnmjo8ramGOGFcnqiqy8FkasrycXaO6Y5UldBdBpLLhvXIenmlQogqqXUC79+eJW1TUjUzL75wYHiUmGBzq19thZcET9VZFQ4vJs7muiF210CDPQfWt5jZNjg0wYQt1AfGraKYH0b7l8cc36Tm+LKr2DtEdlik/c/XtEYznhKii5o2yZTXBuKkbagDYjkMVMYCsCI1AkImY1jhpswkN0UdiQA==</ds:SignatureValue><ds:KeyInfo><ds:X509Data><ds:X509Certificate>MIIEVTCCAz2gAwIBAgIBBTANBgkqhkiG9w0BAQsFADBQMRIwEAYDVQQDDAlTREktMy4xLjIxFTATBgNVBAoMDFRTUC0zLjEgTmFtZTEWMBQGA1UECwwNQ0VSVCBGT1IgVEVTVDELMAkGA1UEBhMCTFUwHhcNMjAwMzIxMDAwMDAxWhcNMjIwMzIxMDAwMDAxWjBaMRgwFgYDVQQDDA9DRVJULVRFU1QtMy4xLjIxGTAXBgNVBAoMEFRMMyBPcmdhbml6YXRpb24xFjAUBgNVBAsMDUNFUlQgRk9SIFRFU1QxCzAJBgNVBAYTAkxVMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAsDTusM938nv9kMFgTmpcXJaivqhpOIoXoQS6JnxKbu1zcdm/GZWPegn4kpsa0QA2r1d4RkP8k939+PWJv/cRTo2bwzW3W+C01GcKy4jeS3NfttoUMxCa+Bw/x9e53oZQsdx/q3kz/tkVcQq450jxWM2fGCAwJJvQHMhDKCQu3g9D5tEgWBGTCMeCDiRgIxDbH9Q78oMPHya4T9x4sY9Ra1yGI8BAiknEsszablvi1QP/LAG5scxXumM0BuU4Sy8hIPOEC8D4/TLX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IxMDAwMDAxWjBQMRIwEAYDVQQDDAlTREktMy4xLjIxFTATBgNVBAoMDFRTUC0zLjEgTmFtZTEWMBQGA1UECwwNQ0VSVCBGT1IgVEVTVDELMAkGA1UEBhMCTFUwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCu2GIwAVZKG4Fanu2+Kwqt1x7qxD3WjCBPTqNkdGqqW44Je7FvrLoS3Vn6O0e66ddMdL0CEU4JDHadfEk00pylr7neZzk7gAajTtEP6RlDe2Tl2xJ8SlYPuy89/UspA3hbYUq3n6aKUIiT/oKMANMrZHMYqZmpr/4+D4ftRhRp63AeCI60mVtjgTb7UOrMOdklx+IKeQ3qaN/yxiJD2xbd05PDV+IqMtjq+7xEVOmwHrEoQssOMtIVkSl4mvrQw4Q73XQx3Efs58tHNkgIOtnq0HsdLAPcAxuXSdkypjukfWM7qHk/W+VGLEdb84zb/lxM/5jQb4ZY35tAoy+Hs12/AgMBAAGjQjBAMA4GA1UdDwEB/wQEAwIBBjAdBgNVHQ4EFgQUppTCCXd4ZNZiMj6AZDyFsinT+1QwDwYDVR0TAQH/BAUwAwEB/zANBgkqhkiG9w0BAQsFAAOCAQEAjD/2DBANajtwoKut83JQpcVNR5L/JecYeZhe+QvCQEPKNcqdowrkTDuhwkxImCYtqOwGXLGb3q4ZOM0urp48kmEawW8Bf4IS3tAseQ6bFpIjaTkwgAME4zNmuiywHEO/kMIKBnDfJYSaCd8RLeCNmmX6DhHa5jJwpv/UGAJOT1Chg3tEutCV6Z1F7BhA5fVM2BmfTUhZFTrhzf8d5OBCHOuwnvLuc/XaTIWU25VBCVYdA+ZTA6zT+ldu8RomRnxpwy/xX0k77dcu1bL6jKGgevtGec05ywqJg4JF1CAGbZtxnDPs38akxC2nn0QxdMHhmJIqxtIe/jjWOlsxA2YCbA==</ds:X509Certificate></ds:X509Data></ds:KeyInfo><ds:Object><xades:QualifyingProperties xmlns:xades="http://uri.etsi.org/01903/v1.3.2#" Target="#id-8954e491187e37f6e67f450a0a1c0bdb"><xades:SignedProperties Id="xades-id-8954e491187e37f6e67f450a0a1c0bdb"><xades:SignedSignatureProperties><xades:SigningTime>2021-03-21T00:00:55Z</xades:SigningTime><xades:SigningCertificateV2><xades:Cert><xades:CertDigest><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha512"/><ds:DigestValue>hJRezIx80bxd4c0P3VOYRC2nuWffubRNxPlu/3mKvdcjrnN917Ydvwj66JkiaBqiBbHoKj74UP9FlY/dTJDDDA==</ds:DigestValue></xades:CertDigest><xades:IssuerSerialV2>MFkwVKRSMFAxEjAQBgNVBAMMCVNESS0zLjEuMjEVMBMGA1UECgwMVFNQLTMuMSBOYW1lMRYwFAYDVQQLDA1DRVJUIEZPUiBURVNUMQswCQYDVQQGEwJMVQIBBQ==</xades:IssuerSerialV2></xades:Cert></xades:SigningCertificateV2></xades:SignedSignatureProperties><xades:SignedDataObjectProperties><xades:DataObjectFormat ObjectReference="#r-id-8954e491187e37f6e67f450a0a1c0bdb-1"><xades:MimeType>application/octet-stream</xades:MimeType></xades:DataObjectFormat></xades:SignedDataObjectProperties></xades:SignedProperties></xades:QualifyingProperties></ds:Object></ds:Signature></FILE> \ No newline at end of file
diff --git a/moaSig/moa-sig/src/test/resources/testdata/xades/3.1.3-TEST FILE.xml b/moaSig/moa-sig/src/test/resources/testdata/xades/3.1.3-TEST FILE.xml
new file mode 100644
index 0000000..2c3c0c1
--- /dev/null
+++ b/moaSig/moa-sig/src/test/resources/testdata/xades/3.1.3-TEST FILE.xml
@@ -0,0 +1,3 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?><FILE>
+ <TEST>SAMPLE</TEST>
+<ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#" Id="id-284b131c740ea8a1232cd0c379a67f94"><ds:SignedInfo><ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/><ds:SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"/><ds:Reference Id="r-id-284b131c740ea8a1232cd0c379a67f94-1" URI=""><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2002/06/xmldsig-filter2"><dsig-filter2:XPath xmlns:dsig-filter2="http://www.w3.org/2002/06/xmldsig-filter2" Filter="subtract">/descendant::ds:Signature</dsig-filter2:XPath></ds:Transform><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>kfsK43NJaZNZwDUkwbME+Sn+ziU/Rl4K0N2bvfbuwvk=</ds:DigestValue></ds:Reference><ds:Reference Type="http://uri.etsi.org/01903#SignedProperties" URI="#xades-id-284b131c740ea8a1232cd0c379a67f94"><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>zFUkcg5Rb7wz314DmojXsJnuHAdWRNurJ49dGi6Bg9Q=</ds:DigestValue></ds:Reference></ds:SignedInfo><ds:SignatureValue Id="value-id-284b131c740ea8a1232cd0c379a67f94">HIXlERrAdpJ2F2+x8XEwG7dTu7r5XVuwTXv9rXFSNbZmMlylyIVOfkqT6NULlinCCaEBGrGvJWWZjGLGGwJhqzHUapO83iJjYQWr9fjHmkaSEYcX1KrwVV/2WD+cfgEv/MneiU1nR/O4EuWoiuS6yLKGUDD2APsVEVez2kl+6ZEkozvaagZ1rJjhnKdQmyT9Sf5HpLmof9h38yRSIGtM2G31kHOROrgaGgdENBG6HE1Lh/CcRZUwT05VXkzX5z31+uuEWW7AG4U65q0+E5iaDxrlrX2cbBGFs/44x+ufWHMifXOECrz8BRW8Mbmkj2HNSEShl1cj93LCUu1Vl2l4wg==</ds:SignatureValue><ds:KeyInfo><ds:X509Data><ds:X509Certificate>MIIEVTCCAz2gAwIBAgIBBzANBgkqhkiG9w0BAQsFADBQMRIwEAY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OiuA01GxtYjZAgMBAAGjQjBAMA4GA1UdDwEB/wQEAwIBBjAdBgNVHQ4EFgQUNS2KTKTatx0SncxMAAQd7rV0y5EwDwYDVR0TAQH/BAUwAwEB/zANBgkqhkiG9w0BAQsFAAOCAQEAbcFHcfxeStdJe3qvNvlmTKZC44dZJBq7OzdYndZABSipPVTUllYnjmHUjJeBw+sY5GdoqE8EePmDtRi9A3rgGDMakXgiPiusHgWc2JLBe6NBPEQZPQsKo4fyMUYtWKazhF1HWaT4s4BKhlzs3nBysnzs0uRP1KaubUeniWzjJCkJPelhkctkevOa/RL2uKBk8wRMT1eQnIwO+RzhX/F6K+ANJTs9G6iQH07M+zFbYXmk4rZC65WlpZDpVdnUFPSSSSrbc3xObxAJyUI+Nk20MUWRzVVXaIOqVwgCtofeLRmW3ovGqXLc+IdSb4UJiY47zVcV4jU2JT8UkCx+89hBnw==</ds:X509Certificate></ds:X509Data></ds:KeyInfo><ds:Object><xades:QualifyingProperties xmlns:xades="http://uri.etsi.org/01903/v1.3.2#" Target="#id-284b131c740ea8a1232cd0c379a67f94"><xades:SignedProperties Id="xades-id-284b131c740ea8a1232cd0c379a67f94"><xades:SignedSignatureProperties><xades:SigningTime>2021-03-21T00:00:55Z</xades:SigningTime><xades:SigningCertificateV2><xades:Cert><xades:CertDigest><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha512"/><ds:DigestValue>jIVd+2CFahb/on6DnYNMNoL2eIQnGeyZeN0LgB5/i81t2kOS8TVH9oGtPR+3NyoTiYJw/P/gMmdFFdYUVMkOYQ==</ds:DigestValue></xades:CertDigest><xades:IssuerSerialV2>MFkwVKRSMFAxEjAQBgNVBAMMCVNESS0zLjEuMzEVMBMGA1UECgwMVFNQLTMuMSBOYW1lMRYwFAYDVQQLDA1DRVJUIEZPUiBURVNUMQswCQYDVQQGEwJMVQIBBw==</xades:IssuerSerialV2></xades:Cert></xades:SigningCertificateV2></xades:SignedSignatureProperties><xades:SignedDataObjectProperties><xades:DataObjectFormat ObjectReference="#r-id-284b131c740ea8a1232cd0c379a67f94-1"><xades:MimeType>application/octet-stream</xades:MimeType></xades:DataObjectFormat></xades:SignedDataObjectProperties></xades:SignedProperties></xades:QualifyingProperties></ds:Object></ds:Signature></FILE> \ No newline at end of file
diff --git a/moaSig/moa-sig/src/test/resources/testdata/xades/3.1.4-TEST FILE.xml b/moaSig/moa-sig/src/test/resources/testdata/xades/3.1.4-TEST FILE.xml
new file mode 100644
index 0000000..8f98e83
--- /dev/null
+++ b/moaSig/moa-sig/src/test/resources/testdata/xades/3.1.4-TEST FILE.xml
@@ -0,0 +1,3 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?><FILE>
+ <TEST>SAMPLE</TEST>
+<ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#" Id="id-15df7023b765cb0802ab6120c64350a4"><ds:SignedInfo><ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/><ds:SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"/><ds:Reference Id="r-id-15df7023b765cb0802ab6120c64350a4-1" URI=""><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2002/06/xmldsig-filter2"><dsig-filter2:XPath xmlns:dsig-filter2="http://www.w3.org/2002/06/xmldsig-filter2" Filter="subtract">/descendant::ds:Signature</dsig-filter2:XPath></ds:Transform><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>kfsK43NJaZNZwDUkwbME+Sn+ziU/Rl4K0N2bvfbuwvk=</ds:DigestValue></ds:Reference><ds:Reference Type="http://uri.etsi.org/01903#SignedProperties" URI="#xades-id-15df7023b765cb0802ab6120c64350a4"><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>wf3ogY0gBJFDoeHA7dWjV7pM21zjGL5acxFKECstGDU=</ds:DigestValue></ds:Reference></ds:SignedInfo><ds:SignatureValue Id="value-id-15df7023b765cb0802ab6120c64350a4">qOQT5C4Pl1evVeoG5sgFaTElTuYOR30JibAMrtaqMjfv/L/92Bbx8SBp5SHKIU6BEOnCLQ43g7QFNUUn8144i/lyIoMWkrJjogGmr6jTbnQh3cuH/ZhJh37GauoK44haISuvbFIVXDrjnWJFtzVsYfQCtewmkPl7Fv16FpAmSq+JJzTjLENivaP6W3oBmbrPnjh/bV2h/HFNc4Ee72ibV7CJZjZhq1+9yz1HRKIwh+wbbPzq4eT/2IZSX1p3rNgiOls9MwFOh0aQUhcusYQ/zd6uQHDZWvZOYrCUAOyP4ve3eKcjLx02zjQCbMo9jhNHahmxT4sVQWSpeeisgi3oew==</ds:SignatureValue><ds:KeyInfo><ds:X509Data><ds:X509Certificate>MIIEVTCCAz2gAwIBAgIBCTANBgkqhkiG9w0BAQsFADBQMRIwEAYDVQQDDAlTREktMy4xLjQxFTATBgNVBAoMDFRTUC0zLjEgTmFtZTEWMBQGA1UECwwNQ0VSVCBGT1IgVEVTVDELMAkGA1UEBhMCTFUwHhcNMjAwMzIxMDAwMDAzWhcNMjIwMzIxMDAwMDAzWjBaMRgwFgYDVQQDDA9DRVJULVRFU1QtMy4xLjQxGTAXBgNVBAoMEFRMMyBPcmdhbml6YXRpb24xFjAUBgNVBAsMDUNFUlQgRk9SIFRFU1QxCzAJBgNVBAYTAkxVMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA1W4wcqql6EUyjCnKeybYoMXLWP6VeS63EPg3N0NBSkIKL5mvXRZNE2ARjRMOV7X6M460rsiDMsywW0We1antJSFrHmgiNcGlh+P1ntiZQaNb1ppKuZLwUWCg53u4lQjRb0h3tOfVZVuR6kwLPQsGwGBBbmPw19YQz4o3EFR/VGuEVAEbvugGYiBSo65e8kvsppNYh91sa+vUrQ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xades:QualifyingProperties xmlns:xades="http://uri.etsi.org/01903/v1.3.2#" Target="#id-15df7023b765cb0802ab6120c64350a4"><xades:SignedProperties Id="xades-id-15df7023b765cb0802ab6120c64350a4"><xades:SignedSignatureProperties><xades:SigningTime>2021-03-21T00:00:55Z</xades:SigningTime><xades:SigningCertificateV2><xades:Cert><xades:CertDigest><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha512"/><ds:DigestValue>Ylr58tDtTcrf1ILyJEGxumSmUBSmw+b12U6ECj4Z/2N2j3WETPXsuj7hf0nce+26zcNsTEgGvZLmBj6FSP2dTg==</ds:DigestValue></xades:CertDigest><xades:IssuerSerialV2>MFkwVKRSMFAxEjAQBgNVBAMMCVNESS0zLjEuNDEVMBMGA1UECgwMVFNQLTMuMSBOYW1lMRYwFAYDVQQLDA1DRVJUIEZPUiBURVNUMQswCQYDVQQGEwJMVQIBCQ==</xades:IssuerSerialV2></xades:Cert></xades:SigningCertificateV2></xades:SignedSignatureProperties><xades:SignedDataObjectProperties><xades:DataObjectFormat ObjectReference="#r-id-15df7023b765cb0802ab6120c64350a4-1"><xades:MimeType>application/octet-stream</xades:MimeType></xades:DataObjectFormat></xades:SignedDataObjectProperties></xades:SignedProperties></xades:QualifyingProperties></ds:Object></ds:Signature></FILE> \ No newline at end of file
diff --git a/moaSig/moa-sig/src/test/resources/testdata/xades/3.1.5-TEST FILE.xml b/moaSig/moa-sig/src/test/resources/testdata/xades/3.1.5-TEST FILE.xml
new file mode 100644
index 0000000..04fcb0e
--- /dev/null
+++ b/moaSig/moa-sig/src/test/resources/testdata/xades/3.1.5-TEST FILE.xml
@@ -0,0 +1,3 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?><FILE>
+ <TEST>SAMPLE</TEST>
+<ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#" Id="id-0910d8541489006514713e137a135524"><ds:SignedInfo><ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/><ds:SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"/><ds:Reference Id="r-id-0910d8541489006514713e137a135524-1" URI=""><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2002/06/xmldsig-filter2"><dsig-filter2:XPath xmlns:dsig-filter2="http://www.w3.org/2002/06/xmldsig-filter2" Filter="subtract">/descendant::ds:Signature</dsig-filter2:XPath></ds:Transform><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>kfsK43NJaZNZwDUkwbME+Sn+ziU/Rl4K0N2bvfbuwvk=</ds:DigestValue></ds:Reference><ds:Reference Type="http://uri.etsi.org/01903#SignedProperties" URI="#xades-id-0910d8541489006514713e137a135524"><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>OFUzlBRuMVRuY1zONGFlWJNF5U8DcP9z2FmtcvDQcOU=</ds:DigestValue></ds:Reference></ds:SignedInfo><ds:SignatureValue Id="value-id-0910d8541489006514713e137a135524">RqqUHMDLxYpdThA0Sd0quL0agE3dK4dsYH61jgMNvcjeIq2rnrFH8BcsbOWbE9SEZCAGxDi+fhqddfpuJDsCTOJz1fxsO3SEolzJZp0N7m6iwFtxUYlIfVke6myI8uI5q4jfbFhHl9j6qJJ+Pnxm/eGaeTJQAPQd6ur/x5tI7lne2b1TmQvATu6kyhwci3vZ5RQEzplYxRUwL7fe9gHWnaRh3pnOEtbq7MasL1WV4WjxiMIJVX/wJ4Gozpw7J7+iOLNIExtjq7E9kasyXvHLuaoIYrAv+4Hj4BrqYfmlXtSVLaEZ4+zRJ6i/JbRtKLEAdlV0LtpBwDArTvxIGevKAA==</ds:SignatureValue><ds:KeyInfo><ds:X509Data><ds:X509Certificate>MIIEQDCCAyigAwIBAgI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ZTPq5YIIetAgMBAAGjQjBAMA4GA1UdDwEB/wQEAwIBBjAdBgNVHQ4EFgQU/RT4GUDMFhfJk14LhRBKtkyOqhIwDwYDVR0TAQH/BAUwAwEB/zANBgkqhkiG9w0BAQsFAAOCAQEAJeW30aeEkQjPDsI9VNwLAvou+9y5kpPWB81Efj6EXLn2W0Z4IhoAHXofejLYc9ZcSE29Jr+lS5NbURmLW1XaxaeYabAB8o1AJkJ7mGWB2XkW4u+fo9Ql4Ac5v/YZP+JbGvQRwfZDy+x3Hwj0TtoBPV1/rzWMAT5YhtBQoWT9Mf26ja1v8qhG4sR/1iYkKYCzyK5yOe8nkL0NMFQ5juDmYpYnuruKQn/TPeLo9KvowEkE2DDvMaW7uy3Py72/MMQzsFSVh7rMl5YzDWWpWMTzyewq7Fd9OYfKgbhGztbl3nT8Rc0U30MweKOyPe6oMhPfK86l4AlD6Oh8nSUcFYJUBQ==</ds:X509Certificate></ds:X509Data></ds:KeyInfo><ds:Object><xades:QualifyingProperties xmlns:xades="http://uri.etsi.org/01903/v1.3.2#" Target="#id-0910d8541489006514713e137a135524"><xades:SignedProperties Id="xades-id-0910d8541489006514713e137a135524"><xades:SignedSignatureProperties><xades:SigningTime>2015-06-01T12:00:00Z</xades:SigningTime><xades:SigningCertificateV2><xades:Cert><xades:CertDigest><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha512"/><ds:DigestValue>QjRZletbvfm7Zjf6jHqQGsYbqJHCt7MqEhx+o3dW5q+o0BCdHmbPXWteykgdILnT6jTJRPCbLnXMc4X3VA4gmA==</ds:DigestValue></xades:CertDigest><xades:IssuerSerialV2>MFkwVKRSMFAxEjAQBgNVBAMMCVNESS0zLjEuNTEVMBMGA1UECgwMVFNQLTMuMSBOYW1lMRYwFAYDVQQLDA1DRVJUIEZPUiBURVNUMQswCQYDVQQGEwJMVQIBCw==</xades:IssuerSerialV2></xades:Cert></xades:SigningCertificateV2></xades:SignedSignatureProperties><xades:SignedDataObjectProperties><xades:DataObjectFormat ObjectReference="#r-id-0910d8541489006514713e137a135524-1"><xades:MimeType>application/octet-stream</xades:MimeType></xades:DataObjectFormat></xades:SignedDataObjectProperties></xades:SignedProperties><xades:UnsignedProperties><xades:UnsignedSignatureProperties><xades:SignatureTimeStamp Id="TS-3e7109bc-8cb2-4802-a54b-93afcd9083ed"><ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/><xades:EncapsulatedTimeStamp Id="ETS-3e7109bc-8cb2-4802-a54b-93afcd9083ed">MIIHUwYJKoZIhvcNAQcCoIIHRDCCB0ACAQMxDzANBglghkgBZQMEAgEFADByBgsqhkiG9w0BCRABBKBjBGEwXwIBAQYDKgMEMDEwDQYJYIZIAWUDBAIBBQAEIPUTjl0K16AIrW6j51ElmRr0pJto2Ee/+s+5hqqH/ztpAhEA3iyY8I+Edd9uz15ic3vtUxgPMjAxNTA2MDExMjAwMDBaoIIEUjCCBE4wggM2oAMCAQICAQIwDQYJKoZIhvcNAQELBQAwWDEVMBMGA1UEAwwMdGltZXN0YW1waW5nMRowGAYDVQQKDBFUTC04IE9yZ2FuaXphdGlvbjEWMBQGA1UECwwNQ0VSVCBGT1IgVEVTVDELMAkGA1UEBhMCVUswHhcNMDEwMzIxMDAwMDQ5WhcNNDEwMzIxMDAwMDQ5WjBYMRUwEwYDVQQDDAx0aW1lc3RhbXBpbmcxGjAYBgNVBAoMEVRMLTggT3JnYW5pemF0aW9uMRYwFAYDVQQLDA1DRVJUIEZPUiBURVNUMQswCQYDVQQGEwJVSzCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAK7hMYRDxP/7sy1hZbJKwhrkGJ00gu3aCGZSIfwvOOQK6O8Y1eGS2OTbb/ncI733223HnLJPlskizEqLh806wixXwxSkFquDqqbb3OR7C6F6IwlgeuciIco6PUEKg0H1qJ/uVwXMY1cqN/s5KVig5Zt5fKY5qYLDoPOMd2/InXV1fpvon5R5jGxFyvMQSJezpUqewt5dzgdW27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QYLKoZIhvcNAQkQAQQwHAYJKoZIhvcNAQkFMQ8XDTIxMDMyMTAwMDA1NlowLQYJKoZIhvcNAQk0MSAwHjANBglghkgBZQMEAgEFAKENBgkqhkiG9w0BAQsFADAvBgkqhkiG9w0BCQQxIgQgbohntFAs3tNB8Jt1yadVYsCVyRjmA3fWs5hGw4vDuskwNwYLKoZIhvcNAQkQAi8xKDAmMCQwIgQg9RNIYV1C37SU61fg0gkHa7rh5AbFx6c8n/4OxmcYXOQwDQYJKoZIhvcNAQELBQAEggEAFMeUqoXKW4AjTSBW6Ks/kFULhL6wS2Wd1eVduUF4UhqKf+zB9uNx2CJHneVXq1FGeHswUu8H40eTEIj8xiiLlwWCrQVbBXLmCyhYPrV+eq0ivq9hXlVlUjO6aLtjx2xaxWDH73yE4e65L3Si5UqhLnk3seACXZF21KRwsZ0mjkotFgxiVv9KTwqZVAAJUnGD4R00BqKOSgpcV7risdigx5fBGRJJaH+tCKCRkH+N6kQ6wP2agszFSgrw28q7w2qmAzuskViXvtUmw6QV+/ddJNaBQrO1PQmY0LCNlnB9nqMoveYZpQJHNukB0OidztzjljTycreLc5EDJqnF7sHd6g==</xades:EncapsulatedTimeStamp></xades:SignatureTimeStamp></xades:UnsignedSignatureProperties></xades:UnsignedProperties></xades:QualifyingProperties></ds:Object></ds:Signature></FILE> \ No newline at end of file
diff --git a/moaSig/moa-sig/src/test/resources/testdata/xades/3.1.6-TEST FILE.xml b/moaSig/moa-sig/src/test/resources/testdata/xades/3.1.6-TEST FILE.xml
new file mode 100644
index 0000000..211fa09
--- /dev/null
+++ b/moaSig/moa-sig/src/test/resources/testdata/xades/3.1.6-TEST FILE.xml
@@ -0,0 +1,3 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?><FILE>
+ <TEST>SAMPLE</TEST>
+<ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#" Id="id-6a5c69128684f45520aa4ab1c7a7be33"><ds:SignedInfo><ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/><ds:SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"/><ds:Reference Id="r-id-6a5c69128684f45520aa4ab1c7a7be33-1" URI=""><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2002/06/xmldsig-filter2"><dsig-filter2:XPath xmlns:dsig-filter2="http://www.w3.org/2002/06/xmldsig-filter2" Filter="subtract">/descendant::ds:Signature</dsig-filter2:XPath></ds:Transform><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>kfsK43NJaZNZwDUkwbME+Sn+ziU/Rl4K0N2bvfbuwvk=</ds:DigestValue></ds:Reference><ds:Reference Type="http://uri.etsi.org/01903#SignedProperties" URI="#xades-id-6a5c69128684f45520aa4ab1c7a7be33"><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>InxG2/EBxxQrBAHG5+MZ4qgImGjV2nPnj6/j5INor/8=</ds:DigestValue></ds:Reference></ds:SignedInfo><ds:SignatureValue Id="value-id-6a5c69128684f45520aa4ab1c7a7be33">jEeZnaiySQEQujb86Q9PB50OGDIY5TbG6uTFBr2hbplB/WMa3GkCXXBORhU7z/gMN4be/CFq4NKrfDf5c9PfsyYV6q6cF+zhJLZ7/I9oJdckKriaSVCwd7wdgbWzo4kNZwqEgIiyuhYtQICrn4TG3Mhdzq5W4S3/QmG7SNvntlrQnxFOjnPlnv7yaTPwUe3YrxhkV6iFNdy7LPHfXXywKV7ZqD7xWdBlFAai9JNQIuNWzsmETtf+gEOgzSm++r2mx26/R/Sp4lH/jTPmvKuYIqwm9kBqsyRY7Nye2yGJf2EwZLfTspU5UcdODYuXVrF9AfTWe29V3e9u22yIf4byLg==</ds:SignatureValue><ds:KeyIn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0ETg/A/CEENXL7SYR+Pwrs8NxBMSiCisn2MgZj0ai0wL9F3xEw1LAgMBAAGjQjBAMA4GA1UdDwEB/wQEAwIBBjAdBgNVHQ4EFgQU7Iy3KTXolgX4cLvlgCTScopBmFowDwYDVR0TAQH/BAUwAwEB/zANBgkqhkiG9w0BAQsFAAOCAQEAI77ElH6aR61AjdbN6WLmnS04ItWPcfQ9+qmZWaqWS1SyvSwG6XKWWJQ4SsisEpaVSTYP3acB6843w2xLcEiE3/7xI1nJEYKh6kNVS8Kubyw/IOcsaGh+m4Kqdr7FVo4LjAKgYny+LUc1fiV/zrSoSvAQb/qgHwUMFQllZ8IklBhm91+5NNhCGrBtroxkY02DjAVbG6Y4avXlyxHWMkmHGw35q+vMp+l71kNFNCzc9r/eK1oby4GWnlCIq1RNlOQ/uvu1HzF/NUdc8ZHdvoVTqg8vSWTptbJHQSWmXG2yuWxCgDp5ucnRRtJ2zMoA3hMGzoiKdJ5XzuhQgzY+A1kn2Q==</ds:X509Certificate></ds:X509Data></ds:KeyInfo><ds:Object><xades:QualifyingProperties xmlns:xades="http://uri.etsi.org/01903/v1.3.2#" Target="#id-6a5c69128684f45520aa4ab1c7a7be33"><xades:SignedProperties Id="xades-id-6a5c69128684f45520aa4ab1c7a7be33"><xades:SignedSignatureProperties><xades:SigningTime>2015-06-01T12:00:00Z</xades:SigningTime><xades:SigningCertificateV2><xades:Cert><xades:CertDigest><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha512"/><ds:DigestValue>tIDcbP4xUcSSd3bJpDbdPIoKp0zXKjOrHX5YMNi0IFyYmn/4QIkbmJ62bQOzW83hyR57lhHLyQMlqnruSLbKlg==</ds:DigestValue></xades:CertDigest><xades:IssuerSerialV2>MFkwVKRSMFAxEjAQBgNVBAMMCVNESS0zLjEuNjEVMBMGA1UECgwMVFNQLTMuMSBOYW1lMRYwFAYDVQQLDA1DRVJUIEZPUiBURVNUMQswCQYDVQQGEwJMVQIBDQ==</xades:IssuerSerialV2></xades:Cert></xades:SigningCertificateV2></xades:SignedSignatureProperties><xades:SignedDataObjectProperties><xades:DataObjectFormat ObjectReference="#r-id-6a5c69128684f45520aa4ab1c7a7be33-1"><xades:MimeType>application/octet-stream</xades:MimeType></xades:DataObjectFormat></xades:SignedDataObjectProperties></xades:SignedProperties><xades:UnsignedProperties><xades:UnsignedSignatureProperties><xades:SignatureTimeStamp Id="TS-36a486b1-506c-49ba-8efe-2f33506d86b0"><ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/><xades:EncapsulatedTimeStamp Id="ETS-36a486b1-506c-49ba-8efe-2f33506d86b0">MIIHUgYJKoZIhvcNAQcCoIIHQzCCBz8CAQMxDzANBglghkgBZQMEAgEFADBxBgsqhkiG9w0BCRABBKBiBGAwXgIBAQYDKgMEMDEwDQYJYIZIAWUDBAIBBQAEINeXrL6MSKwIuqjKNHxmtvX0hjN74RpVz2U5dysyKvJuAhAXB1dFag7QVwT8gtJshk/NGA8yMDE1MDYwMTEyMDAwMFqgggRSMIIETjCCAzagAwIBAgIBAjANBgkqhkiG9w0BAQsFADBYMRUwEwYDVQQDDAx0aW1lc3RhbXBpbmcxGjAYBgNVBAoMEVRMLTggT3JnYW5pemF0aW9uMRYwFAYDVQQLDA1DRVJUIEZPUiBURVNUMQswCQYDVQQGEwJVSzAeFw0wMTAzMjEwMDAwNDlaFw00MTAzMjEwMDAwNDlaMFgxFTATBgNVBAMMDHRpbWVzdGFtcGluZzEaMBgGA1UECgwRVEwtOCBPcmdhbml6YXRpb24xFjAUBgNVBAsMDUNFUlQgRk9SIFRFU1QxCzAJBgNVBAYTAlVLMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAruExhEPE//uzLWFlskrCGuQYnTSC7doIZlIh/C845Aro7xjV4ZLY5Ntv+dwjvffbbcecsk+WySLMSouHzTrCLFfDFKQWq4Oqptvc5HsLoXojCWB65yIhyjo9QQqDQfWon+5XBcxjVyo3+zk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lQgRk9SIFRFU1QxCzAJBgNVBAYTAlVLAgECMA0GCWCGSAFlAwQCAQUAoIHTMBoGCSqGSIb3DQEJAzENBgsqhkiG9w0BCRABBDAcBgkqhkiG9w0BCQUxDxcNMjEwMzIxMDAwMDU2WjAtBgkqhkiG9w0BCTQxIDAeMA0GCWCGSAFlAwQCAQUAoQ0GCSqGSIb3DQEBCwUAMC8GCSqGSIb3DQEJBDEiBCDa4mYMJL2/C8rq+IrqHjxw9fVi9HzXigOiwh5bkY8o8zA3BgsqhkiG9w0BCRACLzEoMCYwJDAiBCD1E0hhXULftJTrV+DSCQdruuHkBsXHpzyf/g7GZxhc5DANBgkqhkiG9w0BAQsFAASCAQCeAX75grt+7X4kqam3ulUoOB0Ce/82hWo/ZM+37pSgk8e6unJZrTcI8NncJqhpaZtDcLD/T3NSMYpb+kZBxuvx+5s29nEkw3yQHu9ZRiY9SnfCXJJolhpy3TkfwIdsZODUe+EmirXIpsLbkZN81cIcgKtrqlxd6KWScvPmgw/8RDF3cIarOD5s+6vVvhDVQDKRwZFAWyIyDrYV+IPEtzgeyEpNqLuN0ibG6O0JeEP6bVvKvbAkOBcrwt7ydny4eL23gi7UhtcX+FBfWRNp3I/tKGsQsO3+jxsxrEezhWf/vPvFhBxYsjnZyAZ6CRF+r7TKk2pewtsRo75sWb7Fy294</xades:EncapsulatedTimeStamp></xades:SignatureTimeStamp></xades:UnsignedSignatureProperties></xades:UnsignedProperties></xades:QualifyingProperties></ds:Object></ds:Signature></FILE> \ No newline at end of file
diff --git a/moaSig/moa-sig/src/test/resources/testdata/xades/3.2.1-TEST FILE.xml b/moaSig/moa-sig/src/test/resources/testdata/xades/3.2.1-TEST FILE.xml
new file mode 100644
index 0000000..724fddd
--- /dev/null
+++ b/moaSig/moa-sig/src/test/resources/testdata/xades/3.2.1-TEST FILE.xml
@@ -0,0 +1,3 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?><FILE>
+ <TEST>SAMPLE</TEST>
+<ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#" Id="id-9e812443ca9df96dc8cd3d43ced0e1f3"><ds:SignedInfo><ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/><ds:SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"/><ds:Reference Id="r-id-9e812443ca9df96dc8cd3d43ced0e1f3-1" URI=""><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2002/06/xmldsig-filter2"><dsig-filter2:XPath xmlns:dsig-filter2="http://www.w3.org/2002/06/xmldsig-filter2" Filter="subtract">/descendant::ds:Signature</dsig-filter2:XPath></ds:Transform><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>kfsK43NJaZNZwDUkwbME+Sn+ziU/Rl4K0N2bvfbuwvk=</ds:DigestValue></ds:Reference><ds:Reference Type="http://uri.etsi.org/01903#SignedProperties" URI="#xades-id-9e812443ca9df96dc8cd3d43ced0e1f3"><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>d0pY4yTG80LYcWlpr4VAzGL0lll43g13Gk5gpdopDg4=</ds:DigestValue></ds:Reference></ds:SignedInfo><ds:SignatureValue Id="value-id-9e812443ca9df96dc8cd3d43ced0e1f3">jq1NwJXRuzDzKsdo78ASyhESVEWaqVr0R+nb6YDpSzMe9GdJ0ilgP4gC3/AX1pilY+BykU8xhbJPaAApFo8OakwH2aw7ddXjnA8BU/o8+E2zc7bOtXc4Qz3/eXPBO2tqjiAksgNfjDSGsG5ryJxz0q34Q3rrl4+CA0+BlXNMBEDH1xwAQhhbkWXRuLwX/h2CEJDVHUXMwnIifzLc/yCHEJ/oZw2F2JrocPLiNct7XZAW7oEZBxXzVRPJBvfB491ChWCU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/GB0Sg7BE0lLSPfso2dxKEPZ2NaaYdrBZQoBX27EvQnCFD5DizZmJubCAHbudwltzw9gvgKFoCZCdtFi4Jo6H1ow238ow8JiFpe6uOS+zeWYtiAJ+lNGT6uy07CoQ3oFCcfkl9Nf68BkpMvcxnEA4gqSZy/D1vBfLpxydrHvCoEEN/vk6WFzl2WtZFTAgMBAAGjQjBAMA4GA1UdDwEB/wQEAwIBBjAdBgNVHQ4EFgQUVlqLYlNOdoC3+HdUOJF8+OPw3o0wDwYDVR0TAQH/BAUwAwEB/zANBgkqhkiG9w0BAQsFAAOCAQEASY9IZ6aJlqbieotr9DGdtsxkVoBevHkE4wn2Ka3bFYSbpiwHFkqqGY+6kkdsBI6U7MQICXJHEe1ZqwpVOZxenFmoI7ttIz/UNFAtUkUq6F3OhnJIgfP4cn+huPNcQ0vuzopNJ0NCHSlmO40um1Dk3+jyqNDp60uVMMeNg+tdbcdnNGHY0a2A1UTlcjraHveAom6TeNDzyKepqESwF5AQr48E0UE9dnbLzdgTbm0ONzS5obZ3dClRrWOZqAwFmcVxYh1w+m99y7mu8FBsYK3rw9gRRVTql/+ZnKbcA1KyS7C1+UmwAbPEsjtUVL2HhIixWRnWAc1+NQIicbj7j5rfQg==</ds:X509Certificate></ds:X509Data></ds:KeyInfo><ds:Object><xades:QualifyingProperties xmlns:xades="http://uri.etsi.org/01903/v1.3.2#" Target="#id-9e812443ca9df96dc8cd3d43ced0e1f3"><xades:SignedProperties Id="xades-id-9e812443ca9df96dc8cd3d43ced0e1f3"><xades:SignedSignatureProperties><xades:SigningTime>2021-03-21T00:00:57Z</xades:SigningTime><xades:SigningCertificateV2><xades:Cert><xades:CertDigest><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha512"/><ds:DigestValue>3CNw8XTqWZaWI0xDogv+atvl69bE+jlJRFkblYbCCWA5ef2XTILxtc3taRHKA1nhZf5i7MPGas6DEX3QpN0XGw==</ds:DigestValue></xades:CertDigest><xades:IssuerSerialV2>MFkwVKRSMFAxEjAQBgNVBAMMCVNESS0zLjIuMTEVMBMGA1UECgwMVFNQLTMuMiBOYW1lMRYwFAYDVQQLDA1DRVJUIEZPUiBURVNUMQswCQYDVQQGEwJMVQIBDw==</xades:IssuerSerialV2></xades:Cert></xades:SigningCertificateV2></xades:SignedSignatureProperties><xades:SignedDataObjectProperties><xades:DataObjectFormat ObjectReference="#r-id-9e812443ca9df96dc8cd3d43ced0e1f3-1"><xades:MimeType>application/octet-stream</xades:MimeType></xades:DataObjectFormat></xades:SignedDataObjectProperties></xades:SignedProperties></xades:QualifyingProperties></ds:Object></ds:Signature></FILE> \ No newline at end of file
diff --git a/moaSig/moa-sig/src/test/resources/testdata/xades/3.2.2-TEST FILE.xml b/moaSig/moa-sig/src/test/resources/testdata/xades/3.2.2-TEST FILE.xml
new file mode 100644
index 0000000..be4d34d
--- /dev/null
+++ b/moaSig/moa-sig/src/test/resources/testdata/xades/3.2.2-TEST FILE.xml
@@ -0,0 +1,3 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?><FILE>
+ <TEST>SAMPLE</TEST>
+<ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#" Id="id-de106955808ff5c9bc8a92abce570219"><ds:SignedInfo><ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/><ds:SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"/><ds:Reference Id="r-id-de106955808ff5c9bc8a92abce570219-1" URI=""><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2002/06/xmldsig-filter2"><dsig-filter2:XPath xmlns:dsig-filter2="http://www.w3.org/2002/06/xmldsig-filter2" Filter="subtract">/descendant::ds:Signature</dsig-filter2:XPath></ds:Transform><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>kfsK43NJaZNZwDUkwbME+Sn+ziU/Rl4K0N2bvfbuwvk=</ds:DigestValue></ds:Reference><ds:Reference Type="http://uri.etsi.org/01903#SignedProperties" URI="#xades-id-de106955808ff5c9bc8a92abce570219"><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>PNDz/C+jQkem6H4kA5lkzMsqtzYFM1zVTV0PY7Xm6bE=</ds:DigestValue></ds:Reference></ds:SignedInfo><ds:SignatureValue Id="value-id-de106955808ff5c9bc8a92abce570219">yKWpA++/mhM8Mfnt75It0vklrBUPB+sw6hq+LGvgyr+K69WmADp3JO5gzuRbIxtczy8/xTWr5MTONXs/eqI/zGHXUpojaIx31YUeY/W09tyKlRW72ikJx0Bjc1N+NZQYARMBukIXlMf0Dw7ek3DEKpnW3tTBmjwh4d8FTTv22Isw0J3XxubSIunlNxAthoe5FSSJoV6Ck0ZUz//tT+jusUigWcvdi5/zftqvze/nwsrDLl/M9Y63rGxxHYesk0b2c0NKyXZ3ysGjKUNqFUfRnL5P5t3KweS6aGP7w93OlPVffzY/txHFM7yAGIcYGD1vTNnVJQ3ZZQIzIOa8HUH4qw==</ds:SignatureValue><ds:KeyInfo><ds:X509Data><ds:X509Certificate>MIIEYDCCA0igAwIBAgIBETANBgkqhkiG9w0BAQsFADBbMRIwEAYDVQQDDAlTREktMy4yLjIxIDAeBgNVBAoMF1RTUC0zLjIgVW5tYXRjaGluZyBuYW1lMRYwFAYDVQQLDA1DRVJUIEZPUiBURVNUMQswCQYDVQQGEwJMVTAeFw0yMDAzMjEwMDAwMDRaFw0yMjAzMjEwMDAwMDRaMFoxGDAWBgNVBAMMD0NFUlQtVEVTVC0zLjIuMjEZMBcGA1UECgwQVEwzIE9yZ2FuaXphdGlvbjEWMBQGA1UECwwNQ0VSVCBGT1IgVEVTVDELMAkGA1UEBhMCTFUwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAo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yl5gd0PJX1kxtEMTGKtwWucndtATWeYd5JX9rAkM7QPK6wy6uNu2JtL7tUTNbkIu/GYtD4wntim9OAYSKGjg1jbCD36N8pzNyVCteWae+FV3DOsYDAabRQC/974jb4xkpqRpFGWLZLIwEGndpFv1rHv9Gb4FWPdXWM22z1aMlRZsOs9ZnpAl939uINIyZo+w1A=</ds:X509Certificate></ds:X509Data></ds:KeyInfo><ds:Object><xades:QualifyingProperties xmlns:xades="http://uri.etsi.org/01903/v1.3.2#" Target="#id-de106955808ff5c9bc8a92abce570219"><xades:SignedProperties Id="xades-id-de106955808ff5c9bc8a92abce570219"><xades:SignedSignatureProperties><xades:SigningTime>2021-03-21T00:00:57Z</xades:SigningTime><xades:SigningCertificateV2><xades:Cert><xades:CertDigest><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha512"/><ds:DigestValue>OoTJZLqNZJVRMgvAbsgQPl1fopa2OWOMaXTriTp5PMP7ai1V66Qg9XKiYWGe6vvgVGHrWKZnRhnhUfscqxYNyA==</ds:DigestValue></xades:CertDigest><xades:IssuerSerialV2>MGQwX6RdMFsxEjAQBgNVBAMMCVNESS0zLjIuMjEgMB4GA1UECgwXVFNQLTMuMiBVbm1hdGNoaW5nIG5hbWUxFjAUBgNVBAsMDUNFUlQgRk9SIFRFU1QxCzAJBgNVBAYTAkxVAgER</xades:IssuerSerialV2></xades:Cert></xades:SigningCertificateV2></xades:SignedSignatureProperties><xades:SignedDataObjectProperties><xades:DataObjectFormat ObjectReference="#r-id-de106955808ff5c9bc8a92abce570219-1"><xades:MimeType>application/octet-stream</xades:MimeType></xades:DataObjectFormat></xades:SignedDataObjectProperties></xades:SignedProperties></xades:QualifyingProperties></ds:Object></ds:Signature></FILE> \ No newline at end of file
diff --git a/moaSig/moa-sig/src/test/resources/testdata/xades/3.3.1-TEST FILE.xml b/moaSig/moa-sig/src/test/resources/testdata/xades/3.3.1-TEST FILE.xml
new file mode 100644
index 0000000..de83c01
--- /dev/null
+++ b/moaSig/moa-sig/src/test/resources/testdata/xades/3.3.1-TEST FILE.xml
@@ -0,0 +1,3 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?><FILE>
+ <TEST>SAMPLE</TEST>
+<ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#" Id="id-7c20131bb5d6759c38727aaaeaf88441"><ds:SignedInfo><ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/><ds:SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"/><ds:Reference Id="r-id-7c20131bb5d6759c38727aaaeaf88441-1" URI=""><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2002/06/xmldsig-filter2"><dsig-filter2:XPath xmlns:dsig-filter2="http://www.w3.org/2002/06/xmldsig-filter2" Filter="subtract">/descendant::ds:Signature</dsig-filter2:XPath></ds:Transform><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>kfsK43NJaZNZwDUkwbME+Sn+ziU/Rl4K0N2bvfbuwvk=</ds:DigestValue></ds:Reference><ds:Reference Type="http://uri.etsi.org/01903#SignedProperties" URI="#xades-id-7c20131bb5d6759c38727aaaeaf88441"><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>gEff08vQgujI+nFPs3cvCVhDZYgYROFKVKumkyzN5CU=</ds:DigestValue></ds:Reference></ds:SignedInfo><ds:SignatureValue Id="value-id-7c20131bb5d6759c38727aaaeaf88441">B2yGlfS5sqJ6HwEIAVnTI1yl0FH3DcXcY3QfqqYxfGa/R06S7yoZRdBfhxo8rTwCV9o8yjKnvvRuw4u5xKOqZjRoXM75hBWpazpwG+WIZph/HXXs7EwfiRtdpovni8X8mrRe+EVsPr4mocCWRLdE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IS4OB411oWOKxMZCLufWXQTxd7UyCflQ/bZdrziDuKOR054TH+D/Jil0kVHjiEdTNXCZ+ATqYUgEaHUG73puKnijTPvCR4sLVwWa5Vw774uWKF7fzqstoL2F8kl0hZwiBFsj9qAfXJ/QAXh/+cxuSniCLT1CbbN4oShXIxNUN7Dp10bndr3z2HWl1vsourWNFlc59zZS0Y/ziHzDvtvh+kS/JuGK/65ho5wBXozIPPl3JA6m8MQycj4KARfSSBc35+N1ackPStKdiaj+k3zPCM+CFgaxpqS8lAgMBAAGjQjBAMA4GA1UdDwEB/wQEAwIBBjAdBgNVHQ4EFgQU3ZgNjPkjeTwK4XtkyEUsSM6wIPswDwYDVR0TAQH/BAUwAwEB/zANBgkqhkiG9w0BAQsFAAOCAQEAPOZCj5o5CiWRYbDfH1ZGazO1OC7xCFEP43FG0J2Yiin10NYoVv1VIcjq7azIqmBCcQgC6G7T0gXkz0boJJ+lA5oKx+Mb5NkDQFc9+akfKSEagBtFSAvayAuh1YpTKM00qDaM61N26iLS7VPK/dHLlDfNJAEQJy3leiL/UG3bDUvxI1MyUXmLanzjSVoZoMZHPkH4nZxw0GXhdGxtUjFRnSaSH4SHg82fJfm6UB+hYCgb4mnItlcSi/UHeJ3Lofs6CcqxVWbr/kiP+mmONPn/yhxAitmiZbkdX2YVHvHIxJTMe28t72YBMbOn2poM5iydCURlC5SQhvgrL1jaL0/xMA==</ds:X509Certificate></ds:X509Data></ds:KeyInfo><ds:Object><xades:QualifyingProperties xmlns:xades="http://uri.etsi.org/01903/v1.3.2#" Target="#id-7c20131bb5d6759c38727aaaeaf88441"><xades:SignedProperties Id="xades-id-7c20131bb5d6759c38727aaaeaf88441"><xades:SignedSignatureProperties><xades:SigningTime>2021-03-21T00:00:57Z</xades:SigningTime><xades:SigningCertificateV2><xades:Cert><xades:CertDigest><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha512"/><ds:DigestValue>J2SLLwIWdUzYxFLV92m4GJ7ziwEFYA/zUawlm1iOYPp8qRdzZ3yrveDQ6pZXQrh2u2N02aUpoEr0w9hVjfXSoA==</ds:DigestValue></xades:CertDigest><xades:IssuerSerialV2>MFkwVKRSMFAxEjAQBgNVBAMMCVNESS0zLjMuMTEVMBMGA1UECgwMVFNQLTMuMyBOYW1lMRYwFAYDVQQLDA1DRVJUIEZPUiBURVNUMQswCQYDVQQGEwJMVQIBEw==</xades:IssuerSerialV2></xades:Cert></xades:SigningCertificateV2></xades:SignedSignatureProperties><xades:SignedDataObjectProperties><xades:DataObjectFormat ObjectReference="#r-id-7c20131bb5d6759c38727aaaeaf88441-1"><xades:MimeType>application/octet-stream</xades:MimeType></xades:DataObjectFormat></xades:SignedDataObjectProperties></xades:SignedProperties></xades:QualifyingProperties></ds:Object></ds:Signature></FILE> \ No newline at end of file
diff --git a/moaSig/moa-sig/src/test/resources/testdata/xades/4.1.1-TEST FILE.xml b/moaSig/moa-sig/src/test/resources/testdata/xades/4.1.1-TEST FILE.xml
new file mode 100644
index 0000000..3254174
--- /dev/null
+++ b/moaSig/moa-sig/src/test/resources/testdata/xades/4.1.1-TEST FILE.xml
@@ -0,0 +1,3 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?><FILE>
+ <TEST>SAMPLE</TEST>
+<ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#" Id="id-f051550f23523add088a820fa305f45f"><ds:SignedInfo><ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/><ds:SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"/><ds:Reference Id="r-id-f051550f23523add088a820fa305f45f-1" URI=""><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2002/06/xmldsig-filter2"><dsig-filter2:XPath xmlns:dsig-filter2="http://www.w3.org/2002/06/xmldsig-filter2" Filter="subtract">/descendant::ds:Signature</dsig-filter2:XPath></ds:Transform><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>kfsK43NJaZNZwDUkwbME+Sn+ziU/Rl4K0N2bvfbuwvk=</ds:DigestValue></ds:Reference><ds:Reference Type="http://uri.etsi.org/01903#SignedProperties" URI="#xades-id-f051550f23523add088a820fa305f45f"><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>xgLq4oESZ7lWI3fZR14zDl+8uHNioX0dVopAHk8SrQg=</ds:DigestValue></ds:Reference></ds:SignedInfo><ds:SignatureValue Id="value-id-f051550f23523add088a820fa305f45f">Y89msFCUBn+dixwGyVkOX4yq1FTJ6Nk29VV8uKaTKgFIhS3/mQ2Jb1SwcJywcbHG4O2w7rNIbkDM6I4psNCAaudzGplqzw4pXTy1UEHVoX1EYeihEpfSG+uXYzp/4GlYg4KtkC0hxBeHOuGFhgQ7sylkDbOU1MhE2n6rFm9ulH+STUhgK37IjFzToPj0vU11FD+0knEQiQkdUgxjxReZMTxLrr3aojjeFNHkh0XA+U/2KSAvnfoca66U/K/NmQCj4M5yb5aILzH6QJTb+NXBHf1k0XQwyZKicGoxrY3UppxUdAAHBrcf5TsRMjzBctgRQn5KYYXB7YC95N13nMw8Yw==</ds:SignatureValue><ds:KeyInfo><ds:X509Data><ds:X509Certificate>MIIESzCCAzOgAwIBAgIBAzANBgkqhkiG9w0BAQsFADBQMRIwEAYDVQQDDAlTREktNC4xLjExFTATBgNVBAoMDFRTUC00LjEgTmFtZTEWMBQGA1UECwwNQ0VSVCBGT1IgVEVTVDELMAkGA1UEBhMCRlIwHhcNMjAwMzIxMDAwMDI5WhcNMjIwMzIxMDAwMDI5WjBaMRgwFgYDVQQDDA9DRVJULVRFU1QtNC4xLjExGTAXBgNVBAoMEFRMNCBPcmdhbml6YXRpb24xFjAUBgNVBAsMDUNFUlQgRk9SIFRFU1QxC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E3sOc3j3cCQp4XAJREuUvG3u50zHjvLNE6Tf9D1vLY3TUAUDPOs18tOGsr9EPFPBPCfO7E9jj3sJD16VV9rLL83TJCv1ntVN8JTvujTKUWV4LH89yuQhcI5pkvpFIwGUKGUvt2oosfThIYaVwJZahmpr+nXveQJA1DMWLhl45FenxuRqH4t97iw53i3u07/3PXLcaLh+Kyt50xa7TqFKDoA==</ds:X509Certificate></ds:X509Data></ds:KeyInfo><ds:Object><xades:QualifyingProperties xmlns:xades="http://uri.etsi.org/01903/v1.3.2#" Target="#id-f051550f23523add088a820fa305f45f"><xades:SignedProperties Id="xades-id-f051550f23523add088a820fa305f45f"><xades:SignedSignatureProperties><xades:SigningTime>2021-03-21T00:00:57Z</xades:SigningTime><xades:SigningCertificateV2><xades:Cert><xades:CertDigest><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha512"/><ds:DigestValue>MkNq1eBZi36/QfF1R7b5LEB5X6HUjNm0l+4YG+Z/w+3AYNACbiR/IVRt/T6MLbFB42PZrMrQSrF9eRqree5o/g==</ds:DigestValue></xades:CertDigest><xades:IssuerSerialV2>MFkwVKRSMFAxEjAQBgNVBAMMCVNESS00LjEuMTEVMBMGA1UECgwMVFNQLTQuMSBOYW1lMRYwFAYDVQQLDA1DRVJUIEZPUiBURVNUMQswCQYDVQQGEwJGUgIBAw==</xades:IssuerSerialV2></xades:Cert></xades:SigningCertificateV2></xades:SignedSignatureProperties><xades:SignedDataObjectProperties><xades:DataObjectFormat ObjectReference="#r-id-f051550f23523add088a820fa305f45f-1"><xades:MimeType>application/octet-stream</xades:MimeType></xades:DataObjectFormat></xades:SignedDataObjectProperties></xades:SignedProperties></xades:QualifyingProperties></ds:Object></ds:Signature></FILE> \ No newline at end of file
diff --git a/moaSig/moa-sig/src/test/resources/testdata/xades/4.1.2-TEST FILE.xml b/moaSig/moa-sig/src/test/resources/testdata/xades/4.1.2-TEST FILE.xml
new file mode 100644
index 0000000..926d4e1
--- /dev/null
+++ b/moaSig/moa-sig/src/test/resources/testdata/xades/4.1.2-TEST FILE.xml
@@ -0,0 +1,3 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?><FILE>
+ <TEST>SAMPLE</TEST>
+<ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#" Id="id-fc4c5ab2db431e719ae0602ad4ce0b83"><ds:SignedInfo><ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/><ds:SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"/><ds:Reference Id="r-id-fc4c5ab2db431e719ae0602ad4ce0b83-1" URI=""><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2002/06/xmldsig-filter2"><dsig-filter2:XPath xmlns:dsig-filter2="http://www.w3.org/2002/06/xmldsig-filter2" Filter="subtract">/descendant::ds:Signature</dsig-filter2:XPath></ds:Transform><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>kfsK43NJaZNZwDUkwbME+Sn+ziU/Rl4K0N2bvfbuwvk=</ds:DigestValue></ds:Reference><ds:Reference Type="http://uri.etsi.org/01903#SignedProperties" URI="#xades-id-fc4c5ab2db431e719ae0602ad4ce0b83"><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>FjkChtpaQaLuro9E7o2Clev1wg8nPmOmoG7BWsBILsg=</ds:DigestValue></ds:Reference></ds:SignedInfo><ds:SignatureValue Id="value-id-fc4c5ab2db431e719ae0602ad4ce0b83">CaQPBI9lGUvHiMXEMieCAS/MF8/NBppGFqWszmzB7nA5faECGwpjQfBHSoSchNzUT6+Oom5RTcV1Byl7MUXoSBmt8MbRycW5skw7h/8DJhNfL6x1umsFD0IE5xwj3RstKVOlSojbkIKeC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9ICvrqK/nledcAlgX671wW5RxkxQEPAUoZ8BRV/jd+j6oKdA3BHIlVl3OcGm1lfO7p5hAoGIPn4Ol4J1H8UsEVmAf+tar2aEYOS1kqZqxBWnZi95gpvhXWaF8s4gG8FcoPos8hvO/Zb1cEei7B7YOSca1HQzvR+gcdaHAI861OWvCPmot6rzpeim2c1QX9TfqR3UDPC3D1uJcmmqF1OvtEtL9x04ImEgl5aUuSgb1EdSBXzq/JIyXHAgMBAAGjQjBAMA4GA1UdDwEB/wQEAwIBBjAdBgNVHQ4EFgQUPyIsAd5v7/7cDXbDkOl8Vlle+tcwDwYDVR0TAQH/BAUwAwEB/zANBgkqhkiG9w0BAQsFAAOCAQEAR0oE1ozhvgAFisk/FMN4XQjVLylZb5FjrEqBswSwMLZ8KyOe3cZkbfK6Pj56KJxXT9mkKPHbFCqkwbY3bUOsvnsLKnK2xypc4Dnw8fGAHA6M4dsnXonT+1srlFMvdosqqW+9Ts8Htawz3PYf9wn+SKK03VS1c3/NfXRb1Y740/vcn+S8c7HYUoD3bOKd18wod9AIHvF+2pRMqGiCXtf2/iyO/b5wSsXZdvJBofMrnq6ZOtgey5FMQWZ9F53AeOUk4pu2YKkGsbQdzsOOAyYl4X0mBDzZQdTQd9J2ia3Lu/QpFQRKTdz39WIF6EusgHTWQVtyPYxUh7FvVltHO4QofQ==</ds:X509Certificate></ds:X509Data></ds:KeyInfo><ds:Object><xades:QualifyingProperties xmlns:xades="http://uri.etsi.org/01903/v1.3.2#" Target="#id-fc4c5ab2db431e719ae0602ad4ce0b83"><xades:SignedProperties Id="xades-id-fc4c5ab2db431e719ae0602ad4ce0b83"><xades:SignedSignatureProperties><xades:SigningTime>2015-06-01T12:00:00Z</xades:SigningTime><xades:SigningCertificateV2><xades:Cert><xades:CertDigest><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha512"/><ds:DigestValue>XgHAImkCxpop4E3/9OVilAaqToOI/u95rjfaCrjN7tx3+l4BompwWcEmspq2b6WyWM8jt+CC0DNMKrd/6PkL9A==</ds:DigestValue></xades:CertDigest><xades:IssuerSerialV2>MFkwVKRSMFAxEjAQBgNVBAMMCVNESS00LjEuMjEVMBMGA1UECgwMVFNQLTQuMSBOYW1lMRYwFAYDVQQLDA1DRVJUIEZPUiBURVNUMQswCQYDVQQGEwJGUgIBBQ==</xades:IssuerSerialV2></xades:Cert></xades:SigningCertificateV2></xades:SignedSignatureProperties><xades:SignedDataObjectProperties><xades:DataObjectFormat ObjectReference="#r-id-fc4c5ab2db431e719ae0602ad4ce0b83-1"><xades:MimeType>application/octet-stream</xades:MimeType></xades:DataObjectFormat></xades:SignedDataObjectProperties></xades:SignedProperties><xades:UnsignedProperties><xades:UnsignedSignatureProperties><xades:SignatureTimeStamp Id="TS-df2956e9-0e35-459b-a947-e06a7adf921e"><ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/><xades:EncapsulatedTimeStamp Id="ETS-df2956e9-0e35-459b-a947-e06a7adf921e">MIIHUgYJKoZIhvcNAQcCoIIHQzCCBz8CAQMxDzANBglghkgBZQMEAgEFADBxBgsqhkiG9w0BCRABBKBiBGAwXgIBAQYDKgMEMDEwDQYJYIZIAWUDBAIBBQAEIAdNuNv/lu/qpoDdeXlPUqukcMA/Ho563owPRNUdDmmLAhAEMXyYI8Xak5iKt2ZQvY6EGA8yMDE1MDYwMTEyMDAwMFqgggRSMIIETjCCAzagAwIBAgIBAjANBgkqhkiG9w0BAQsFADBYMRUwEwYDVQQDDAx0aW1lc3RhbXBpbmcxGjAYBgNVBAoMEVRMLTggT3JnYW5pemF0aW9uMRYwFAYDVQQLDA1DRVJUIEZPUiBURVNUMQswCQYDVQQGEwJVSzAeFw0wMTAzMjEwMDAwNDlaFw00MTAzMjEwMDAwNDlaMFgxFTATBgNVBAMMDHRpbWVzdGFtcGluZzEaMBgGA1UECgwRVEwtOCBPcmdhbml6YXRpb24xFjAUBgNVBAsMDUNFUlQgRk9SIFRFU1QxCzAJBgN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QxVh5vnUDmPNMdnBjJMkWKd2Ub7KXTWLnRAj9fB4W/kQ2VesWbj+zQ+Em9n/E1N2EAt2xdOgSYA1JLDCGvLUxggJeMIICWgIBATBdMFgxFTATBgNVBAMMDHRpbWVzdGFtcGluZzEaMBgGA1UECgwRVEwtOCBPcmdhbml6YXRpb24xFjAUBgNVBAsMDUNFUlQgRk9SIFRFU1QxCzAJBgNVBAYTAlVLAgECMA0GCWCGSAFlAwQCAQUAoIHTMBoGCSqGSIb3DQEJAzENBgsqhkiG9w0BCRABBDAcBgkqhkiG9w0BCQUxDxcNMjEwMzIxMDAwMDU4WjAtBgkqhkiG9w0BCTQxIDAeMA0GCWCGSAFlAwQCAQUAoQ0GCSqGSIb3DQEBCwUAMC8GCSqGSIb3DQEJBDEiBCBkQlHrkxFPGiQZlBTazDM7QqfE14WzcKu+fQvKSo8c+zA3BgsqhkiG9w0BCRACLzEoMCYwJDAiBCD1E0hhXULftJTrV+DSCQdruuHkBsXHpzyf/g7GZxhc5DANBgkqhkiG9w0BAQsFAASCAQBb1WRgu8ongEJgTe68FGWoZ0y0w/gxzHeG4uV7bIwbGmUOjxuRqkfr9bz2XkgS82mLEiBrKvg0TZHJ8GKEe5tcTsZJc+bzr89/wDeQHlgxOIyGjPAJE3SnHRJ0lvudJoRkoFC/tbq+eA5IJ2FSqC7SStLVkwwNpNsY8m8TLGhbyGbXVclfFJYYteDJ/cT3OaKhef34iLmdIfRk5feyi5eTCW6vNNfX5RSTy/+gDU8q9gvS5W10XmJHF2T0azX1r51NDB5irj9J5CAtD/+xhdsYzLFX1f76ApLu3dithFPuOOZEoMO/I/8W3ER8rT4nbbPHLyfsLfOfzB74vbwRTfAn</xades:EncapsulatedTimeStamp></xades:SignatureTimeStamp></xades:UnsignedSignatureProperties></xades:UnsignedProperties></xades:QualifyingProperties></ds:Object></ds:Signature></FILE> \ No newline at end of file
diff --git a/moaSig/moa-sig/src/test/resources/testdata/xades/4.1.3-TEST FILE.xml b/moaSig/moa-sig/src/test/resources/testdata/xades/4.1.3-TEST FILE.xml
new file mode 100644
index 0000000..dd09d74
--- /dev/null
+++ b/moaSig/moa-sig/src/test/resources/testdata/xades/4.1.3-TEST FILE.xml
@@ -0,0 +1,3 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?><FILE>
+ <TEST>SAMPLE</TEST>
+<ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#" Id="id-46d636a026a83cded90e8b097049697f"><ds:SignedInfo><ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/><ds:SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"/><ds:Reference Id="r-id-46d636a026a83cded90e8b097049697f-1" URI=""><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2002/06/xmldsig-filter2"><dsig-filter2:XPath xmlns:dsig-filter2="http://www.w3.org/2002/06/xmldsig-filter2" Filter="subtract">/descendant::ds:Signature</dsig-filter2:XPath></ds:Transform><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>kfsK43NJaZNZwDUkwbME+Sn+ziU/Rl4K0N2bvfbuwvk=</ds:DigestValue></ds:Reference><ds:Reference Type="http://uri.etsi.org/01903#SignedProperties" URI="#xades-id-46d636a026a83cded90e8b097049697f"><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>rzKg2mk52pRmxhdefuNj34L1XaX+CQg8QMBlJqV8gHk=</ds:DigestValue></ds:Reference></ds:SignedInfo><ds:SignatureValue Id="value-id-46d636a026a83cded90e8b097049697f">PRM0KwmK+K9nZlgXgzbSlrpVgrShsuolJZNounH+0xTTjb8Fc1Q+wnPYMELYovVb2hIlmGpJRICGMy/ttMZiS0FMPllSDwT9Fj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KAoIBAQC2VH8zlNHlamuGTbWY5P/RvDEW9qnKMrR1bevwxZ09GOOyQxUgkyhVV7cMxLkvrgQBWwOs40M6WLS1Jo+TAMupeGgKar0FLT4B/B4TiBZIT6SS9R6XOlEekVnKPn1MqR3YiyQWYRcF18UaQCubvjU8t7hhBYZbJlIQItVZ6K8MpZyNW3I4kD/OgE8vuRYl3b2MoLuersQh+ER9xS5nrZeR0b9KyQ5iVT5akB9iviAKdgtB45n+QFdDKlMaQ2kWt2lqHmgmBysm3ysr8S+2yWN05HIlxhKOc68kYnEiFHri7RxR22Zd6hXPltc2rij8I407TGXTlsW9jtFezflvUYiLAgMBAAGjQjBAMA4GA1UdDwEB/wQEAwIBBjAdBgNVHQ4EFgQUuhcKkpG535DYEfI3MLMrLt66bN8wDwYDVR0TAQH/BAUwAwEB/zANBgkqhkiG9w0BAQsFAAOCAQEApmgv9Dcm+MqUsIAIC1aLAvDVCyD8T82Gw9svgsOIsvTBdjjjUp6WSEynqvY9ylgmNPEzBkA9psSLG32ngY59o9mxVbhHRmjeRRpUJCDWH6EhUk4+2B7HxVVn33HEj6qIiq73IBbMLT1Y/QP9u8NrAs5Os3K5g6jCcUi8YhYsxIzftH8kzG4+fQxqurgrIIvtMZOqxn6yeNd2HF2WcgoCpy5uvB9JTPGLUODx0XsI8Fjnzf9qjLwhhrQaACrE2d776RcymJm4xBe7JLGGMwuPFm6ELPD1xzy0kEeiwnod44GEVPkmSUFmPcS4lJPO4KwvZphczfD+9ce+4OSBhOKh7Q==</ds:X509Certificate></ds:X509Data></ds:KeyInfo><ds:Object><xades:QualifyingProperties xmlns:xades="http://uri.etsi.org/01903/v1.3.2#" Target="#id-46d636a026a83cded90e8b097049697f"><xades:SignedProperties Id="xades-id-46d636a026a83cded90e8b097049697f"><xades:SignedSignatureProperties><xades:SigningTime>2015-06-01T12:00:00Z</xades:SigningTime><xades:SigningCertificateV2><xades:Cert><xades:CertDigest><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha512"/><ds:DigestValue>/1Mmu1y4R9xxCIvuhLYDyMJio0Yu1VnGZAp65ptXxD+Rke/+k34OHBJTybcP00YfWiaT2NZmpNlnT709Ciogjw==</ds:DigestValue></xades:CertDigest><xades:IssuerSerialV2>MFkwVKRSMFAxEjAQBgNVBAMMCVNESS00LjEuMzEVMBMGA1UECgwMVFNQLTQuMSBOYW1lMRYwFAYDVQQLDA1DRVJUIEZPUiBURVNUMQswCQYDVQQGEwJGUgIBBw==</xades:IssuerSerialV2></xades:Cert></xades:SigningCertificateV2></xades:SignedSignatureProperties><xades:SignedDataObjectProperties><xades:DataObjectFormat ObjectReference="#r-id-46d636a026a83cded90e8b097049697f-1"><xades:MimeType>application/octet-stream</xades:MimeType></xades:DataObjectFormat></xades:SignedDataObjectProperties></xades:SignedProperties><xades:UnsignedProperties><xades:UnsignedSignatureProperties><xades:SignatureTimeStamp Id="TS-95b009e6-3c60-45bd-83d1-a65671ed07ad"><ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/><xades:EncapsulatedTimeStamp Id="ETS-95b009e6-3c60-45bd-83d1-a65671ed07ad">MIIHUgYJKoZIhvcNAQcCoIIHQzCCBz8CAQMxDzANBglghkgBZQMEAgEFADBxBgsqhkiG9w0BCRABBKBiBGAwXgIBAQYDKgMEMDEwDQYJYIZIAWUDBAIBBQAEIIIdVPLopkKPjj7zVZ7AGRbW4wAf48m/OkSSW9dB7ZxjAhAcy8y8Wz0GRvxIh6kSlewBGA8yMDE1MDYwMTEyMDAwMFqgggRSMIIETjCCAzagAwIBAgIBAjANBgkqhkiG9w0BAQsFADBYMRUwEwYDVQQDDAx0aW1lc3RhbXBpbmcxGjAYBgNVBAoMEVRMLTggT3JnYW5pemF0aW9uMRYwFAYDVQQLDA1DRVJUIEZPUiBURVNUMQswCQYDVQQGEwJVSzAeFw0wMTAzMjEwMDAwNDlaFw00MTAzMjEwMDAwNDlaMFgxFTATBgNVBAMMDHRpbWVzdGFtcGluZ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5dLH/IjbKRBEIiOlllDECWrsUMw7JBcyaJUJzE8vuAP1dpGAH1/cVsbcShEx9OeA/vLW8SjXbdxtLZQxVh5vnUDmPNMdnBjJMkWKd2Ub7KXTWLnRAj9fB4W/kQ2VesWbj+zQ+Em9n/E1N2EAt2xdOgSYA1JLDCGvLUxggJeMIICWgIBATBdMFgxFTATBgNVBAMMDHRpbWVzdGFtcGluZzEaMBgGA1UECgwRVEwtOCBPcmdhbml6YXRpb24xFjAUBgNVBAsMDUNFUlQgRk9SIFRFU1QxCzAJBgNVBAYTAlVLAgECMA0GCWCGSAFlAwQCAQUAoIHTMBoGCSqGSIb3DQEJAzENBgsqhkiG9w0BCRABBDAcBgkqhkiG9w0BCQUxDxcNMjEwMzIxMDAwMDU4WjAtBgkqhkiG9w0BCTQxIDAeMA0GCWCGSAFlAwQCAQUAoQ0GCSqGSIb3DQEBCwUAMC8GCSqGSIb3DQEJBDEiBCAqnWx0etbP54qT9ZUBXePw+sM9Kh6rKP9q11Pb6OgeATA3BgsqhkiG9w0BCRACLzEoMCYwJDAiBCD1E0hhXULftJTrV+DSCQdruuHkBsXHpzyf/g7GZxhc5DANBgkqhkiG9w0BAQsFAASCAQA4hAfyYwuWB0ePcdnko3uil/S1gIk4PJV/9kQM9R+4XznlwOsfqT+L4VFAZ3ZLn447vyNUXB1/XsG+dIMkjqgwfssjkPSZgyF/UzlyjbbCsuw5y4RV7rXHFjyJjN3CVqTkg9DhRHKkISYAiyEJG/eKCNAo0W+T7ocIQYqd2QhHC+OqLfyt4X/pvOpOce8ozSsNxU3vHhmFf6y0J5drnPw6k+eUuo5+XVfUj7V/h5G/CFrJhS743/9Mtb/Vb93ufkFqVksjFyt+1H7KG6/yjtATu6T9pU8aHFgsImIIVu4lPn1hD6ngL3ndBrlQ+KlUdd9dIPXZ/9SlFgsupetFDyhj</xades:EncapsulatedTimeStamp></xades:SignatureTimeStamp></xades:UnsignedSignatureProperties></xades:UnsignedProperties></xades:QualifyingProperties></ds:Object></ds:Signature></FILE> \ No newline at end of file
diff --git a/moaSig/moa-sig/src/test/resources/testdata/xades/4.1.4-TEST FILE.xml b/moaSig/moa-sig/src/test/resources/testdata/xades/4.1.4-TEST FILE.xml
new file mode 100644
index 0000000..7cc21f0
--- /dev/null
+++ b/moaSig/moa-sig/src/test/resources/testdata/xades/4.1.4-TEST FILE.xml
@@ -0,0 +1,3 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?><FILE>
+ <TEST>SAMPLE</TEST>
+<ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#" Id="id-bd3630313580d752b23f2723c127f880"><ds:SignedInfo><ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/><ds:SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"/><ds:Reference Id="r-id-bd3630313580d752b23f2723c127f880-1" URI=""><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2002/06/xmldsig-filter2"><dsig-filter2:XPath xmlns:dsig-filter2="http://www.w3.org/2002/06/xmldsig-filter2" Filter="subtract">/descendant::ds:Signature</dsig-filter2:XPath></ds:Transform><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>kfsK43NJaZNZwDUkwbME+Sn+ziU/Rl4K0N2bvfbuwvk=</ds:DigestValue></ds:Reference><ds:Reference Type="http://uri.etsi.org/01903#SignedProperties" URI="#xades-id-bd3630313580d752b23f2723c127f880"><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>XJS0TkJEoQgr6VKtSC5xbMYjVwfdBYRaq3SYqUaIFJ0=</ds:DigestValue></ds:Reference></ds:SignedInfo><ds:SignatureValue Id="value-id-bd3630313580d752b23f2723c127f880">H8mGrps37O5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AkGA1UEBhMCRlIwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCwUkBxsZxXom2k+OJxIKV+smXLBPMVEOsgLjVxW3TDIojdqUE2U9iPtEaJByWUA/IxPjMCTDXnzesKWCvZNJiW9m7mCEf9wOA3JlscUPZu8VEzWSMSmQ0+o2kBAeVcxosxgvngUwZopDEOOfBw/YMNI7+1xgWRgCP4UfauEJ/gIHydBi0Hp6LL0mN0jm1MDldFwsuNI+xwYjLMKsLgaGvxdl9fUmYRhyFRbHYo7JDZkbGbf2lOxV3uazjaVqZcedkogiIJRXnmMnPYu4W7eGFpTmF8T26MJO9csNzmLljfJXh8gCdBgsEcTPI/90VL4+whj+O1H6tnPMU0vfA1CObrAgMBAAGjQjBAMA4GA1UdDwEB/wQEAwIBBjAdBgNVHQ4EFgQU7Kk7rR9VLI8K7r1i22PWGp/yIsowDwYDVR0TAQH/BAUwAwEB/zANBgkqhkiG9w0BAQsFAAOCAQEAOQQlNbxincKNMGYlZt1hbZlDlURsP18HCmEHJ+RNlGfptKeTTJdPV+sTZ5GeAEMEZ+bimyJYoHe7YjWQ/LkN7JGOKeI9Yr5z4UerUYLQhZQhOKPp8+7fhOSSndVRJKuBZ5QGi6SeNRYLS0bIQIe7f3TR+1DYZ7ZQBuIsb+EZZtSV0hN5joUe+2v/0VXVJ137XP3EZwEqm0DWAxcO3+T56oV8F3kjczEIdSJ3HNoRAty2mpOuBoWK4qfa8Gr7Agc7EcNIPvs5gEt/+1XzfrygwAdcHvGYz+vY2E3ZG3icmoSfALLfOhTmmXg3LDg54HbzEWleYvdK0oVdWXI7WGGa0w==</ds:X509Certificate></ds:X509Data></ds:KeyInfo><ds:Object><xades:QualifyingProperties xmlns:xades="http://uri.etsi.org/01903/v1.3.2#" Target="#id-bd3630313580d752b23f2723c127f880"><xades:SignedProperties Id="xades-id-bd3630313580d752b23f2723c127f880"><xades:SignedSignatureProperties><xades:SigningTime>2015-06-01T12:00:00Z</xades:SigningTime><xades:SigningCertificateV2><xades:Cert><xades:CertDigest><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha512"/><ds:DigestValue>s+tn3njKtVdMBIsnjOmjYDkxx4eWOG1PIm9MsiSl1AoYm0dCn/Fp2DKDjRcf9Z0I0xRQr66AipO6FYbMLzL77w==</ds:DigestValue></xades:CertDigest><xades:IssuerSerialV2>MFkwVKRSMFAxEjAQBgNVBAMMCVNESS00LjEuNDEVMBMGA1UECgwMVFNQLTQuMSBOYW1lMRYwFAYDVQQLDA1DRVJUIEZPUiBURVNUMQswCQYDVQQGEwJGUgIBCQ==</xades:IssuerSerialV2></xades:Cert></xades:SigningCertificateV2></xades:SignedSignatureProperties><xades:SignedDataObjectProperties><xades:DataObjectFormat ObjectReference="#r-id-bd3630313580d752b23f2723c127f880-1"><xades:MimeType>application/octet-stream</xades:MimeType></xades:DataObjectFormat></xades:SignedDataObjectProperties></xades:SignedProperties><xades:UnsignedProperties><xades:UnsignedSignatureProperties><xades:SignatureTimeStamp Id="TS-0b370c78-c2dd-4f13-b713-22cc84995a82"><ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/><xades:EncapsulatedTimeStamp Id="ETS-0b370c78-c2dd-4f13-b713-22cc84995a82">MIIHUgYJKoZIhvcNAQcCoIIHQzCCBz8CAQMxDzANBglghkgBZQMEAgEFADBxBgsqhkiG9w0BCRABBKBiBGAwXgIBAQYDKgMEMDEwDQYJYIZIAWUDBAIBBQAEIInBMGE9gT9ZiVJoLPDY3uYtklB+ZU+WrjPk3AjngLEZAhA4cYUHC9EOqGWftrwwN2jcGA8yMDE1MDYwMTEyMDAwMFqgggRSMIIETjCCAzagAwIBAgIBAjANBgkqhkiG9w0BAQsFADBYMRUwEwYDVQQDDAx0aW1lc3RhbXBpbmcxGjAYBgNVBAoMEVRMLTggT3JnYW5pemF0aW9uMRYwFAYDVQQLDA1DRVJUIEZPUiBURVNUMQswCQYDVQQGEwJVSzAeFw0wMTAzMj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eStamp></xades:UnsignedSignatureProperties></xades:UnsignedProperties></xades:QualifyingProperties></ds:Object></ds:Signature></FILE> \ No newline at end of file
diff --git a/moaSig/moa-sig/src/test/resources/testdata/xades/4.1.5-TEST FILE.xml b/moaSig/moa-sig/src/test/resources/testdata/xades/4.1.5-TEST FILE.xml
new file mode 100644
index 0000000..5ef2641
--- /dev/null
+++ b/moaSig/moa-sig/src/test/resources/testdata/xades/4.1.5-TEST FILE.xml
@@ -0,0 +1,3 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?><FILE>
+ <TEST>SAMPLE</TEST>
+<ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#" Id="id-9a12ac494f01884b566b4fad9f7baa38"><ds:SignedInfo><ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/><ds:SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"/><ds:Reference Id="r-id-9a12ac494f01884b566b4fad9f7baa38-1" URI=""><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2002/06/xmldsig-filter2"><dsig-filter2:XPath xmlns:dsig-filter2="http://www.w3.org/2002/06/xmldsig-filter2" Filter="subtract">/descendant::ds:Signature</dsig-filter2:XPath></ds:Transform><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>kfsK43NJaZNZwDUkwbME+Sn+ziU/Rl4K0N2bvfbuwvk=</ds:DigestValue></ds:Reference><ds:Reference Type="http://uri.etsi.org/01903#SignedProperties" URI="#xades-id-9a12ac494f01884b566b4fad9f7baa38"><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>FnkxOB/hSEhFtyBcumD7BU0qy4m0rgLPgXlaTvvUdi0=</ds:DigestValue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MjYwMzIxMDAwMDMxWjBQMRIwEAYDVQQDDAlTREktNC4xLjUxFTATBgNVBAoMDFRTUC00LjEgTmFtZTEWMBQGA1UECwwNQ0VSVCBGT1IgVEVTVDELMAkGA1UEBhMCRlIwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDXVPoon+ihf0WjTelcDudjRwUeWkQVVxFmI23h4xXXqAjmuiKlKy6COY+YwJmWV0+kF5GxJ4QpZkYWxmJTu6jLFzDa1JWQ0Q8PuAqCfqCADe/gdhFRXKaHDiYNkj9XrPfEauGKvkKER/9UVOoU1lOQRriIWhQI/baz0RqNOQCIjm396el7huwkP1HQVKn1K1wkAwvYlC6zJ47HJEjRiaCMLeRJeR34MSyYmfho6jDcaHPH9J+RcZbbUxQlf8bcgkG6Nmw6oprTLz5/7g1dYvGHesY9HCMy01qI3xRnaXNasZ31lzaJDUyBP1pqsurS8rjN1RTcvUuwrcNRduRULVilAgMBAAGjQjBAMA4GA1UdDwEB/wQEAwIBBjAdBgNVHQ4EFgQUqX2jbvc0MJq2XJxq8GpcNmyNULEwDwYDVR0TAQH/BAUwAwEB/zANBgkqhkiG9w0BAQsFAAOCAQEATa02hc2LcaPq+9Yv0oV+SVsH2qC7mZWmH452eILpCA17sMnjA0Qk2CxYXcp1t7R0WxHN2Ye92LcjiQ4EyrfKQIcK4PTI0qMNg5D6mzIc87aQXHC9+kb/IwHSsi62AOOxz4zDh0sw/Q7XzR/IOCAdIuHgcUCMm2KFQPS+n4Cv45gxYAV4oOVPcKigz4WtkiFwDgZ+VPcBbnUflvdeQPmW0NsvaZGXA3ZJXuswhsvdtSqO21hBctqlnx9lDxsAbHDHzf9CdO0sR5vDBaaQJPVa/7JYqWw9PGYu4aShPv62gAnrOli4H9rbc8sUZwEvUEzaEs9Q8qa8MudnVWZgukcnaQ==</ds:X509Certificate></ds:X509Data></ds:KeyInfo><ds:Object><xades:QualifyingProperties xmlns:xades="http://uri.etsi.org/01903/v1.3.2#" Target="#id-9a12ac494f01884b566b4fad9f7baa38"><xades:SignedProperties Id="xades-id-9a12ac494f01884b566b4fad9f7baa38"><xades:SignedSignatureProperties><xades:SigningTime>2021-03-21T00:00:59Z</xades:SigningTime><xades:SigningCertificateV2><xades:Cert><xades:CertDigest><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha512"/><ds:DigestValue>QrN1ADD7T/+TDYhPZJ++LhqioafYnO66sVL2S2UIr+nlIHT3rHZQEY+dfKgoV/8Oc9hDhVnw4U/sAbfPA7bbHA==</ds:DigestValue></xades:CertDigest><xades:IssuerSerialV2>MFkwVKRSMFAxEjAQBgNVBAMMCVNESS00LjEuNTEVMBMGA1UECgwMVFNQLTQuMSBOYW1lMRYwFAYDVQQLDA1DRVJUIEZPUiBURVNUMQswCQYDVQQGEwJGUgIBCw==</xades:IssuerSerialV2></xades:Cert></xades:SigningCertificateV2></xades:SignedSignatureProperties><xades:SignedDataObjectProperties><xades:DataObjectFormat ObjectReference="#r-id-9a12ac494f01884b566b4fad9f7baa38-1"><xades:MimeType>application/octet-stream</xades:MimeType></xades:DataObjectFormat></xades:SignedDataObjectProperties></xades:SignedProperties></xades:QualifyingProperties></ds:Object></ds:Signature></FILE> \ No newline at end of file
diff --git a/moaSig/moa-sig/src/test/resources/testdata/xades/4.1.6-TEST FILE.xml b/moaSig/moa-sig/src/test/resources/testdata/xades/4.1.6-TEST FILE.xml
new file mode 100644
index 0000000..30cfb94
--- /dev/null
+++ b/moaSig/moa-sig/src/test/resources/testdata/xades/4.1.6-TEST FILE.xml
@@ -0,0 +1,3 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?><FILE>
+ <TEST>SAMPLE</TEST>
+<ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#" Id="id-f361adc258006176d5c2e81147421f86"><ds:SignedInfo><ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/><ds:SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"/><ds:Reference Id="r-id-f361adc258006176d5c2e81147421f86-1" URI=""><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2002/06/xmldsig-filter2"><dsig-filter2:XPath xmlns:dsig-filter2="http://www.w3.org/2002/06/xmldsig-filter2" Filter="subtract">/descendant::ds:Signature</dsig-filter2:XPath></ds:Transform><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>kfsK43NJaZNZwDUkwbME+Sn+ziU/Rl4K0N2bvfbuwvk=</ds:DigestValue></ds:Reference><ds:Reference Type="http://uri.etsi.org/01903#SignedProperties" URI="#xades-id-f361adc258006176d5c2e81147421f86"><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>LM0RXn5lq2I3dU516QlAVgk2YOqF27CokDuCsziEq1Y=</ds:DigestValue></ds:Reference></ds:SignedInfo><ds:SignatureValue Id="value-id-f361adc258006176d5c2e81147421f86">RwFJrBmR9G75MwyM8SEu54D7rE8cT2MUaZi9ryFDI4oTdEtOL9N/WdLGean5dZvTzHyz+YPOF1CnRxvDbbpoUlrLpoxL/JRwpnXOkXzWmYtIFJJ9V4+zg856WPZzAQXIlAQldIX3tgClBeJnkl5Aw62I2Ij7GETXLm/dR4/CJteHs71S/1eJXDUO37bc4BnI561jb5RJUXIEP6BSXGkwp2unGWy+lplmqzrAT1RWvdRI85PbDjewR1ILOt3JXB87QuFMfr/XYX8wCwjUNsfghQs51upwwmUZyO8MHb1hwhrdm/dpO3r8eLE0ACVNQYJdcFGbTr0F/yMzgVKEtnJe8A==</ds:SignatureValue><ds:KeyInfo><ds:X509Data><ds:X509Certificate>MIIEWjCCA0KgAwIBAgIBDTANBgkqhkiG9w0BAQsFADBQMRIwEAYDVQQDDAlTREktNC4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QjBAMA4GA1UdDwEB/wQEAwIBBjAdBgNVHQ4EFgQULJAUEuHApR0JoRLOJZneBLujkLMwDwYDVR0TAQH/BAUwAwEB/zANBgkqhkiG9w0BAQsFAAOCAQEAD1SPTpVyaNvdKOgx1LMDfcAwTm10VKewhBmxvD0Kc3qokhECeVtbrB+xcCb1rPx8L8DtG1KMoGZthN835zqnjfoQ+jcNr2h6z+6ulcNno8rUi9k0RvQvYyIbVHSxv3nm+EZQ/y643eAQwxhOrB+F6jfhBx+UdPDB/NvT5Oi6a85XIezP5PHpnB13LInZj0vWCPV2xvRky9bjiNmaHi2A1uNkhJMj/qzLL6ubg812dJMilE0AMt6EmQWW/WjFinprbvuRJyvuX/6lB3iSZdGEqJmQtJ6K2mB1dpX6iqFVWRXnPCIN4XAg93OmOvli8dgDztSxAbAOGGIUFrB6buc6Hg==</ds:X509Certificate></ds:X509Data></ds:KeyInfo><ds:Object><xades:QualifyingProperties xmlns:xades="http://uri.etsi.org/01903/v1.3.2#" Target="#id-f361adc258006176d5c2e81147421f86"><xades:SignedProperties Id="xades-id-f361adc258006176d5c2e81147421f86"><xades:SignedSignatureProperties><xades:SigningTime>2021-03-21T00:00:59Z</xades:SigningTime><xades:SigningCertificateV2><xades:Cert><xades:CertDigest><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha512"/><ds:DigestValue>GXKsqOTHoKPlR6ic7XdADltkMOD9hPHKRIfJI3lwUZqWy6RBOotNI75DTP5uPGBuAIVX1BWif3HP+1ODtn0BPg==</ds:DigestValue></xades:CertDigest><xades:IssuerSerialV2>MFkwVKRSMFAxEjAQBgNVBAMMCVNESS00LjEuNjEVMBMGA1UECgwMVFNQLTQuMSBOYW1lMRYwFAYDVQQLDA1DRVJUIEZPUiBURVNUMQswCQYDVQQGEwJGUgIBDQ==</xades:IssuerSerialV2></xades:Cert></xades:SigningCertificateV2></xades:SignedSignatureProperties><xades:SignedDataObjectProperties><xades:DataObjectFormat ObjectReference="#r-id-f361adc258006176d5c2e81147421f86-1"><xades:MimeType>application/octet-stream</xades:MimeType></xades:DataObjectFormat></xades:SignedDataObjectProperties></xades:SignedProperties></xades:QualifyingProperties></ds:Object></ds:Signature></FILE> \ No newline at end of file
diff --git a/moaSig/moa-sig/src/test/resources/testdata/xades/4.1.7-TEST FILE.xml b/moaSig/moa-sig/src/test/resources/testdata/xades/4.1.7-TEST FILE.xml
new file mode 100644
index 0000000..385a231
--- /dev/null
+++ b/moaSig/moa-sig/src/test/resources/testdata/xades/4.1.7-TEST FILE.xml
@@ -0,0 +1,3 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?><FILE>
+ <TEST>SAMPLE</TEST>
+<ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#" Id="id-ab3af89a909551fbd340592f7bf7d468"><ds:SignedInfo><ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/><ds:SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"/><ds:Reference Id="r-id-ab3af89a909551fbd340592f7bf7d468-1" URI=""><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2002/06/xmldsig-filter2"><dsig-filter2:XPath xmlns:dsig-filter2="http://www.w3.org/2002/06/xmldsig-filter2" Filter="subtract">/descendant::ds:Signature</dsig-filter2:XPath></ds:Transform><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>kfsK43NJaZNZwDUkwbME+Sn+ziU/Rl4K0N2bvfbuwvk=</ds:DigestValue></ds:Reference><ds:Reference Type="http://uri.etsi.org/01903#SignedProperties" URI="#xades-id-ab3af89a909551fbd340592f7bf7d468"><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>pwA8g7nYpgi+cafZqfS+/zl9mEeOqn4Q9cISeZlop6s=</ds:DigestValue></ds:Reference></ds:SignedInfo><ds:SignatureValue Id="value-id-ab3af89a909551fbd340592f7bf7d468">qL5krfdkjc356VZMg5Tew3l9gVKMiunRHJ+cSCT+UkP1teN+iX34HPvJ/+UQEa0epr6JPiKtp6nkM97LhooB20jki2+hdilE6VIQN2sWyEKJyB5tUkR4H/7ZtFPQabRkjAw+jU7rs/8koWNu18IPIFbp3VImte8VOLNt6OHSGGcn8FFPk6ThirbHxQt5IDzHGbIypde/o4arSPDQ04UEGYNUQm80R83UoH4ZI3axpm7X/cXaNQ4jZPSpTsq5RvwwlLbO2AZBgrI6MOGMjzR7X0h5KqEtEYr4mxoq2nNkj6rnJPDpmqN0dfMZJjQxw8B1ZdO8XALWoC/NrmG28hrRwA==</ds:SignatureValue><ds:KeyInfo><ds:X509Data><ds:X509Certificate>MIIEOzCCAyOgAwIBAgIBDzANBgkqhkiG9w0BAQsFADBQMRIwEAYDVQQDDAlTREktNC4xLjcxFTATBgNVBAoMDFRTUC00LjEgTmFtZTEWMBQGA1UECwwNQ0VSVCBGT1IgVEVTVDELMAkGA1UEBhMCRlIwHhcNMTYwMzIxMDAwMDMzWhcNMjYwMzIxMDAwMDMzWjBaMRgwFgYDVQQDDA9DRVJULVRFU1QtNC4xLjcxGTAXBgNVBAoMEFRMNCBPcmdhbml6YXRpb24xFjAUBgNVBAsMDUNFUlQgRk9SIFRFU1QxCzAJBgNVBAYTAkZSMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA0rcp2AS1gWuv8nwhxgCWCEVOCDT/ove56VXTC1uB14Q0W+rVCczzj18rx9iXNQlsRxTeXfFvXZiGmc+YecEKOSk3H+70vKwB6/DmP7uGE5RMgeyIvfggNUPZnTIqijUQxDrRW61ubisvgyaLp67eITgl3ixhPx7qxsmNYj4JUNSRyFYwuidO4WApcUq1tXyMxuOa8FHpVUX7bk2+QLlAF03ZuB7CPzN1cfMyLL2Z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QQDDAlTREktNC4xLjcxFTATBgNVBAoMDFRTUC00LjEgTmFtZTEWMBQGA1UECwwNQ0VSVCBGT1IgVEVTVDELMAkGA1UEBhMCRlIwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDoeV8pf/oMQ+gT27ZVEy1yKWDQDdBZdNNFNAI+Q1YZ7AioJiEkO5em+pvJAYBKMZg/kseohk+LTQ70I1eAqq83in2YUslaU9EsvufcXJQnnSnR2uH48hVY2v6AzhwxsdnJgqPBZy0LpWQHOzG7bjQuavrDQB9EASZ9DQzlz30ixo3JD9vP9SraBKtXymoJSJnPBdc2a6CK7WuFPNUep6NkgtLzolDTaiC+EJAAapM+gMd0aF8dz2Kg7m5Ekyq9e0nZ0HsVjteAgcGdHFSlp9jlnP8Hg5kbG4ZHhOKJl7DIJZn34aXAU4f8nmOb0S4q0oT8usW+Dz5Kcx+dVWRllnJNAgMBAAGjQjBAMA4GA1UdDwEB/wQEAwIBBjAdBgNVHQ4EFgQU7capR7KkO9lC/yEHS/KyCAU4R1kwDwYDVR0TAQH/BAUwAwEB/zANBgkqhkiG9w0BAQsFAAOCAQEAJJI/uoMgyJWNf3a3hxlEL0fjbYz2Lbc5X3Mh4a0zzabkfa03Ir/KuhQutOOXceg3gWyWPbSRiAqU1Vfhiv+PPBqUiND/fVKA9HPNN7WhUmj0exwW0gXe6HXoB2S7JukL4Kdt4vh6csRQl/36xv7s100ubNVjHTItsaSG+gOdg48r6jj1enoKSfqMLYXZWpzgHmSwjIEBoITc+9ZrWIHCjkyg5Br2bL3rNexXOrusd2u/a3BcFLuKdyzNVZKwpZsWPDdOj8P4W4qp9vQSYoqj+achDkrp6DdH0q5W8ym5xC/eTQDNf029rfokRHgI/DwwonWIlN9pee39aHe70RGyWQ==</ds:X509Certificate></ds:X509Data></ds:KeyInfo><ds:Object><xades:QualifyingProperties xmlns:xades="http://uri.etsi.org/01903/v1.3.2#" Target="#id-ab3af89a909551fbd340592f7bf7d468"><xades:SignedProperties Id="xades-id-ab3af89a909551fbd340592f7bf7d468"><xades:SignedSignatureProperties><xades:SigningTime>2015-06-01T12:00:00Z</xades:SigningTime><xades:SigningCertificateV2><xades:Cert><xades:CertDigest><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha512"/><ds:DigestValue>3iRpuGoGyXTBVFM8Ym4/gskjs7nfzh4TGSk9hQUU4kDLli1bLgCddNDUTH9lZ33brfKod4SfwiIZnD6mbipFPA==</ds:DigestValue></xades:CertDigest><xades:IssuerSerialV2>MFkwVKRSMFAxEjAQBgNVBAMMCVNESS00LjEuNzEVMBMGA1UECgwMVFNQLTQuMSBOYW1lMRYwFAYDVQQLDA1DRVJUIEZPUiBURVNUMQswCQYDVQQGEwJGUgIBDw==</xades:IssuerSerialV2></xades:Cert></xades:SigningCertificateV2></xades:SignedSignatureProperties><xades:SignedDataObjectProperties><xades:DataObjectFormat ObjectReference="#r-id-ab3af89a909551fbd340592f7bf7d468-1"><xades:MimeType>application/octet-stream</xades:MimeType></xades:DataObjectFormat></xades:SignedDataObjectProperties></xades:SignedProperties><xades:UnsignedProperties><xades:UnsignedSignatureProperties><xades:SignatureTimeStamp Id="TS-9994887c-5b4f-4d0f-af8e-53c7b59b0131"><ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/><xades:EncapsulatedTimeStamp Id="ETS-9994887c-5b4f-4d0f-af8e-53c7b59b0131">MIIHUgYJKoZIhvcNAQcCoIIHQzCCBz8CAQMxDzANBglghkgBZQMEAgEFADBxBgsqhkiG9w0BCRABBKBiBGAwXgIBAQYDKgMEMDEwDQYJYIZIAWUDBAIBBQAEIJX2BXdjSaLIh+LVYGqR3dZ0zGFRQBiwAmDCgNovM0kjAhAk5v1eRWv8eeDfGZW2Az5uGA8yMDE1MDYwMTEyMDAwMFqgggRSMIIETjCCAzagAwIBAgIBAjANBgkqhkiG9w0BAQsFADBYMRUwEwYDVQQDDAx0aW1lc3RhbXBpbmcxGjAYBgNVB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+VLY7enQ5het/00tkW6Q+Z3zSfP11h/zqR7XpuAwZQJgFHJ0PWtiPkRvsRdme</xades:EncapsulatedTimeStamp></xades:SignatureTimeStamp></xades:UnsignedSignatureProperties></xades:UnsignedProperties></xades:QualifyingProperties></ds:Object></ds:Signature></FILE> \ No newline at end of file
diff --git a/moaSig/moa-sig/src/test/resources/testdata/xades/4.2.1-TEST FILE.xml b/moaSig/moa-sig/src/test/resources/testdata/xades/4.2.1-TEST FILE.xml
new file mode 100644
index 0000000..c28eef0
--- /dev/null
+++ b/moaSig/moa-sig/src/test/resources/testdata/xades/4.2.1-TEST FILE.xml
@@ -0,0 +1,3 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?><FILE>
+ <TEST>SAMPLE</TEST>
+<ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#" Id="id-9b01feab3cbf3c525c470279808477c0"><ds:SignedInfo><ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/><ds:SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"/><ds:Reference Id="r-id-9b01feab3cbf3c525c470279808477c0-1" URI=""><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2002/06/xmldsig-filter2"><dsig-filter2:XPath xmlns:dsig-filter2="http://www.w3.org/2002/06/xmldsig-filter2" Filter="subtract">/descendant::ds:Signature</dsig-filter2:XPath></ds:Transform><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>kfsK43NJaZNZwDUkwbME+Sn+ziU/Rl4K0N2bvfbuwvk=</ds:DigestValue></ds:Reference><ds:Reference Type="http://uri.etsi.org/01903#SignedProperties" URI="#xades-id-9b01feab3cbf3c525c470279808477c0"><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>3nZjWWwhO9Dw7gUxU+bQ4xk3WNtqcQnSlHfVGMT4ZHk=</ds:DigestValue></ds:Reference></ds:SignedInfo><ds:SignatureValue Id="value-id-9b01feab3cbf3c525c470279808477c0">HRbWba+qMyHEXM9zWXUr2Kpc0/Cod31w8hNDISnOJhC70dJkrENQSNZjvSomoEq0bxY/qwgZs0BQTyobAscnqUU1ufRFyehrzQCxTHDmX2zfI5OyzocNe6YYB1SaDpTBjtH1A7uaiBjKbwnXmdqH8nCyShKTwJSVZEe0fRIPAeUTj/Z4Sqypl8RK6bp11f9TQRJfnOYUPvr9u1le8Lc6WyNrcrpJhikaNwrnVyNgui4q74mMUmXMKZQA/LwEVi/lfdnspE9qpROEifiAhWtFYfp997K+O/aEJEqfE2BjE32/XoIywVlYdLoQniyQFuYu0NqC7Lj4uscf/RXZHEeJqQ==</ds:SignatureValue><ds:KeyInfo><ds:X509Data><ds:X509Certificate>MIIESzCCAzOgAwIBAgIBETANBgkqhkiG9w0BAQsFADBQMRIwEAYDVQQDDAlTREktNC4yLjExFTATBgNVBAoMDFRTUC00LjIgTmFtZTEWMBQGA1UECwwNQ0VSVCBGT1IgVEVTVDELMAkGA1UEBhMCRlIwHhcNMjAwMzIxMDAwMDMzWhcNMjIwMzIxMDAwMDMzWjBaMRgwFgYDVQQDDA9DRVJULVRFU1QtNC4yLjExGTAXBgNVBAoMEFRMNCBPcmdhbml6YXRpb24xFjAUBgNVBAsMDUNFUlQgRk9SIFRFU1QxCzAJBgNVBAYTAkZSMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA4DLT2TtFUzBgz5zYF/PfOZCVU+bb82duPgfhRdrj1ri6K4gXgbX+pMyMp42bj8mnZfrOtAFOSKtd3/nynD3OmN50W/UGRssVLX6cbFJcsN4TZj88m9rpCoHEUfI5LJkRdvpIimZ0g4csaOi4UDiqrGutEhgKp/c0H5gO4/bJ/slpdk7g4MQEALVGpKmH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Properties xmlns:xades="http://uri.etsi.org/01903/v1.3.2#" Target="#id-9b01feab3cbf3c525c470279808477c0"><xades:SignedProperties Id="xades-id-9b01feab3cbf3c525c470279808477c0"><xades:SignedSignatureProperties><xades:SigningTime>2021-03-21T00:01:00Z</xades:SigningTime><xades:SigningCertificateV2><xades:Cert><xades:CertDigest><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha512"/><ds:DigestValue>f8wJrHzG6KLdGiADRudAVTnZHjKCGd0CzzJSc9H2T12VTBtCTUZNWcHYo4Y5gazqdgQQc7zl0kZL4e2Du6oJXg==</ds:DigestValue></xades:CertDigest><xades:IssuerSerialV2>MFkwVKRSMFAxEjAQBgNVBAMMCVNESS00LjIuMTEVMBMGA1UECgwMVFNQLTQuMiBOYW1lMRYwFAYDVQQLDA1DRVJUIEZPUiBURVNUMQswCQYDVQQGEwJGUgIBEQ==</xades:IssuerSerialV2></xades:Cert></xades:SigningCertificateV2></xades:SignedSignatureProperties><xades:SignedDataObjectProperties><xades:DataObjectFormat ObjectReference="#r-id-9b01feab3cbf3c525c470279808477c0-1"><xades:MimeType>application/octet-stream</xades:MimeType></xades:DataObjectFormat></xades:SignedDataObjectProperties></xades:SignedProperties></xades:QualifyingProperties></ds:Object></ds:Signature></FILE> \ No newline at end of file
diff --git a/moaSig/moa-sig/src/test/resources/testdata/xades/4.2.2-TEST FILE.xml b/moaSig/moa-sig/src/test/resources/testdata/xades/4.2.2-TEST FILE.xml
new file mode 100644
index 0000000..5693946
--- /dev/null
+++ b/moaSig/moa-sig/src/test/resources/testdata/xades/4.2.2-TEST FILE.xml
@@ -0,0 +1,3 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?><FILE>
+ <TEST>SAMPLE</TEST>
+<ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#" Id="id-794f6419bf27f7a60baf93c379fce9e1"><ds:SignedInfo><ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/><ds:SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"/><ds:Reference Id="r-id-794f6419bf27f7a60baf93c379fce9e1-1" URI=""><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2002/06/xmldsig-filter2"><dsig-filter2:XPath xmlns:dsig-filter2="http://www.w3.org/2002/06/xmldsig-filter2" Filter="subtract">/descendant::ds:Signature</dsig-filter2:XPath></ds:Transform><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>kfsK43NJaZNZwDUkwbME+Sn+ziU/Rl4K0N2bvfbuwvk=</ds:DigestValue></ds:Reference><ds:Reference Type="http://uri.etsi.org/01903#SignedProperties" URI="#xades-id-794f6419bf27f7a60baf93c379fce9e1"><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>aD4AeQmYIHVHXJ4/tD+u997AVRlKL63tMUAzFr4T1l8=</ds:DigestValue></ds:Reference></ds:SignedInfo><ds:SignatureValue Id="value-id-794f6419bf27f7a60baf93c379fce9e1">RRwd0KFkMQ9NRKkK9ueSeMLU/kalxg1FGmVzgWDLSH8PImwGD+9x+9hOCpY/dlhw+VyIm5cgl2sANPboC327+RdnR8YSdXVrvpmizzFthbWOuK0NSKWKqghTJPED1FNxFgU1XbCUWLdNqKKA6I7EZF45sPX3hQKJ9Y4R6EOBmYQae+97dA7EWR5FQCInGF8S3EGqZeNjoO/WY2rCJ1VK1sbf0crzKngopQYbOdr7zCnOv4ZxhnvwS71Dc8k3BoEEOSWlG781mrtJJmIU5t167ikuFgphKiiHpkAEjYP89eHSOiz2EfQaaR8O6+GCcTtmSFCLO9wzXrgE3+HqUtSr5Q==</ds:SignatureValue><ds:KeyInfo><ds:X509Data><ds:X509Certificate>MIIESzCCAzO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du2AlRY8ygzp9lR5CmJb1v4bjbQoC2ZAgMBAAGjQjBAMA4GA1UdDwEB/wQEAwIBBjAdBgNVHQ4EFgQUxv4WuZJmN7RRL331Bd+GZ9eoGEkwDwYDVR0TAQH/BAUwAwEB/zANBgkqhkiG9w0BAQsFAAOCAQEALpdG8lsHfNxpMiko6nLfdIVnDSyDLK8n0gTSZmvPKan8Nt328DoulDMm3n3pmQlM5Uq/McZiJHzKx5Q091s5n22xY69ygAVBC44Kg/AIjZuY+V2eNajr/MJbvBPyfIbpGuAB5WLXauKKhFfMi5ugB1VZTU0woO0sKhnzVra6oRSlDUGwG3It8MObt6fejIPT18/NUD1z+SbOiBHpPnPiVWT5eRqUcwRdexCIv4+YEvAJcwpOQkWbJ3N0hweIo0dT8bz7BE3iqqfWFGu9QuA5yWVDy1VHoGEuB/KBbunXAmwFgihXmW7Zfkw6DhGUbBaCqINmlYoKoGll+xgThV/vNA==</ds:X509Certificate></ds:X509Data></ds:KeyInfo><ds:Object><xades:QualifyingProperties xmlns:xades="http://uri.etsi.org/01903/v1.3.2#" Target="#id-794f6419bf27f7a60baf93c379fce9e1"><xades:SignedProperties Id="xades-id-794f6419bf27f7a60baf93c379fce9e1"><xades:SignedSignatureProperties><xades:SigningTime>2021-03-21T00:01:00Z</xades:SigningTime><xades:SigningCertificateV2><xades:Cert><xades:CertDigest><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha512"/><ds:DigestValue>sQpzsVctaDCBgF/XFv8yVHusjx7x0SPXKjg2mwv9nPSu5ZClPIPzINiseMQ1BfTnWuGLWLSpyGhZS1RhFSP4MQ==</ds:DigestValue></xades:CertDigest><xades:IssuerSerialV2>MFkwVKRSMFAxEjAQBgNVBAMMCVNESS00LjIuMjEVMBMGA1UECgwMVFNQLTQuMiBOYW1lMRYwFAYDVQQLDA1DRVJUIEZPUiBURVNUMQswCQYDVQQGEwJGUgIBEw==</xades:IssuerSerialV2></xades:Cert></xades:SigningCertificateV2></xades:SignedSignatureProperties><xades:SignedDataObjectProperties><xades:DataObjectFormat ObjectReference="#r-id-794f6419bf27f7a60baf93c379fce9e1-1"><xades:MimeType>application/octet-stream</xades:MimeType></xades:DataObjectFormat></xades:SignedDataObjectProperties></xades:SignedProperties></xades:QualifyingProperties></ds:Object></ds:Signature></FILE> \ No newline at end of file
diff --git a/moaSig/moa-sig/src/test/resources/testdata/xades/4.2.3-TEST FILE.xml b/moaSig/moa-sig/src/test/resources/testdata/xades/4.2.3-TEST FILE.xml
new file mode 100644
index 0000000..db65fef
--- /dev/null
+++ b/moaSig/moa-sig/src/test/resources/testdata/xades/4.2.3-TEST FILE.xml
@@ -0,0 +1,3 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?><FILE>
+ <TEST>SAMPLE</TEST>
+<ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#" Id="id-1609ed1b33cc2b65204f5367ed487438"><ds:SignedInfo><ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/><ds:SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"/><ds:Reference Id="r-id-1609ed1b33cc2b65204f5367ed487438-1" URI=""><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2002/06/xmldsig-filter2"><dsig-filter2:XPath xmlns:dsig-filter2="http://www.w3.org/2002/06/xmldsig-filter2" Filter="subtract">/descendant::ds:Signature</dsig-filter2:XPath></ds:Transform><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>kfsK43NJaZNZwDUkwbME+Sn+ziU/Rl4K0N2bvfbuwvk=</ds:DigestValue></ds:Reference><ds:Reference Type="http://uri.etsi.org/01903#SignedProperties" URI="#xades-id-1609ed1b33cc2b65204f5367ed487438"><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>zNx7Bv0/nMEjYcT7eGd5VyEyu6lF9JBzKc8k8iLjywQ=</ds:DigestValue></ds:Reference></ds:SignedInfo><ds:SignatureValue Id="value-id-1609ed1b33cc2b65204f5367ed487438">R19DPdhUExuOWl3FuKmQTnhIYVX8sont6Gswn9ngleUGMG1JdCwuiKjPMxUXA4YjS7A4/5xW4U0dVZQ693anltfHKUJqhQO7pRz7Csh1iFtl8QX1hroLgNYlajLw6O2zvemLU1JGKkql1WMeq9Pab6rdvd5ZgrbNMJLzaosFvWuMxqyZ65Nm3b9q2yZQ98/esetKpMzVMYcNhngmf39Cep0hoWWtdYGUrxMTEwJ70Krxfgtyn9wfobAz/pj/2JAirZuz+ALkYXnhaI8DumqBFdytfZ9QYZM5xbSzB5j/PujPsWtPpQ+yRsNXka7DM8Q+TqPJc/jxGFyNHTrmCCzNEQ==</ds:SignatureValue><ds:KeyInfo><ds:X509Data><ds:X509Certificate>MIIESzCCAzOgAwIBAgIBFTANBgkqhkiG9w0BAQsFADBQMRIwEAYDVQQDDAlTREktNC4yLjMxFTATBgNVBAoMDFRTUC00LjIgTmFtZTEWMBQGA1UECwwNQ0VSVCBGT1IgVEVTVDELMAkGA1UEBhMCRlIwHhcNMjAwMzIxMDAwMDM0WhcNMjIwMzIxMDAwMDM0WjBaMRgwFgYDVQQDDA9DRVJULVRFU1QtNC4yLjMxGTAXBgNVBAoMEFRMNCBPcmdhbml6YXRpb24xFjAUBgNVBAsMDUNFUlQgRk9SIFRFU1QxCzAJBgNVBAYTAkZSMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAjpLoPIQ7zkYoc8nlqzC54TXVrdADT4/grBcyB71EpSsEh5a3NbEz6jJBMGF1MDHQ6y45N0G8ZTI180TJoHjJekSOAAYWdyLBLOgYtBh9k+wxqSylZQHJdZCidw8GyYFz7k4oc8/kYyEQn6zjYciALnzAo4vmDUOqQBpc78mZ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KeyInfo><ds:Object><xades:QualifyingProperties xmlns:xades="http://uri.etsi.org/01903/v1.3.2#" Target="#id-1609ed1b33cc2b65204f5367ed487438"><xades:SignedProperties Id="xades-id-1609ed1b33cc2b65204f5367ed487438"><xades:SignedSignatureProperties><xades:SigningTime>2021-03-21T00:01:00Z</xades:SigningTime><xades:SigningCertificateV2><xades:Cert><xades:CertDigest><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha512"/><ds:DigestValue>sYk2N6zVM0PNtYn04lMfuKRIE9EYkxQhQE9IrsyhpuI1fPmbyDVki3Y7ZNeQy3No3+zAZwZMzK35fEouaGgr5Q==</ds:DigestValue></xades:CertDigest><xades:IssuerSerialV2>MFkwVKRSMFAxEjAQBgNVBAMMCVNESS00LjIuMzEVMBMGA1UECgwMVFNQLTQuMiBOYW1lMRYwFAYDVQQLDA1DRVJUIEZPUiBURVNUMQswCQYDVQQGEwJGUgIBFQ==</xades:IssuerSerialV2></xades:Cert></xades:SigningCertificateV2></xades:SignedSignatureProperties><xades:SignedDataObjectProperties><xades:DataObjectFormat ObjectReference="#r-id-1609ed1b33cc2b65204f5367ed487438-1"><xades:MimeType>application/octet-stream</xades:MimeType></xades:DataObjectFormat></xades:SignedDataObjectProperties></xades:SignedProperties></xades:QualifyingProperties></ds:Object></ds:Signature></FILE> \ No newline at end of file
diff --git a/moaSig/moa-sig/src/test/resources/testdata/xades/4.3.1-TEST FILE.xml b/moaSig/moa-sig/src/test/resources/testdata/xades/4.3.1-TEST FILE.xml
new file mode 100644
index 0000000..761669e
--- /dev/null
+++ b/moaSig/moa-sig/src/test/resources/testdata/xades/4.3.1-TEST FILE.xml
@@ -0,0 +1,3 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?><FILE>
+ <TEST>SAMPLE</TEST>
+<ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#" Id="id-04434018d917d494150d397469e10e86"><ds:SignedInfo><ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/><ds:SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"/><ds:Reference Id="r-id-04434018d917d494150d397469e10e86-1" URI=""><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2002/06/xmldsig-filter2"><dsig-filter2:XPath xmlns:dsig-filter2="http://www.w3.org/2002/06/xmldsig-filter2" Filter="subtract">/descendant::ds:Signature</dsig-filter2:XPath></ds:Transform><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>kfsK43NJaZNZwDUkwbME+Sn+ziU/Rl4K0N2bvfbuwvk=</ds:DigestValue></ds:Reference><ds:Reference Type="http://uri.etsi.org/01903#SignedProperties" URI="#xades-id-04434018d917d494150d397469e10e86"><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>AC8eZIVFEEYfnCd0qCtdqvwxQDMJeq9WZUNoARH97Ws=</ds:DigestValue></ds:Reference></ds:SignedInfo><ds:SignatureValue Id="value-id-04434018d917d494150d397469e10e86">NmPQiP/tZsz4Pp0FU1TzIgG0zFGOkN8nb7l5wn6yCuNi6MNMLiDvjuSNx32byyURBjm6M1ZZekCep57XEr0u3Y1AqKn/HIEh/eDNiicnB+xyMwXFJRycxPqes6kORS/6WB1s+sJy2UTHowh3UOScbsH2DLqDxLcW/zMsgOkEhF+jqYypFtB5GQQRgtiKc3S0o7dTGfAFBcESfKunkBonCLULMTkIq76+NlfGUsHISA5xJN6bdu6LptIOq1Swq9d9yJ3aB0C3OcU0TFbEmG2OLpOuCF4UQDx88c1iUe9DRXhaw+Fwq7tb9Oiat27DQFTbkBIs2ZmXUCg9r2tuJMGWqQ==</ds:SignatureValue><ds:KeyInfo><ds:X509Data><ds:X509Certificate>MIIEQT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Yj0o6ueW/262m+YGkhkfFAgMBAAGjQjBAMA4GA1UdDwEB/wQEAwIBBjAdBgNVHQ4EFgQU7PCotqm6mTgEwkjetSc8lHRsZoIwDwYDVR0TAQH/BAUwAwEB/zANBgkqhkiG9w0BAQsFAAOCAQEAYDWKRchAVwKN5NHGhcy5X9gGnlUY0yJq07ThzqiWKg4Blgp9FCORDeQdJCSX6bgLZea0jlU+JwfPLUFZTA1CkOl9MeFUGOXKydXA4wZxFUAmmFf4NoQJnAqK37UxX4TFX996xWrap5G1kkR1fnHxB3M4VN6hy7tPXWfKNFhPzfxBwqRGcdZnDhn7DC6wjbCw0DogGhzhTZ0TkWwkJgtaQ61cX6SnrRhWFl9c+w7fsHn4UMDwmSikxYJG1fFBinfzqist9/iN9a+IipJJ8WInlo3wpk8V1ColTMuftslB1rtM8HKx/DpcI6lbuGITnmW1JeCAmDR7jSvXueOXY+0+9Q==</ds:X509Certificate></ds:X509Data></ds:KeyInfo><ds:Object><xades:QualifyingProperties xmlns:xades="http://uri.etsi.org/01903/v1.3.2#" Target="#id-04434018d917d494150d397469e10e86"><xades:SignedProperties Id="xades-id-04434018d917d494150d397469e10e86"><xades:SignedSignatureProperties><xades:SigningTime>2021-03-21T00:01:01Z</xades:SigningTime><xades:SigningCertificateV2><xades:Cert><xades:CertDigest><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha512"/><ds:DigestValue>A2Qs3uFsSkAkOlw4DoXBiAvt2oS5QUSKZONxOfj1RH+tL/A2w9+y8+Dj/JbLzsrDEsKV+g076y7552TlaF8ITg==</ds:DigestValue></xades:CertDigest><xades:IssuerSerialV2>MFkwVKRSMFAxEjAQBgNVBAMMCVNESS00LjMuMTEVMBMGA1UECgwMVFNQLTQuMyBOYW1lMRYwFAYDVQQLDA1DRVJUIEZPUiBURVNUMQswCQYDVQQGEwJGUgIBFw==</xades:IssuerSerialV2></xades:Cert></xades:SigningCertificateV2></xades:SignedSignatureProperties><xades:SignedDataObjectProperties><xades:DataObjectFormat ObjectReference="#r-id-04434018d917d494150d397469e10e86-1"><xades:MimeType>application/octet-stream</xades:MimeType></xades:DataObjectFormat></xades:SignedDataObjectProperties></xades:SignedProperties></xades:QualifyingProperties></ds:Object></ds:Signature></FILE> \ No newline at end of file
diff --git a/moaSig/moa-sig/src/test/resources/testdata/xades/4.3.2-TEST FILE.xml b/moaSig/moa-sig/src/test/resources/testdata/xades/4.3.2-TEST FILE.xml
new file mode 100644
index 0000000..14854e1
--- /dev/null
+++ b/moaSig/moa-sig/src/test/resources/testdata/xades/4.3.2-TEST FILE.xml
@@ -0,0 +1,3 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?><FILE>
+ <TEST>SAMPLE</TEST>
+<ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#" Id="id-cb623281564ae646441168990ebb28bd"><ds:SignedInfo><ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/><ds:SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"/><ds:Reference Id="r-id-cb623281564ae646441168990ebb28bd-1" URI=""><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2002/06/xmldsig-filter2"><dsig-filter2:XPath xmlns:dsig-filter2="http://www.w3.org/2002/06/xmldsig-filter2" Filter="subtract">/descendant::ds:Signature</dsig-filter2:XPath></ds:Transform><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>kfsK43NJaZNZwDUkwbME+Sn+ziU/Rl4K0N2bvfbuwvk=</ds:DigestValue></ds:Reference><ds:Reference Type="http://uri.etsi.org/01903#SignedProperties" URI="#xades-id-cb623281564ae646441168990ebb28bd"><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>uHim1Yg/nG+g12BcC8jI1RCOUG1GWALLx6c86iqu2uY=</ds:DigestValue></ds:Reference></ds:SignedInfo><ds:SignatureValue Id="value-id-cb623281564ae646441168990ebb28bd">e5F0FZAyRdrFNb+Js2KAbeMsDX1xgbF6aOENDdiNDKb6gsBmJjlfZBNXBGxKuzxZYo56gb93JsFMNeiRjJgfW7yo8PqXrZW5N+AWtj3WH6qmS1c00xv9FBeZVxjEBtyJfNuPOWts35rXTo+1Xa/047qPU+T07HxqwR/S1D6D1EdZkryM/dD90mUP6u9KDR/7F1QqBzUjYEj2hqnO3gqMuzBpzfuwO2YZURo2Y/+uWNqNdF4q3lbmsLlbdVsCkaDuFbeotwQETXx6HD4Bg6ZNXB7KEUf0iyWpjEvXqGGld7WM7fb7vFs4p1VVDqFJwRZ1ZfJR+NpdnSOKyIWk8aMulA==</ds:SignatureValue><ds:KeyInfo><ds:X509Data><ds:X509Certificate>MIIEFzCCAv+gAwIBAgIBGTANBgkqhkiG9w0BAQsFADBQMRIwEAYDVQQDDAlTREktNC4zLjIxFTATBgNVBAoMDFRTUC00LjMgTmFtZTEWMBQGA1UECwwNQ0VSVCBGT1IgVEVTVDELMAkGA1UEBhMCRlIwHhcNMjAwMzIxMDAwMDM1WhcNMjIwMzIxMDAwMDM1WjBaMRgwFgYDVQQDDA9DRVJULVRFU1QtNC4zLjIxGTAXBgNVBAoMEFRMNCBPcmdhbml6YXRpb24xFjAUBgNVBAsMDUNFUlQgRk9SIFRFU1QxCzAJBgNVBAYTAkZSMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAtVhRaysbX42Myd0LhihjcZh55HBzjB0fbiJMbN0mU5Wo3MBsvatfzQw4yeDawcrelvfuOfHSOebXX3Lb/z0bpwMSAUZIEqyckk5Pa7HbuTxnpD9BdT+L1UuBt2yRn9QOuOH23e4tT0dZCCjzyoYrEbLGgD+2NBExYQOs6PqWLI6QJU6qpRuv6snS0RMNsA4ZIucYRlaSNTDxTk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VQQDDAlTREktNC4zLjIxFTATBgNVBAoMDFRTUC00LjMgTmFtZTEWMBQGA1UECwwNQ0VSVCBGT1IgVEVTVDELMAkGA1UEBhMCRlIwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCNkP7BD+QPLXGluXx0ZmTtCGYYnJWjkKlegoPsZAPAmjWZyiFruZOpjGR46x/xyz8/uhneDyvCQPWGpxiC+v8tkf5rgUa5s88zdQMXj6ui7BNWqixh1zfoeV79ND5SlkkdUaD9pe9FcjIkFBlxG7cWswO8YMBo8VmOGQkVEj2V55K4rVsdNBTNY3MeJmnH2X40J0l8sybwfLhGkfXQ5p1LcF3/F1E8DdqKfQaIJfBaXBIJowD/qtwKeNMhd9xYIKbtjDWjOzBzYSChdy6l9pv5RNZRl7YzUDXI5oZO8REnbzzuoSJJxBRtm/A1uHYVsOf4Zc8dYV/NbiMwr0W/0d0BAgMBAAGjQjBAMA4GA1UdDwEB/wQEAwIBBjAdBgNVHQ4EFgQUChBpOAokoP69un6Ay6CJm/sqEocwDwYDVR0TAQH/BAUwAwEB/zANBgkqhkiG9w0BAQsFAAOCAQEAbCAVkFQ5G5SIDQ2brAcLYeUQp7SiNW42EGy0qzObQEgWlTkFsuf5Ot+J/1OLd21dFB5+wTW/+SRid42NNjLpATk9xmmzRSXc7X+uH0Z3hYEKkhgaRpAdDolMd5MxSH2dstJnes2JviXlwHSRdQTsJcOq2Kmg50I7MUdqpxslZ9NJ0OhIwhXY8J6pcgSy4NyodxYaqoHW7dWwcravSeW3Usxr2Ylq4oP5apehogfurdYfK/jYc9c3KtD7fbIFQTF0+mGyyp8JJxLi01eHTdcYPRxtpWrisaCWOF09vM1abOrDKdxM4LfKz9yK/2SYvDv8wvsIDcOn4G+1LYbTI/1dCA==</ds:X509Certificate></ds:X509Data></ds:KeyInfo><ds:Object><xades:QualifyingProperties xmlns:xades="http://uri.etsi.org/01903/v1.3.2#" Target="#id-cb623281564ae646441168990ebb28bd"><xades:SignedProperties Id="xades-id-cb623281564ae646441168990ebb28bd"><xades:SignedSignatureProperties><xades:SigningTime>2021-03-21T00:01:01Z</xades:SigningTime><xades:SigningCertificateV2><xades:Cert><xades:CertDigest><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha512"/><ds:DigestValue>7g/UD1hqV6au7+VLJXF75EBCugJmZX0I/wnkoTnLtWoFdS/uqWBObg9h85PYxuYaDDKGjD3k2E5yEW2MPerMJg==</ds:DigestValue></xades:CertDigest><xades:IssuerSerialV2>MFkwVKRSMFAxEjAQBgNVBAMMCVNESS00LjMuMjEVMBMGA1UECgwMVFNQLTQuMyBOYW1lMRYwFAYDVQQLDA1DRVJUIEZPUiBURVNUMQswCQYDVQQGEwJGUgIBGQ==</xades:IssuerSerialV2></xades:Cert></xades:SigningCertificateV2></xades:SignedSignatureProperties><xades:SignedDataObjectProperties><xades:DataObjectFormat ObjectReference="#r-id-cb623281564ae646441168990ebb28bd-1"><xades:MimeType>application/octet-stream</xades:MimeType></xades:DataObjectFormat></xades:SignedDataObjectProperties></xades:SignedProperties></xades:QualifyingProperties></ds:Object></ds:Signature></FILE> \ No newline at end of file
diff --git a/moaSig/moa-sig/src/test/resources/testdata/xades/4.3.3-TEST FILE.xml b/moaSig/moa-sig/src/test/resources/testdata/xades/4.3.3-TEST FILE.xml
new file mode 100644
index 0000000..3cd19a0
--- /dev/null
+++ b/moaSig/moa-sig/src/test/resources/testdata/xades/4.3.3-TEST FILE.xml
@@ -0,0 +1,3 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?><FILE>
+ <TEST>SAMPLE</TEST>
+<ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#" Id="id-14379303caaf5e4db500399a4a26ed37"><ds:SignedInfo><ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/><ds:SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"/><ds:Reference Id="r-id-14379303caaf5e4db500399a4a26ed37-1" URI=""><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2002/06/xmldsig-filter2"><dsig-filter2:XPath xmlns:dsig-filter2="http://www.w3.org/2002/06/xmldsig-filter2" Filter="subtract">/descendant::ds:Signature</dsig-filter2:XPath></ds:Transform><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>kfsK43NJaZNZwDUkwbME+Sn+ziU/Rl4K0N2bvfbuwvk=</ds:DigestValue></ds:Reference><ds:Reference Type="http://uri.etsi.org/01903#SignedProperties" URI="#xades-id-14379303caaf5e4db500399a4a26ed37"><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>6PFqL4drchMvc5FyV6a5aoOHhiq1dEMlDb8aV4Pptc0=</ds:DigestValue></ds:Reference></ds:SignedInfo><ds:SignatureValue Id="value-id-14379303caaf5e4db500399a4a26ed37">gIZ8MTfXcOwSjxcHJmxJaV74BVCUyTqXHRec+c8E4H9ZBvlP2y4xRnvzku6JkJMWUYcy94QPoWbtceUw0QPG/JWIRdkpvMEJOY4DexLLuaMEZ/qxO9al+F5sTNsKjH1dSZy5MRcp8i0RJznUhBjwwG8yRcX/OFnlz774kiczhVLcfkw133Grq469R1nVmtvgDqrI0xVBTx2+jGuGqwy3M6/N/OBY/gG10HdHjFwqHyx1/sq6ADqQKUT6mRTGWbV5SxFIkCt0MLTgdGHb9dG0QSMdsV0v54idr4/POAenqTbjNbp8svBG1Q0aMiUTjXVpfrqXkCyZ9Z7Y6vy2fPXNKA==</ds:SignatureValue><ds:KeyInfo><ds:X509Data><ds:X509Certificate>MIIENjCCAx6gAwIBAgIBGzANBgkqhkiG9w0BAQsFADBQMRIwEAYDVQQDDAlTREktNC4zLjMxFTATBgNVBAoMDFRTUC00LjMgT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AwEB/zANBgkqhkiG9w0BAQsFAAOCAQEAKZ8X51v4h/PV6cIWUMxQzVyg6GRhOu6K3yU4GZYJR6gMWxRVJUce8ty/Yi8qM1GubUUjjoy/xSoFvW1ilOFIiKKmtXIYVuEAij8Upot9u1podIk1Og49LOIiRCBQYsMPGkwrJcu9q3hVZPfPek/az4qAfSdwEkRNkyV4fRHe9r6hJYSHLM6O0XxUZWn8uuOjsTmbzbfBoBZSoNo5qBGn7MaBjolaRrnTn3bK2tNU6+4GOKnEBtM2ChnNnV2Z/n0q1qynER5jwz3NVLg9YJZfTYMx+7BwPsHu+oX3Xv6fQSfCPs8CsidIHEPUBCJRkY8Iz/m2UrrLn6wys9DpQZZ8pA==</ds:X509Certificate></ds:X509Data></ds:KeyInfo><ds:Object><xades:QualifyingProperties xmlns:xades="http://uri.etsi.org/01903/v1.3.2#" Target="#id-14379303caaf5e4db500399a4a26ed37"><xades:SignedProperties Id="xades-id-14379303caaf5e4db500399a4a26ed37"><xades:SignedSignatureProperties><xades:SigningTime>2021-03-21T00:01:01Z</xades:SigningTime><xades:SigningCertificateV2><xades:Cert><xades:CertDigest><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha512"/><ds:DigestValue>yOEZaPGRUzjkGrQPW4x5V3E1R9DYcgJBR/HB+2kKM5fxJl31rkunvjCcvJ+7T84kxxk1l9r4788i4Yz5+1Y8wQ==</ds:DigestValue></xades:CertDigest><xades:IssuerSerialV2>MFkwVKRSMFAxEjAQBgNVBAMMCVNESS00LjMuMzEVMBMGA1UECgwMVFNQLTQuMyBOYW1lMRYwFAYDVQQLDA1DRVJUIEZPUiBURVNUMQswCQYDVQQGEwJGUgIBGw==</xades:IssuerSerialV2></xades:Cert></xades:SigningCertificateV2></xades:SignedSignatureProperties><xades:SignedDataObjectProperties><xades:DataObjectFormat ObjectReference="#r-id-14379303caaf5e4db500399a4a26ed37-1"><xades:MimeType>application/octet-stream</xades:MimeType></xades:DataObjectFormat></xades:SignedDataObjectProperties></xades:SignedProperties></xades:QualifyingProperties></ds:Object></ds:Signature></FILE> \ No newline at end of file
diff --git a/moaSig/moa-sig/src/test/resources/testdata/xades/4.3.4-TEST FILE.xml b/moaSig/moa-sig/src/test/resources/testdata/xades/4.3.4-TEST FILE.xml
new file mode 100644
index 0000000..acfeeba
--- /dev/null
+++ b/moaSig/moa-sig/src/test/resources/testdata/xades/4.3.4-TEST FILE.xml
@@ -0,0 +1,3 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?><FILE>
+ <TEST>SAMPLE</TEST>
+<ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#" Id="id-61f0b5e5b5ccf48817c03dc091643ae7"><ds:SignedInfo><ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/><ds:SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"/><ds:Reference Id="r-id-61f0b5e5b5ccf48817c03dc091643ae7-1" URI=""><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2002/06/xmldsig-filter2"><dsig-filter2:XPath xmlns:dsig-filter2="http://www.w3.org/2002/06/xmldsig-filter2" Filter="subtract">/descendant::ds:Signature</dsig-filter2:XPath></ds:Transform><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>kfsK43NJaZNZwDUkwbME+Sn+ziU/Rl4K0N2bvfbuwvk=</ds:DigestValue></ds:Reference><ds:Reference Type="http://uri.etsi.org/01903#SignedProperties" URI="#xades-id-61f0b5e5b5ccf48817c03dc091643ae7"><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>ffq39CjSd1vh8qqJ1yXUpnsuw1+zfx2yeNRdGfgmSI0=</ds:DigestValue></ds:Reference></ds:S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VTVDELMAkGA1UEBhMCRlIwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDBrkMInr9PhK8rK1ZXRktMCfICj7WgTHQV0DTGn3Yr06eNNwUMQE9SPXtUpLv0Z8EZa8OQ7b2MGYzeIEurOKWOcXVMwB+JUwo96whj55ytxdUa7eaXORhmYw/paRWPmRcaIdHonrgnG5r0EhOKCJIdIZ3d61Y+7+QhZ6u0CcyeeGww7e9V10fbLuBhV7V0/RqI5YXEnHThed8HepH11VwiCZ6vLruzvoX7MWsTRkEUaVuU01YiWaO7X3H+zpVnO1uoEib3hYpR1vRkix4jymGgn9nTFbcbhciY8VPuP92/IO79m579fpqqHrmeDHqXYmZPGZsqCK4jfXaodosBJaXDAgMBAAGjQjBAMA4GA1UdDwEB/wQEAwIBBjAdBgNVHQ4EFgQUwjbjL9q4voFTaqdkwx1zMy9pljIwDwYDVR0TAQH/BAUwAwEB/zANBgkqhkiG9w0BAQsFAAOCAQEAEhQpR8d6RwVImouPQOS2g7kidE5+GMXlmoG1Ir+m2dY5uHt+wJVvHSTVtrrPOPpuLPJA2QL6zFBfkoCT/LYnDsDvtl/oxBOkN81nZ0MP0rdeDM9Y4rgQEuRWKcUVSsJK1Hr0UC/60UI5kxaWW6UWaMUUzR4QUbiVNUIvuEgPgk+qcup9ZVvWO6tO+mj8P18uZOP7aCnavbbO/QMtjLlYwNFKJ/vf9G8vO0Lb79GfLCncuiAfyU4SATI0QLCyDW10dl2dg19lijcGYTkfLgXGrW7ozAknIf5WLIvv0FH1OXQRILbUzgwCxVgFjeUYWQ++zpwP12BODuV1kbdZ/BM0Lw==</ds:X509Certificate></ds:X509Data></ds:KeyInfo><ds:Object><xades:QualifyingProperties xmlns:xades="http://uri.etsi.org/01903/v1.3.2#" Target="#id-61f0b5e5b5ccf48817c03dc091643ae7"><xades:SignedProperties Id="xades-id-61f0b5e5b5ccf48817c03dc091643ae7"><xades:SignedSignatureProperties><xades:SigningTime>2021-03-21T00:01:02Z</xades:SigningTime><xades:SigningCertificateV2><xades:Cert><xades:CertDigest><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha512"/><ds:DigestValue>ohjCHqW27igSy52XUq9xIkILL22H5EvvqNsfWdL+tX0Lztb8iJNVQeiU9hfdZCgqWCWfs5NfgWeUTbwtHxKJYw==</ds:DigestValue></xades:CertDigest><xades:IssuerSerialV2>MFkwVKRSMFAxEjAQBgNVBAMMCVNESS00LjMuNDEVMBMGA1UECgwMVFNQLTQuMyBOYW1lMRYwFAYDVQQLDA1DRVJUIEZPUiBURVNUMQswCQYDVQQGEwJGUgIBHQ==</xades:IssuerSerialV2></xades:Cert></xades:SigningCertificateV2></xades:SignedSignatureProperties><xades:SignedDataObjectProperties><xades:DataObjectFormat ObjectReference="#r-id-61f0b5e5b5ccf48817c03dc091643ae7-1"><xades:MimeType>application/octet-stream</xades:MimeType></xades:DataObjectFormat></xades:SignedDataObjectProperties></xades:SignedProperties></xades:QualifyingProperties></ds:Object></ds:Signature></FILE> \ No newline at end of file
diff --git a/moaSig/moa-sig/src/test/resources/testdata/xades/4.3.5-TEST FILE.xml b/moaSig/moa-sig/src/test/resources/testdata/xades/4.3.5-TEST FILE.xml
new file mode 100644
index 0000000..c3bd1c3
--- /dev/null
+++ b/moaSig/moa-sig/src/test/resources/testdata/xades/4.3.5-TEST FILE.xml
@@ -0,0 +1,3 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?><FILE>
+ <TEST>SAMPLE</TEST>
+<ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#" Id="id-33ad254b08585ab18e950c50192b7826"><ds:SignedInfo><ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/><ds:SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"/><ds:Reference Id="r-id-33ad254b08585ab18e950c50192b7826-1" URI=""><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2002/06/xmldsig-filter2"><dsig-filter2:XPath xmlns:dsig-filter2="http://www.w3.org/2002/06/xmldsig-filter2" Filter="subtract">/descendant::ds:Signature</dsig-filter2:XPath></ds:Transform><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>kfsK43NJaZNZwDUkwbME+Sn+ziU/Rl4K0N2bvfbuwvk=</ds:DigestValue></ds:Reference><ds:Reference Type="http://uri.etsi.org/01903#SignedProperties" URI="#xades-id-33ad254b08585ab18e950c50192b7826"><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>s1lKuXeaMfWvbVm9JPgzS7YsE6LwRgBot98zI2T659k=</ds:DigestValue></ds:Reference></ds:SignedInfo><ds:SignatureValue Id="value-id-33ad254b08585ab18e950c50192b7826">kZIGU7u/BcD1hzTEy9SSeRcAoG9g0KonGm8gkKKgWlA9/Gbzt09NghMSyIZ9R2Y8i+caCplnQxj6m+Lnqb3VDCIoA7KZFF5kP6AAYNnwVCZkEFzscu+gvWrfqQuVoODXusLheCN3orsB3R9N28b3GABeTibSCn/Sj1snh/pTichpouIjJfUH3OwUyy+1NPRm16CM2up/N1hZ/BbzOFET/6d3RQ44uA2VrOcjvgBJI2HS4KNfZyDRQuiaJH9kGOTfbiTeV30zxtrcecOGrrR6++6TNZehSHfmh9Igf6LUnYIbvLRkGpDqWEG7nPnVE3chYCwL6rEPECZSwiX7W2YYtg==</ds:SignatureValue><ds:KeyInfo><ds:X509Data><ds:X509Certificate>MIIEQTCCAymgAwIBAgIBHzANBgkqhkiG9w0BAQsFADBQMRIwEAYDVQQDDAlTREktNC4zLjUxFTATBgNVBAoMDFRTUC00LjMgTmFtZTEWMBQGA1UECwwNQ0VSVCBGT1IgVEVTVDELMAkGA1UEBhMCRlIwHhcNMjAwMzIxM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RuzFSaAgDPVEk5zj2YjOBlzGaVb2GjypvmviO6kfiwA3+EsT7+b7WQVfIWmyumegrLfdmdXo+znowh8RIT8xhl1dKw886VRQ6NGswPbuCfTX5gsDvqxBYl0hOdL0fGordRPlXLVeF/0VJwPJ3xPziDcvjuR8lkGrsz/njE3Lldfq1D1+lP5P649QG2lE/Q1IzYP0GYO85Sh8Pd8MZy8i6UrKeqPU8LgcZ6vXrTYWaIMqF+oEeSnm8PnYvhIB6nYhI46HcJSo5sk5iMe9qrFKXOqe5fXLU+WhPzZDCAAiW8zYdNIZ5IFwAyL2STLGfbPaQ89moCgnB6w==</ds:X509Certificate></ds:X509Data></ds:KeyInfo><ds:Object><xades:QualifyingProperties xmlns:xades="http://uri.etsi.org/01903/v1.3.2#" Target="#id-33ad254b08585ab18e950c50192b7826"><xades:SignedProperties Id="xades-id-33ad254b08585ab18e950c50192b7826"><xades:SignedSignatureProperties><xades:SigningTime>2021-03-21T00:01:02Z</xades:SigningTime><xades:SigningCertificateV2><xades:Cert><xades:CertDigest><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha512"/><ds:DigestValue>DQQA0IYby1tw8XyJ7z1R8FYZYvRpYkneHQgg8JUXhEdPMKmybXseHVdpTB0RqgVJaMzIDSac/2HA3O2JfOuycw==</ds:DigestValue></xades:CertDigest><xades:IssuerSerialV2>MFkwVKRSMFAxEjAQBgNVBAMMCVNESS00LjMuNTEVMBMGA1UECgwMVFNQLTQuMyBOYW1lMRYwFAYDVQQLDA1DRVJUIEZPUiBURVNUMQswCQYDVQQGEwJGUgIBHw==</xades:IssuerSerialV2></xades:Cert></xades:SigningCertificateV2></xades:SignedSignatureProperties><xades:SignedDataObjectProperties><xades:DataObjectFormat ObjectReference="#r-id-33ad254b08585ab18e950c50192b7826-1"><xades:MimeType>application/octet-stream</xades:MimeType></xades:DataObjectFormat></xades:SignedDataObjectProperties></xades:SignedProperties></xades:QualifyingProperties></ds:Object></ds:Signature></FILE> \ No newline at end of file
diff --git a/moaSig/moa-sig/src/test/resources/testdata/xades/4.3.6-TEST FILE.xml b/moaSig/moa-sig/src/test/resources/testdata/xades/4.3.6-TEST FILE.xml
new file mode 100644
index 0000000..82b8535
--- /dev/null
+++ b/moaSig/moa-sig/src/test/resources/testdata/xades/4.3.6-TEST FILE.xml
@@ -0,0 +1,3 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?><FILE>
+ <TEST>SAMPLE</TEST>
+<ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#" Id="id-4efa35d97e05dc7565eedbfba93fa882"><ds:SignedInfo><ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/><ds:SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"/><ds:Reference Id="r-id-4efa35d97e05dc7565eedbfba93fa882-1" URI=""><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2002/06/xmldsig-filter2"><dsig-filter2:XPath xmlns:dsig-filter2="http://www.w3.org/2002/06/xmldsig-filter2" Filter="subtract">/descendant::ds:Signature</dsig-filter2:XPath></ds:Transform><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>kfsK43NJaZNZwDUkwbME+Sn+ziU/Rl4K0N2bvfbuwvk=</ds:DigestValue></ds:Reference><ds:Reference Type="http://uri.etsi.org/01903#SignedProperties" URI="#xades-id-4efa35d97e05dc7565eedbfba93fa882"><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>EOdXtCY3uqUcfbfth/vGNuDZWyqfY4JaWdNq6h4QNGw=</ds:DigestValue></ds:Reference></ds:SignedInfo><ds:SignatureValue Id="value-id-4efa35d97e05dc7565eedbfba93fa882">r+HECV9tbaPJle7uRq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DELMAkGA1UEBhMCRlIwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCmIXFsdES1vW0QxBiBghVvQkz+cnhOJkTHk1e0DxSGJs2OZmRmXvPMpVOuWyyTTidl8MP9fDuNQzaxS4E+vnl2jfrKwjDg/1K83Z8EgiEg10DVHvBZWCo8O0nZc2InYTZ/kfbrRuwnCFx0I6VLMWlVidv0L3z0MYKKpP86IfjdQ1fHXSiqXt0MLXpgpbswXQhfhRP2W+mvxgyGHfWmUo3rsC0QcpKGlS6XgSz/eo4Ka+Yx64USUKv3QnbLQMlqyZeC350KQob+4BEPhpSC4EgtFiSit6wEtTeY4qNCx53TCtIob6BGZ2RjRuBOm6RaI5rSfbE270Tvg9SDBkUCRp1LAgMBAAGjQjBAMA4GA1UdDwEB/wQEAwIBBjAdBgNVHQ4EFgQUQqrhVj4PPmq/f87TurpV2Q+iT58wDwYDVR0TAQH/BAUwAwEB/zANBgkqhkiG9w0BAQsFAAOCAQEAGVQTKWD/6FP6Nmc8PkRkG33HGMPisyN40sxvHhIpsbsUs5cl6chv01l8vESthtCpwaM6sMNXsS03I9rN521cr/zEZisykdHuS61iwl8jZ+Ek6txz9NlrlZoze1d7TMBF4lp2dV7l1EzCj8eOPhJr4RiRuLgDHyQQaaf9GWLHxCk2e+J7eFx8YwT6Nf4gSaEqaoGbM5KUE/TYTkqekCrwZ1fxZEEZOtPrUpjQ+Q18j5K8NKpXvxgmkTKvYo76S8jVf21g70DjS2hbm1ALx4hrn3vmsnqdlcM8bQLaS9G25MrpGT0NYWnd2whGx4JsbHaDa4skZ3dpeYfMzIgV4w9PCg==</ds:X509Certificate></ds:X509Data></ds:KeyInfo><ds:Object><xades:QualifyingProperties xmlns:xades="http://uri.etsi.org/01903/v1.3.2#" Target="#id-4efa35d97e05dc7565eedbfba93fa882"><xades:SignedProperties Id="xades-id-4efa35d97e05dc7565eedbfba93fa882"><xades:SignedSignatureProperties><xades:SigningTime>2021-03-21T00:01:02Z</xades:SigningTime><xades:SigningCertificateV2><xades:Cert><xades:CertDigest><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha512"/><ds:DigestValue>YfAaXk2pbehXE0TkhmX469Esn8xQW73L0O/NhqJ4Qz1Zegue8rGof7NvsmYzV+yqoRqaj6l8jN+aYbI2kUtg3g==</ds:DigestValue></xades:CertDigest><xades:IssuerSerialV2>MFkwVKRSMFAxEjAQBgNVBAMMCVNESS00LjMuNjEVMBMGA1UECgwMVFNQLTQuMyBOYW1lMRYwFAYDVQQLDA1DRVJUIEZPUiBURVNUMQswCQYDVQQGEwJGUgIBIQ==</xades:IssuerSerialV2></xades:Cert></xades:SigningCertificateV2></xades:SignedSignatureProperties><xades:SignedDataObjectProperties><xades:DataObjectFormat ObjectReference="#r-id-4efa35d97e05dc7565eedbfba93fa882-1"><xades:MimeType>application/octet-stream</xades:MimeType></xades:DataObjectFormat></xades:SignedDataObjectProperties></xades:SignedProperties></xades:QualifyingProperties></ds:Object></ds:Signature></FILE> \ No newline at end of file
diff --git a/moaSig/moa-sig/src/test/resources/testdata/xades/4.4.1-TEST FILE.xml b/moaSig/moa-sig/src/test/resources/testdata/xades/4.4.1-TEST FILE.xml
new file mode 100644
index 0000000..544fc04
--- /dev/null
+++ b/moaSig/moa-sig/src/test/resources/testdata/xades/4.4.1-TEST FILE.xml
@@ -0,0 +1,3 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?><FILE>
+ <TEST>SAMPLE</TEST>
+<ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#" Id="id-9222b0eb6858ab1ed4bc2ad1b3b260d2"><ds:SignedInfo><ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/><ds:SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"/><ds:Reference Id="r-id-9222b0eb6858ab1ed4bc2ad1b3b260d2-1" URI=""><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2002/06/xmldsig-filter2"><dsig-filter2:XPath xmlns:dsig-filter2="http://www.w3.org/2002/06/xmldsig-filter2" Filter="subtract">/descendant::ds:Signature</dsig-filter2:XPath></ds:Transform><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>kfsK43NJaZNZwDUkwbME+Sn+ziU/Rl4K0N2bvfbuwvk=</ds:DigestValue></ds:Reference><ds:Reference Type="http://uri.etsi.org/01903#SignedProperties" URI="#xades-id-9222b0eb6858ab1ed4bc2ad1b3b260d2"><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>VuqBj1TAey8iuCDm06PR0NW80RhkJMRsReNHV45f7KU=</ds:DigestValue></ds:Reference></ds:SignedInfo><ds:SignatureValue Id="value-id-9222b0eb6858ab1ed4bc2ad1b3b260d2">Jb93Z/28OG7O2kdRszIza6zsEkYNmQhYPQbvNxPIOJRrsYn7HuaLmrPMt7tfKyPKIc7QzZ20+Pcbziu7qfVh+0laNK1PklRezQy6t2otJjrAiNGs0RS7qkcOpkKKVjS2LujQB1l6w8amIWtQaYVp1qEJd8OzO1ssRLMDIsZKsD4pMG3T4FhmwwJUikBa7EhqpJj3+6C1lfNYQjJ6oF8iKhGyuafZB32e5OrJd1gvDVDBATuev74FokqEaRk+117HexQdGbTc8lBRl+bUYBJRVJsl6nyvYDmxklVvQTkza0Mn9cDOOAEpeq0E0xRzypJrkdaoy2SelmZRikq6BFGZvA==</ds:SignatureValue><ds:KeyInfo><ds:X509Data><ds:X509Certificate>MIIEYTCCA0mgAwIBAgIBIzANBgkqhkiG9w0BAQsFADBQMRIwEAYDVQQDDAlTREktNC40LjExFTATBgNVBAoMDFRTUC00LjQgTmFtZTEWMBQGA1UECwwNQ0VSVCBGT1IgVEVTVDELMAkGA1U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TOaKTeV6YwDwYDVR0TAQH/BAUwAwEB/zANBgkqhkiG9w0BAQsFAAOCAQEAIRothLemTkijhBncofvYoKOWbJV4kRnUYiU7h+FJt5ymCO7kNAwtF91VT7BJfXLNKsZTzf8AwHuTnMxOrHudI38wa0okaPRLRPz7fXvj4pJW0kk8OQvcOhF3xMN2QwJv8HlS6kW/NuwUQELh0s99UTcr0TatRxgJo7zb6ykugSKKVEwS75Rpihzvolnr6tlEokckaM2IIwe2pPuyc3AnWjWbIMikGEpjrFhw3hRYQYIjRvXtE7gu4QXMt9obf1FhXSER1sa4SDf3qapTc3dtZKiF4w8mTqwumgPeTZ/CbKL2kOa1/O8snlZRvpM9Dy3lxnFftemGv7VJzknLEwMyPw==</ds:X509Certificate></ds:X509Data></ds:KeyInfo><ds:Object><xades:QualifyingProperties xmlns:xades="http://uri.etsi.org/01903/v1.3.2#" Target="#id-9222b0eb6858ab1ed4bc2ad1b3b260d2"><xades:SignedProperties Id="xades-id-9222b0eb6858ab1ed4bc2ad1b3b260d2"><xades:SignedSignatureProperties><xades:SigningTime>2021-03-21T00:01:02Z</xades:SigningTime><xades:SigningCertificateV2><xades:Cert><xades:CertDigest><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha512"/><ds:DigestValue>Sj9ZWsmukg6TL5g7ErO8eD2zkViW+wc+aQsK60zUbE1SK3hyNKp9hWK88gnGu4jk0506sX4DWE74T3w/lQxQwQ==</ds:DigestValue></xades:CertDigest><xades:IssuerSerialV2>MFkwVKRSMFAxEjAQBgNVBAMMCVNESS00LjQuMTEVMBMGA1UECgwMVFNQLTQuNCBOYW1lMRYwFAYDVQQLDA1DRVJUIEZPUiBURVNUMQswCQYDVQQGEwJGUgIBIw==</xades:IssuerSerialV2></xades:Cert></xades:SigningCertificateV2></xades:SignedSignatureProperties><xades:SignedDataObjectProperties><xades:DataObjectFormat ObjectReference="#r-id-9222b0eb6858ab1ed4bc2ad1b3b260d2-1"><xades:MimeType>application/octet-stream</xades:MimeType></xades:DataObjectFormat></xades:SignedDataObjectProperties></xades:SignedProperties></xades:QualifyingProperties></ds:Object></ds:Signature></FILE> \ No newline at end of file
diff --git a/moaSig/moa-sig/src/test/resources/testdata/xades/4.4.10-TEST FILE.xml b/moaSig/moa-sig/src/test/resources/testdata/xades/4.4.10-TEST FILE.xml
new file mode 100644
index 0000000..2940a16
--- /dev/null
+++ b/moaSig/moa-sig/src/test/resources/testdata/xades/4.4.10-TEST FILE.xml
@@ -0,0 +1,3 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?><FILE>
+ <TEST>SAMPLE</TEST>
+<ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#" Id="id-caa4c612ba91d02cba4f76ac6c30e9be"><ds:SignedInfo><ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/><ds:SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"/><ds:Reference Id="r-id-caa4c612ba91d02cba4f76ac6c30e9be-1" URI=""><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2002/06/xmldsig-filter2"><dsig-filter2:XPath xmlns:dsig-filter2="http://www.w3.org/2002/06/xmldsig-filter2" Filter="subtract">/descendant::ds:Signature</dsig-filter2:XPath></ds:Transform><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>kfsK43NJaZNZwDUkwbME+Sn+ziU/Rl4K0N2bvfbuwvk=</ds:DigestValue></ds:Reference><ds:Reference Type="http://uri.etsi.org/01903#SignedProperties" URI="#xades-id-caa4c612ba91d02cba4f76ac6c30e9be"><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>Wj/RLu/JKdDGA0bCqv1yrx9UskHaRzQXihJSu3GD/lc=</ds:DigestValue></ds:Reference></ds:SignedInfo><ds:SignatureValue Id="value-id-caa4c612ba91d02cba4f76ac6c30e9be">NR5o4yjmFgqMoQZlAf5tKMlgrykBUfIYoEG+e6ev5sXmZyao+PLGPtrNnKSwT2RC5+2xOFJKAdQN6bJBmiXF6eHLsZy1iW2owYsiVZ43giV38/qOlVm9Vdbu3/DR+4PvMJHDcI24mZ/ZTYs6ZPfVLgjUnDbOrFlODtF2HhCcqN2Axivr9qqYBZup6BoGDTzQOdkxI3XYd33t+tHoxsyRbhfejRkIofZslaCyILdjqBcTLqlbUYb67OvK7p4z0k+J0tsGsy3NzSKNtuUgwMU5jcUiq59eZ7DxfPB95vc4ouNwGZoVGcL8P0dGvPJYNPoo1i0Frtwa5MffuIIHJGQhLQ==</ds:SignatureValue><ds:KeyInfo><ds:X509Data><ds:X509Certificate>MIIEdzCCA1+gAwIBAgIBNTANBgkqhkiG9w0BAQsFADBRMRMwEQYDVQQDDApTREktNC40LjEwMRUwEwYDVQQKDAxUU1AtNC40IE5hbWUxFjAUBgNVBAsMDUNFUlQgRk9SIFRFU1QxCzAJBgNVBAYTAkZSMB4XDTIwMDMyMTAwMDA0MVoXDTIyMDMyMTAwMDA0MVowWzEZMBcGA1UEAwwQQ0VSVC1URVNULTQuNC4xMDEZMBcGA1UECgwQVEw0IE9yZ2FuaXphdGlvbjEWMBQGA1UECwwNQ0VSVCBGT1IgVEVTVDELMAkGA1UEBhMCRlIwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQC2kMI/UkKFLOW9V8I4lwUq+rtD3ZBM1w1e7FdvgPfeewKVCyEgtyfCpaZI5mNBQv9yQcEba8WcsHNVAJgoZkXVx9D2pg5VUQ1oPFfPXgNuo7wiR7xCyl63myfKVB9JKDcH6Aio3w2uutt6Gs1pbcFdnOuWiGxIl0OLgNgvighuAdq4So3KLqy6Oysgp1nA//HiLHX/vPC65UsdjvLr4ejAMq7npP45208/bg5/6S3spznRLc1J2ZJ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><xades:QualifyingProperties xmlns:xades="http://uri.etsi.org/01903/v1.3.2#" Target="#id-caa4c612ba91d02cba4f76ac6c30e9be"><xades:SignedProperties Id="xades-id-caa4c612ba91d02cba4f76ac6c30e9be"><xades:SignedSignatureProperties><xades:SigningTime>2021-03-21T00:01:05Z</xades:SigningTime><xades:SigningCertificateV2><xades:Cert><xades:CertDigest><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha512"/><ds:DigestValue>LzSuTtcot74NXp5qMXZ0c975HEia2BTXF58cLw1+ClrDlFZFA12IdJqxhSlirejMN1ZmCCjhJCiazdexWjj+4g==</ds:DigestValue></xades:CertDigest><xades:IssuerSerialV2>MFowVaRTMFExEzARBgNVBAMMClNESS00LjQuMTAxFTATBgNVBAoMDFRTUC00LjQgTmFtZTEWMBQGA1UECwwNQ0VSVCBGT1IgVEVTVDELMAkGA1UEBhMCRlICATU=</xades:IssuerSerialV2></xades:Cert></xades:SigningCertificateV2></xades:SignedSignatureProperties><xades:SignedDataObjectProperties><xades:DataObjectFormat ObjectReference="#r-id-caa4c612ba91d02cba4f76ac6c30e9be-1"><xades:MimeType>application/octet-stream</xades:MimeType></xades:DataObjectFormat></xades:SignedDataObjectProperties></xades:SignedProperties></xades:QualifyingProperties></ds:Object></ds:Signature></FILE> \ No newline at end of file
diff --git a/moaSig/moa-sig/src/test/resources/testdata/xades/4.4.11-TEST FILE.xml b/moaSig/moa-sig/src/test/resources/testdata/xades/4.4.11-TEST FILE.xml
new file mode 100644
index 0000000..03bfa03
--- /dev/null
+++ b/moaSig/moa-sig/src/test/resources/testdata/xades/4.4.11-TEST FILE.xml
@@ -0,0 +1,3 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?><FILE>
+ <TEST>SAMPLE</TEST>
+<ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#" Id="id-7623985e69ce6c221acd626118ff24d4"><ds:SignedInfo><ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/><ds:SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"/><ds:Reference Id="r-id-7623985e69ce6c221acd626118ff24d4-1" URI=""><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2002/06/xmldsig-filter2"><dsig-filter2:XPath xmlns:dsig-filter2="http://www.w3.org/2002/06/xmldsig-filter2" Filter="subtract">/descendant::ds:Signature</dsig-filter2:XPath></ds:Transform><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>kfsK43NJaZNZwDUkwbME+Sn+ziU/Rl4K0N2bvfbuwvk=</ds:DigestValue></ds:Reference><ds:Reference Type="http://uri.etsi.org/01903#SignedProperties" URI="#xades-id-7623985e69ce6c221acd626118ff24d4"><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>FwqWTKp9TPISbqaObFpi53e72CT3enZ1deywMuanYjQ=</ds:DigestValue></ds:Reference></ds:SignedInfo><ds:SignatureValue Id="value-id-7623985e69ce6c221acd626118ff24d4">RQzYUTpllMUrt8SQF4UMsA7IPyPfvDgmrivS0Kg0aN9wPoogrZmqkt2MVVlnt9+8UgcdD1g2aU+i5g5aTwHR0iImv9MWMEm3B+5jNkRa4Y52IunnfOTvgJMV0ntIZ5UxHGK4jZvGe79qmeFrlIJ2+EQgbf8LRs43sjXshr5hACDnPQso5KQlY9/ICADdgeO/vyB2i7mQ94CGY9C9m20i6j9Xf9uO0mP0nIR9uEQIBvZ/LHufn/JghWL1D53YJaBmm8kt9KQ+4TTPbGKPOa7cu+w33FupMiidONihLGtJz6+RXauDpMgPZK37SrbBaqktGhAjPrzJfuUpUdJDkm+jVQ==</ds:SignatureValue><ds:KeyInfo><ds:X509Data><ds:X509Certificate>MIIEdzCCA1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4FePjz1u0pcEm06tFCFCfq9bR4+EemD1Ns+w9bsUt5Z/BiMYq4TI+7NNao2WlVP7WjBdESapy5/k0wRa8mhRIXcCAwEAAaNCMEAwDgYDVR0PAQH/BAQDAgEGMB0GA1UdDgQWBBQ6WM4YEU/8P2DJ8eOmFAy2hiqeoTAPBgNVHRMBAf8EBTADAQH/MA0GCSqGSIb3DQEBCwUAA4IBAQCluDjhuyinjEw6mfBRWRRHH00+nKACUHTvmxFDMLOhNAobfVAxCk3WjXR6TBxt3P4Gw9NAgda7ydxNeoTrJnnIk0Mwj7aTG++EMj96wEhBb2lsvkHNrtW5f/ta0STdjuYB4DgnhvwAAAbChj8wKnGjDA9kUEoC8foL3ROvfilpwFqBJCYYQN7vwcb9gpW+oUyvug88SsHuuTKMsNPU0seFC0BGrRNQbE/iHmZEeigqUxZso759yPnCHVc8NrH0DE6zVY/fZztl4BOcvHEs+1bAWzHY/ZfVoTCwxGTLlrXr3zWwSZ4SHzcFpCfyOfB8itlwcgGiU59OB8u4qfjXHiQ0</ds:X509Certificate></ds:X509Data></ds:KeyInfo><ds:Object><xades:QualifyingProperties xmlns:xades="http://uri.etsi.org/01903/v1.3.2#" Target="#id-7623985e69ce6c221acd626118ff24d4"><xades:SignedProperties Id="xades-id-7623985e69ce6c221acd626118ff24d4"><xades:SignedSignatureProperties><xades:SigningTime>2021-03-21T00:01:05Z</xades:SigningTime><xades:SigningCertificateV2><xades:Cert><xades:CertDigest><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha512"/><ds:DigestValue>elSEMALR0/mYn/q7j49H0CFrfcYAr5iEuESeSIDR4JUi1cWyGnObvmAKWzwzY0VB2Ieakp0Pj8CakwNi5j6+KA==</ds:DigestValue></xades:CertDigest><xades:IssuerSerialV2>MFowVaRTMFExEzARBgNVBAMMClNESS00LjQuMTExFTATBgNVBAoMDFRTUC00LjQgTmFtZTEWMBQGA1UECwwNQ0VSVCBGT1IgVEVTVDELMAkGA1UEBhMCRlICATc=</xades:IssuerSerialV2></xades:Cert></xades:SigningCertificateV2></xades:SignedSignatureProperties><xades:SignedDataObjectProperties><xades:DataObjectFormat ObjectReference="#r-id-7623985e69ce6c221acd626118ff24d4-1"><xades:MimeType>application/octet-stream</xades:MimeType></xades:DataObjectFormat></xades:SignedDataObjectProperties></xades:SignedProperties></xades:QualifyingProperties></ds:Object></ds:Signature></FILE> \ No newline at end of file
diff --git a/moaSig/moa-sig/src/test/resources/testdata/xades/4.4.12-TEST FILE.xml b/moaSig/moa-sig/src/test/resources/testdata/xades/4.4.12-TEST FILE.xml
new file mode 100644
index 0000000..57a7805
--- /dev/null
+++ b/moaSig/moa-sig/src/test/resources/testdata/xades/4.4.12-TEST FILE.xml
@@ -0,0 +1,3 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?><FILE>
+ <TEST>SAMPLE</TEST>
+<ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#" Id="id-7a82d669a0eb4fecf3dea5dd8f7cde46"><ds:SignedInfo><ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/><ds:SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"/><ds:Reference Id="r-id-7a82d669a0eb4fecf3dea5dd8f7cde46-1" URI=""><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2002/06/xmldsig-filter2"><dsig-filter2:XPath xmlns:dsig-filter2="http://www.w3.org/2002/06/xmldsig-filter2" Filter="subtract">/descendant::ds:Signature</dsig-filter2:XPath></ds:Transform><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>kfsK43NJaZNZwDUkwbME+Sn+ziU/Rl4K0N2bvfbuwvk=</ds:DigestValue></ds:Reference><ds:Reference Type="http://uri.etsi.org/01903#SignedProperties" URI="#xades-id-7a82d669a0eb4fecf3dea5dd8f7cde46"><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>BdXIU3S1PXcNr58xbLtFFnQigDiRa9wtzbDWe2NFofQ=</ds:DigestValue></ds:Reference></ds:SignedInfo><ds:SignatureValue Id="value-id-7a82d669a0eb4fecf3dea5dd8f7cde46">azANQvn1PwdRTecrTlRRhPulBpQhCkaHH9o8pBpCPzes5fywrE09z1wEp/+p28Ai8WulsNGmypN4XSts1iDPxADQzQ8twqLuEsqoNd0JtzfwRVQFkoR8a9y1kWU+/PBo5jNA53ckNNc98rk/n76Li5iCcXcdIZ5b/GFx6kAjTCzulRWNd70RRijk2+R7NrZAXXfs4ejL2NvGoxfqpeHjTqBmJQmmBF4zjMDfoD/YB6tFUAahOWgxoZPPps0BBHaD6jDgSQCvEKF4qo3q8O4nGwW+MbvkaaIDPXrmc/z6sbp7jI8Xf9pDaPBoTavrXpqQ9TBXJgJ3EWOOPD06D2yaBA==</ds:SignatureValue><ds:KeyInfo><ds:X509Data><ds:X509Certificate>MIIEdzCCA1+gAwIBAgIBOTANBgkqhkiG9w0BAQsFADBRMRMwEQYDVQQDDApTREktNC40LjEyMRUwEwYDVQQKDAxUU1AtNC40IE5hbWUxFjAUBgNVBAsMDUNFUlQgRk9SIFRFU1QxCzAJBgNVBAYTAkZSMB4XDTIwMDMyMTAwMDA0MloXDTIyMDMyMTAwMDA0MlowWzEZMBcGA1UEAwwQQ0VSVC1URVNULTQuNC4xMjEZMBcGA1UECgwQVEw0IE9yZ2FuaXphdGlvbjEWMBQGA1UECwwNQ0VSVCBGT1IgVEVTVDELMAkGA1UEBhMCRlIwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCzj5mWxZ6okifrWS/azDul3f811iy69QZwnLRtXW7BhP5csEgW/rvB1KBoPdRQF8PXL5BcCKhDFlEgtYQd6H2/My0LHRhNx5M6NxUVe7QIyi+38n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obpDOKg6Tyy19AyK9rALzAp+ln/wCbJ/5jvgdCQTtBVlhFCY9PimxV9sktwzdoqu05se9bf+MA+3wOzQuoOF99C6BDYDipUDyPkZ3QV5EH</ds:X509Certificate></ds:X509Data></ds:KeyInfo><ds:Object><xades:QualifyingProperties xmlns:xades="http://uri.etsi.org/01903/v1.3.2#" Target="#id-7a82d669a0eb4fecf3dea5dd8f7cde46"><xades:SignedProperties Id="xades-id-7a82d669a0eb4fecf3dea5dd8f7cde46"><xades:SignedSignatureProperties><xades:SigningTime>2021-03-21T00:01:05Z</xades:SigningTime><xades:SigningCertificateV2><xades:Cert><xades:CertDigest><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha512"/><ds:DigestValue>m1G1yin49qrwUHJvQlIv0p7ptsJALniomkUhz8hqM9hiMBpOruCoSiVcvKTl5Q1TwVKpsujVe7mDwcLmqJQ0gg==</ds:DigestValue></xades:CertDigest><xades:IssuerSerialV2>MFowVaRTMFExEzARBgNVBAMMClNESS00LjQuMTIxFTATBgNVBAoMDFRTUC00LjQgTmFtZTEWMBQGA1UECwwNQ0VSVCBGT1IgVEVTVDELMAkGA1UEBhMCRlICATk=</xades:IssuerSerialV2></xades:Cert></xades:SigningCertificateV2></xades:SignedSignatureProperties><xades:SignedDataObjectProperties><xades:DataObjectFormat ObjectReference="#r-id-7a82d669a0eb4fecf3dea5dd8f7cde46-1"><xades:MimeType>application/octet-stream</xades:MimeType></xades:DataObjectFormat></xades:SignedDataObjectProperties></xades:SignedProperties></xades:QualifyingProperties></ds:Object></ds:Signature></FILE> \ No newline at end of file
diff --git a/moaSig/moa-sig/src/test/resources/testdata/xades/4.4.13-TEST FILE.xml b/moaSig/moa-sig/src/test/resources/testdata/xades/4.4.13-TEST FILE.xml
new file mode 100644
index 0000000..4f2fc6e
--- /dev/null
+++ b/moaSig/moa-sig/src/test/resources/testdata/xades/4.4.13-TEST FILE.xml
@@ -0,0 +1,3 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?><FILE>
+ <TEST>SAMPLE</TEST>
+<ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#" Id="id-d42d392b42ed7ed2c722f6abfa325a5b"><ds:SignedInfo><ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/><ds:SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"/><ds:Reference Id="r-id-d42d392b42ed7ed2c722f6abfa325a5b-1" URI=""><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2002/06/xmldsig-filter2"><dsig-filter2:XPath xmlns:dsig-filter2="http://www.w3.org/2002/06/xmldsig-filter2" Filter="subtract">/descendant::ds:Signature</dsig-filter2:XPath></ds:Transform><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>kfsK43NJaZNZwDUkwbME+Sn+ziU/Rl4K0N2bvfbuwvk=</ds:DigestValue></ds:Reference><ds:Reference Type="http://uri.etsi.org/01903#SignedProperties" URI="#xades-id-d42d392b42ed7ed2c722f6abfa325a5b"><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>Ybc9eTocAl3+4WG8YOe1TlU6Zl0IQiCf56gTs7b7y1Y=</ds:DigestValue></ds:Reference></ds:SignedInfo><ds:SignatureValue Id="value-id-d42d392b42ed7ed2c722f6abfa325a5b">nE3bXwFdWGFND4QUtH57c6i/d95WCNMcsI/G2AAmEO1uEiRPTX8eYYBsphtWQ5qFc0NyGvwMJzL/jzBHEYohOAk9MFmnNVSfRtG4FJvmJcvDvtUhiD9UNlgsqYwxW06FNE7X0UaWaePcqvAmGwtI3GfiCynXB04iTnyK5LUebwZ6UevfQNJc3Sl1JO2B/KkoWbJeCPsgn5usvAL8k14i8rDRr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spw07hKm7TTGvwNWzg0QfKZieQ23xbfYjX2/umq5/xeNIr1ZkJQO8wTCeqHdYB02zM6IM/LjX34OLKZBLRToi9zF/jQWr39Qyi+A+HxYXXz+yAbIh5zJtEqm1jma4UIgDZ/gtUoITIVgnZJC2F5T/jhayQ+1w+BLypHpanQORt1QtEGMt3KIbJQdy4Jh2KNAjb7+g7z6HMEl67mSuxoQ2/8wAnO/eIdK1RzqvwdgPcf8CAwEAAaNCMEAwDgYDVR0PAQH/BAQDAgEGMB0GA1UdDgQWBBQf60kB5WZYXiCF/Ozx92lOkCBlEzAPBgNVHRMBAf8EBTADAQH/MA0GCSqGSIb3DQEBCwUAA4IBAQBNywlMWq3TROJbXF1fpBJOzrTHpWfaZvJRs3jH8QR2wAE2bqv9PQpgHSesbh7Hao3rxWgsI0S/RA1t21Zehss9dDmj+zW618HVKZbe4pJDq2v651Bwiel1KYp6/sjPJ0eGyZWFzy/uk5PbF135bDygevSTMLs0PsyA9TSFgq4OdNYuPPj4Jxt7gPd6ZoqJmh0q+7Reqae8iAvasv8jVGat82nOzYVphKD+7ntXUwlUNpWMYKXpjLa8DfZ8ULR/sSOYuXCs2eWh3tDX+CwQPVEdbpiyQ46+Uo78pOfmpMymIXXoJOgG0+/lnr3n+Sbv/SNsEzDyqLpVt+KEVl4Xrl0S</ds:X509Certificate></ds:X509Data></ds:KeyInfo><ds:Object><xades:QualifyingProperties xmlns:xades="http://uri.etsi.org/01903/v1.3.2#" Target="#id-d42d392b42ed7ed2c722f6abfa325a5b"><xades:SignedProperties Id="xades-id-d42d392b42ed7ed2c722f6abfa325a5b"><xades:SignedSignatureProperties><xades:SigningTime>2021-03-21T00:01:06Z</xades:SigningTime><xades:SigningCertificateV2><xades:Cert><xades:CertDigest><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha512"/><ds:DigestValue>JGT62BNOiAJkU6BsFCW207HN0GIx9P8agoGrOg5Px/M710P+gkMdLkkWmf6/LxlO+He56bs7fzCgviA+znrsmQ==</ds:DigestValue></xades:CertDigest><xades:IssuerSerialV2>MFowVaRTMFExEzARBgNVBAMMClNESS00LjQuMTMxFTATBgNVBAoMDFRTUC00LjQgTmFtZTEWMBQGA1UECwwNQ0VSVCBGT1IgVEVTVDELMAkGA1UEBhMCRlICATs=</xades:IssuerSerialV2></xades:Cert></xades:SigningCertificateV2></xades:SignedSignatureProperties><xades:SignedDataObjectProperties><xades:DataObjectFormat ObjectReference="#r-id-d42d392b42ed7ed2c722f6abfa325a5b-1"><xades:MimeType>application/octet-stream</xades:MimeType></xades:DataObjectFormat></xades:SignedDataObjectProperties></xades:SignedProperties></xades:QualifyingProperties></ds:Object></ds:Signature></FILE> \ No newline at end of file
diff --git a/moaSig/moa-sig/src/test/resources/testdata/xades/4.4.14-TEST FILE.xml b/moaSig/moa-sig/src/test/resources/testdata/xades/4.4.14-TEST FILE.xml
new file mode 100644
index 0000000..591adfe
--- /dev/null
+++ b/moaSig/moa-sig/src/test/resources/testdata/xades/4.4.14-TEST FILE.xml
@@ -0,0 +1,3 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?><FILE>
+ <TEST>SAMPLE</TEST>
+<ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#" Id="id-90e582c02265aa0dd528750f2ec088f4"><ds:SignedInfo><ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/><ds:SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"/><ds:Reference Id="r-id-90e582c02265aa0dd528750f2ec088f4-1" URI=""><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2002/06/xmldsig-filter2"><dsig-filter2:XPath xmlns:dsig-filter2="http://www.w3.org/2002/06/xmldsig-filter2" Filter="subtract">/descendant::ds:Signature</dsig-filter2:XPath></ds:Transform><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>kfsK43NJaZNZwDUkwbME+Sn+ziU/Rl4K0N2bvfbuwvk=</ds:DigestValue></ds:Reference><ds:Reference Type="http://uri.etsi.org/01903#SignedProperties" URI="#xades-id-90e582c02265aa0dd528750f2ec088f4"><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>X8dzcwGxa7tEYlOHHgx3SrzM4hAXY8Eyv5IOtH7KMM0=</ds:DigestValue></ds:Reference></ds:SignedInfo><ds:SignatureValue Id="value-id-90e582c02265aa0dd528750f2ec088f4">mRzFzu9SUiSXXK2DwF2mOIJq0L2yGXLDUS5Ylzt1WlitwocjqkBDEy/EnpjEqMAGmKQc59rbm0RzvUblYaVoz8H2JA+UVbzcQ27NDOz996iKSMVWDIdkSr+/EC3y7HWFkqML3wdOYYXn3Ntroi0mecyBZuZJaeITdZaz/lTOZ3PCJHy1DvepFDCdBLWnaJtSBDtKD3nndCQtQiNIu3SSjtoLosS4VY2Zi/620r3YenbZFPrYVtBFrozb87EOUh2Of9PJC9ml8dt3HhR6BHBfhI57bw0STVZ3/wuJ4IL16V27iK7KNpIaanvXJxJIJn0a4mK5VklHQs7zh1gMT6YKow==</ds:SignatureValue><ds:KeyInfo><ds:X509Data><ds:X509Certificate>MIIEWzCCA0OgAwIBAgIBPTANBgkqhkiG9w0BAQsFADBRMRMwEQYDVQQDDApTREktNC40LjE0MRUwEwYDVQQKDAxUU1AtNC40IE5hbWUxFjAUBgNVBAsMDUNFUlQgRk9SIFRFU1QxCzAJBgNVBAYTAkZSMB4XDTIwMDMyMTAwMDA0NFoXDTIyMDMyMTAwMDA0NFowWzEZMBcGA1UEAwwQQ0VSVC1URVNULTQuNC4xNDEZMBcGA1UECgwQVEw0IE9yZ2FuaXphdGlvbjEWMBQGA1UECwwNQ0VSVCBGT1IgVEVTVDELMAkGA1UEBhMCRlIwggEiMA0G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g20n+PUk2Mxl72VjSM432SXk/YGxj6sbRCOFGhWG9IxGAEJgkFcpiZiEPoj6gfN/hHwpvmqWV0EcOW7lxKrjxh46x+L8pvPwSEjZZaKZwTwXzeu2JSX2RRY1BSXw0jSWSfojvgKpdZzDg5KtVfoQLfJwAN6x0Djkw6JvFm5QO1hx1c6XGb6KmUJWcdjLm+dm9kzMg9NNd7dXi1</ds:X509Certificate></ds:X509Data></ds:KeyInfo><ds:Object><xades:QualifyingProperties xmlns:xades="http://uri.etsi.org/01903/v1.3.2#" Target="#id-90e582c02265aa0dd528750f2ec088f4"><xades:SignedProperties Id="xades-id-90e582c02265aa0dd528750f2ec088f4"><xades:SignedSignatureProperties><xades:SigningTime>2021-03-21T00:01:06Z</xades:SigningTime><xades:SigningCertificateV2><xades:Cert><xades:CertDigest><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha512"/><ds:DigestValue>/n3PnODV2gstqKtaXKbAMGrjnFXT2eFyriQ0ecWGrUGqprVNfHhK1IGf1zSKoTK13aq7+Cxu2qpfxJN0FzHjeg==</ds:DigestValue></xades:CertDigest><xades:IssuerSerialV2>MFowVaRTMFExEzARBgNVBAMMClNESS00LjQuMTQxFTATBgNVBAoMDFRTUC00LjQgTmFtZTEWMBQGA1UECwwNQ0VSVCBGT1IgVEVTVDELMAkGA1UEBhMCRlICAT0=</xades:IssuerSerialV2></xades:Cert></xades:SigningCertificateV2></xades:SignedSignatureProperties><xades:SignedDataObjectProperties><xades:DataObjectFormat ObjectReference="#r-id-90e582c02265aa0dd528750f2ec088f4-1"><xades:MimeType>application/octet-stream</xades:MimeType></xades:DataObjectFormat></xades:SignedDataObjectProperties></xades:SignedProperties></xades:QualifyingProperties></ds:Object></ds:Signature></FILE> \ No newline at end of file
diff --git a/moaSig/moa-sig/src/test/resources/testdata/xades/4.4.15-TEST FILE.xml b/moaSig/moa-sig/src/test/resources/testdata/xades/4.4.15-TEST FILE.xml
new file mode 100644
index 0000000..5f4afdf
--- /dev/null
+++ b/moaSig/moa-sig/src/test/resources/testdata/xades/4.4.15-TEST FILE.xml
@@ -0,0 +1,3 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?><FILE>
+ <TEST>SAMPLE</TEST>
+<ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#" Id="id-f4f0804fe7090832f757aac19e9378e5"><ds:SignedInfo><ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/><ds:SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"/><ds:Reference Id="r-id-f4f0804fe7090832f757aac19e9378e5-1" URI=""><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2002/06/xmldsig-filter2"><dsig-filter2:XPath xmlns:dsig-filter2="http://www.w3.org/2002/06/xmldsig-filter2" Filter="subtract">/descendant::ds:Signature</dsig-filter2:XPath></ds:Transform><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>kfsK43NJaZNZwDUkwbME+Sn+ziU/Rl4K0N2bvfbuwvk=</ds:DigestValue></ds:Reference><ds:Reference Type="http://uri.etsi.org/01903#SignedProperties" URI="#xades-id-f4f0804fe7090832f757aac19e9378e5"><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>NHGNRQh30tqFEFuZcxgQnS3t+cEHhi7Upxdn+YAoYRo=</ds:DigestValue></ds:Reference></ds:SignedInfo><ds:SignatureValue Id="value-id-f4f0804fe7090832f757aac19e9378e5">YDRR0wcmz53cWHZX7cuume6zAPZ9kdp47m4VvhsFjbc/rbWQFjc+vd8nYwv1J/YGj7GqArlelrEsZ81P9suKw9t1AazZjxUB0s7Xe30/23zgTFY9ysWWLnp9hGBv0o9kzKYwUSIgALn2ei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lBNBNsJ4VH/DkZ5P460x7SAnIQnKe5UR3TFKGeTiewkUiFcwBRfnm0aG8AJ0I0s+VeKXBuBbnQtPLoIx25D3v3e92XjL7PqJdUPFSiXZFUPbK/R9d2+1L6bLNZ8D+s0LbvAENtDTIz3Oq4ETKDzrsLqcroR2GuEzSRxUZXk8iBPyeFlgik+7F6+oziph4qrgGQ53z8dqFPYXEGu5G6HfWcjVMjQ/U6el4JUspt8uE2MMZ5W97fCdekye0iSef+Je+Be0YfRSMNX1UFshJ1+DErOdGRldM2ridUCI0CAwEAAaNCMEAwDgYDVR0PAQH/BAQDAgEGMB0GA1UdDgQWBBQSSDXQRSsr5Y0WwLTczUnb3gvKhDAPBgNVHRMBAf8EBTADAQH/MA0GCSqGSIb3DQEBCwUAA4IBAQCrt+C2zkf2AJRz8ppn0YJ1pkonhk/GQnzf0EgPQwIlkJzGBk0DAHkr0Q5Fbx56X/UBx2qkIjU5pg53GDdYN5T6AX9MPDmD14gPJEYrU2Fns4jqCYnzffUbI2FO/zGzDekJ7fKqFBEyjTYc6MJl61FwiopzKBSeeZgOzQnINPAm3NoX3g6QZjtQoki5KgLho2Hdyn5RiugDHWOY3t8jZMaMPhx6Z9h/3TuM2Si+dQBcIXT0iOnaWgFioqjWZbNeDFIKVzr6CUTlEN5v86ngXxS1XVOP6zo86hD70V3X4izAjFvCo0m7hCHU43kshfRVtEvFzipBsnh1t1hRK0NFQc6t</ds:X509Certificate></ds:X509Data></ds:KeyInfo><ds:Object><xades:QualifyingProperties xmlns:xades="http://uri.etsi.org/01903/v1.3.2#" Target="#id-f4f0804fe7090832f757aac19e9378e5"><xades:SignedProperties Id="xades-id-f4f0804fe7090832f757aac19e9378e5"><xades:SignedSignatureProperties><xades:SigningTime>2021-03-21T00:01:06Z</xades:SigningTime><xades:SigningCertificateV2><xades:Cert><xades:CertDigest><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha512"/><ds:DigestValue>vZ/OU5Q5k+p/3HoDcuA2kWqNygDW8qiSWapRBdyYl64Wyz/vBFmpegD1Dk20OOPK4Di5yneODPSfVng+MfQWqA==</ds:DigestValue></xades:CertDigest><xades:IssuerSerialV2>MFowVaRTMFExEzARBgNVBAMMClNESS00LjQuMTUxFTATBgNVBAoMDFRTUC00LjQgTmFtZTEWMBQGA1UECwwNQ0VSVCBGT1IgVEVTVDELMAkGA1UEBhMCRlICAT8=</xades:IssuerSerialV2></xades:Cert></xades:SigningCertificateV2></xades:SignedSignatureProperties><xades:SignedDataObjectProperties><xades:DataObjectFormat ObjectReference="#r-id-f4f0804fe7090832f757aac19e9378e5-1"><xades:MimeType>application/octet-stream</xades:MimeType></xades:DataObjectFormat></xades:SignedDataObjectProperties></xades:SignedProperties></xades:QualifyingProperties></ds:Object></ds:Signature></FILE> \ No newline at end of file
diff --git a/moaSig/moa-sig/src/test/resources/testdata/xades/4.4.16-TEST FILE.xml b/moaSig/moa-sig/src/test/resources/testdata/xades/4.4.16-TEST FILE.xml
new file mode 100644
index 0000000..a9a63e5
--- /dev/null
+++ b/moaSig/moa-sig/src/test/resources/testdata/xades/4.4.16-TEST FILE.xml
@@ -0,0 +1,3 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?><FILE>
+ <TEST>SAMPLE</TEST>
+<ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#" Id="id-043ad5410d954a3633d415c338141098"><ds:SignedInfo><ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/><ds:SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"/><ds:Reference Id="r-id-043ad5410d954a3633d415c338141098-1" URI=""><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2002/06/xmldsig-filter2"><dsig-filter2:XPath xmlns:dsig-filter2="http://www.w3.org/2002/06/xmldsig-filter2" Filter="subtract">/descendant::ds:Signature</dsig-filter2:XPath></ds:Transform><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>kfsK43NJaZNZwDUkwbME+Sn+ziU/Rl4K0N2bvfbuwvk=</ds:DigestValue></ds:Reference><ds:Reference Type="http://uri.etsi.org/01903#SignedProperties" URI="#xades-id-043ad5410d954a3633d415c338141098"><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>/Xf7g55Z3jJm+tjGt34VxvSZcZtV5O+XizUzi5dU7BA=</ds:DigestValue></ds:Reference></ds:SignedInfo><ds:SignatureValue Id="value-id-043ad5410d954a3633d415c338141098">asUSgUpGkTbyKRxFEXX9v7RORz8yY2ZF6V0OxphgHgoebNWuvNfIUQr8hCupLJezZv7rk/eZuI5F8oCaS3VwAGpU/SGGcTznzp9fimQkrCZfmGilwxvy3If2BGsXlHBBj5+eQswkR7RSU2p+FithRmy/w90k+rshLTwDEvYX7YjeOyWmfbVHxAfZ/EvMxtihIuiDKGtmwQ4pT6L77XYestgGkgdOEvypGINILFejWMJm6suAYvLVCi2XkoZmQPdUFlxNHPcjoTkuAXf7GSpC1U/gz+WS5WhNv9MmXq2BbvuT6KeEwp5tju46+nrsWZDgy8bCUbawyzet3iNXy2hgug==</ds:SignatureValue><ds:KeyInfo><ds:X509Data><ds:X509Certificate>MIIEWzCCA0OgAwIBAgIBQTANBgkqhkiG9w0BAQsFADBRMRMwEQYDVQQDDApTREktNC40LjE2MRUwEwYDVQQKDAxUU1AtNC40IE5hbWUxFjAUBgNVBAsMDUNFUlQgRk9SIFRFU1QxCzAJBgNVBAYTAkZSMB4XDTIwMDMyMTAwMDA0NFoXDTIyMDMyMTAwMDA0NFowWzEZMBcGA1UEAwwQQ0VSVC1URVNULTQuNC4xNjEZMBcGA1UECgwQVEw0IE9yZ2FuaXphdGlvbjEWMBQGA1UECwwNQ0VSVCBGT1IgVE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sDPey79kFagWkMYk00Rt57ttySFi5PH8MLhhridEkzpEZGboKTI+rAMlX7MLlXShr9Tv105xmG0zhrKtC2TwJsASuu852Je5gBcgujknqAWdOyozjPp7LXKkSZqlvCVnfa7Gfxp0Aif59/VHeLxFE1w5+rsejEVSOfMUQwz2DqbYPrxegF0tMt2t+o3UjYpu11E+ujqtBIZ2A6TRU4ZC5</ds:X509Certificate></ds:X509Data></ds:KeyInfo><ds:Object><xades:QualifyingProperties xmlns:xades="http://uri.etsi.org/01903/v1.3.2#" Target="#id-043ad5410d954a3633d415c338141098"><xades:SignedProperties Id="xades-id-043ad5410d954a3633d415c338141098"><xades:SignedSignatureProperties><xades:SigningTime>2021-03-21T00:01:07Z</xades:SigningTime><xades:SigningCertificateV2><xades:Cert><xades:CertDigest><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha512"/><ds:DigestValue>awdeB4vWYIrHbWq1q8k2HXJV3M+DWi/BbMvOB1QsQudkG95j3OQKVwtQMRvEvgCqFypoMkb5RAEu/jAGgjv7uQ==</ds:DigestValue></xades:CertDigest><xades:IssuerSerialV2>MFowVaRTMFExEzARBgNVBAMMClNESS00LjQuMTYxFTATBgNVBAoMDFRTUC00LjQgTmFtZTEWMBQGA1UECwwNQ0VSVCBGT1IgVEVTVDELMAkGA1UEBhMCRlICAUE=</xades:IssuerSerialV2></xades:Cert></xades:SigningCertificateV2></xades:SignedSignatureProperties><xades:SignedDataObjectProperties><xades:DataObjectFormat ObjectReference="#r-id-043ad5410d954a3633d415c338141098-1"><xades:MimeType>application/octet-stream</xades:MimeType></xades:DataObjectFormat></xades:SignedDataObjectProperties></xades:SignedProperties></xades:QualifyingProperties></ds:Object></ds:Signature></FILE> \ No newline at end of file
diff --git a/moaSig/moa-sig/src/test/resources/testdata/xades/4.4.17-TEST FILE.xml b/moaSig/moa-sig/src/test/resources/testdata/xades/4.4.17-TEST FILE.xml
new file mode 100644
index 0000000..2fa0535
--- /dev/null
+++ b/moaSig/moa-sig/src/test/resources/testdata/xades/4.4.17-TEST FILE.xml
@@ -0,0 +1,3 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?><FILE>
+ <TEST>SAMPLE</TEST>
+<ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#" Id="id-be26f917909dbb340ee6ac995b2f3273"><ds:SignedInfo><ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/><ds:SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"/><ds:Reference Id="r-id-be26f917909dbb340ee6ac995b2f3273-1" URI=""><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2002/06/xmldsig-filter2"><dsig-filter2:XPath xmlns:dsig-filter2="http://www.w3.org/2002/06/xmldsig-filter2" Filter="subtract">/descendant::ds:Signature</dsig-filter2:XPath></ds:Transform><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>kfsK43NJaZNZwDUkwbME+Sn+ziU/Rl4K0N2bvfbuwvk=</ds:DigestValue></ds:Reference><ds:Reference Type="http://uri.etsi.org/01903#SignedProperties" URI="#xades-id-be26f917909dbb340ee6ac995b2f3273"><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>Eoqw7BjAeTC5PTXDL9Gfp7lZ0wft2YJWGu7uyoVuFO4=</ds:DigestValue></ds:Reference></ds:SignedInfo><ds:SignatureValue Id="value-id-be26f917909dbb340ee6ac995b2f3273">KcKl3J25Kx2UtMF6k6hMy9PNO++Az5eoJK7K11HO2afK2fzvGbn/LbRdaBrNBUFWHE4COKNp02EUPJLvor4ZsSVwijhHrMfAVh5SNFh+/PunGLCchT2ldB4EB0Bms4B+P9oUzUVvMigxQy0N5b2v2idzuw6nCC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N90NT2l40Y+91jKUjOmRwgdVq/6rZEMp2G4Kwg1mIS7Xc2g3Sy9mKpVPOTC2jIJ/r7BxDOg5uutekBOgbbASnw3ElXoxRXzqnEG5BWZ9Ga98pv5BLUjlXIjUaECSZknDPnCxf9Z1a1zwwl58RyWQqpRjL2XCL9dzW8hWcXuCGgX9iszREpUkf6N+rJQyZYlrqj4ufLPMXZHFAcPbOEF4TbVwSGmLPH7nzK41mZNH0+IgGEDgv5lwQCsVEmOOUx+em2ywRs83kABcMnM/ND+skCpPwTcCAwEAAaNCMEAwDgYDVR0PAQH/BAQDAgEGMB0GA1UdDgQWBBSWDz2v2+zCNvsd2q0AfD3SXDHaqzAPBgNVHRMBAf8EBTADAQH/MA0GCSqGSIb3DQEBCwUAA4IBAQCIfGAbjhXJKIlxbrw7ZGfSjAURr68bD2NCLcDO8xE7+f6keXVQwmu6xCWvYcl5sWsueDvEx6npiMTvsdGBNoyCd+pd/d46Bu/95DbEuslZplhVUiVrJY+rKFfqSoEARwetnr0ifuddQRFrDoKjKRy2IC2im1MLUbupxGRE9Y1zG0AXArNq+VnggHgElMOk6HIaNRniqhratBbr85dede8GW2LCd09g8RMem59W8eQgy5zAPtYGaDLLWFHMaNv/fxJpw+P9xdFj2kaDR2hdCz6Drbkzi2hkwuMnSfldgG+y7A2Fe9ki8c1fqnOI1yzES8+5gyjY7IHwPUCiaJ8bQYtU</ds:X509Certificate></ds:X509Data></ds:KeyInfo><ds:Object><xades:QualifyingProperties xmlns:xades="http://uri.etsi.org/01903/v1.3.2#" Target="#id-be26f917909dbb340ee6ac995b2f3273"><xades:SignedProperties Id="xades-id-be26f917909dbb340ee6ac995b2f3273"><xades:SignedSignatureProperties><xades:SigningTime>2021-03-21T00:01:07Z</xades:SigningTime><xades:SigningCertificateV2><xades:Cert><xades:CertDigest><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha512"/><ds:DigestValue>8HrkRmSF5/Mo48MLlNsLUrDH4iLjJC/4J/nnXLawr4k8aiZi6w5WLZ6q+xIl57YJQu/wmjb0dHu2zhADzt8QNQ==</ds:DigestValue></xades:CertDigest><xades:IssuerSerialV2>MFowVaRTMFExEzARBgNVBAMMClNESS00LjQuMTcxFTATBgNVBAoMDFRTUC00LjQgTmFtZTEWMBQGA1UECwwNQ0VSVCBGT1IgVEVTVDELMAkGA1UEBhMCRlICAUM=</xades:IssuerSerialV2></xades:Cert></xades:SigningCertificateV2></xades:SignedSignatureProperties><xades:SignedDataObjectProperties><xades:DataObjectFormat ObjectReference="#r-id-be26f917909dbb340ee6ac995b2f3273-1"><xades:MimeType>application/octet-stream</xades:MimeType></xades:DataObjectFormat></xades:SignedDataObjectProperties></xades:SignedProperties></xades:QualifyingProperties></ds:Object></ds:Signature></FILE> \ No newline at end of file
diff --git a/moaSig/moa-sig/src/test/resources/testdata/xades/4.4.18-TEST FILE.xml b/moaSig/moa-sig/src/test/resources/testdata/xades/4.4.18-TEST FILE.xml
new file mode 100644
index 0000000..946a98b
--- /dev/null
+++ b/moaSig/moa-sig/src/test/resources/testdata/xades/4.4.18-TEST FILE.xml
@@ -0,0 +1,3 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?><FILE>
+ <TEST>SAMPLE</TEST>
+<ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#" Id="id-19eaf3b813e5976eae8f72f858c7187f"><ds:SignedInfo><ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/><ds:SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"/><ds:Reference Id="r-id-19eaf3b813e5976eae8f72f858c7187f-1" URI=""><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2002/06/xmldsig-filter2"><dsig-filter2:XPath xmlns:dsig-filter2="http://www.w3.org/2002/06/xmldsig-filter2" Filter="subtract">/descendant::ds:Signature</dsig-filter2:XPath></ds:Transform><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>kfsK43NJaZNZwDUkwbME+Sn+ziU/Rl4K0N2bvfbuwvk=</ds:DigestValue></ds:Reference><ds:Reference Type="http://uri.etsi.org/01903#SignedProperties" URI="#xades-id-19eaf3b813e5976eae8f72f858c7187f"><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>DviYLbX07CE2OgiAQSM2auhxYmdRhJGTNPzlmjhIz3E=</ds:DigestValue></ds:Reference></ds:SignedInfo><ds:SignatureValue Id="value-id-19eaf3b813e5976eae8f72f858c7187f">TAi0wIFLc+4R/bLyTE+ImX5sw/q2XwAEaZgsKaSqOPcR8Dg/d6z7bJPdgmN3AznLWIiQw3DSa1FdJSXe6v5UV2LAO0LIrLkX7iCG3ptJ/I+4qUjEA/YnYJ7+mwQtd9Ky/y4Vt+bn4BXwqbf+Q3GQF1QK6exg6f2bp3deJue8O4gyAPtmjCSVKZrOq/0sGEM5st0x2nbnqcqqDbjrZxV4JX6rx/hm5Oq4UymMQU/uHfiCp40wJqHGGmYzfZ6bGGrlj9YH7r4J0akJxJjPwXrkMcbjgqW1rdQAFnkVhU05EbO/ykyvbCDO0ZDK0rs0vZH/94k7ma1nuo0lRbfgpdMzww==</ds:SignatureValue><ds:KeyInfo><ds:X509Data><ds:X509Certificate>MIIEYzCCA0ugAwIBAgIBRTANBgkqhkiG9w0BAQsFADBRMRMwEQYDVQQDDApTREktNC40LjE4MRUwEwYDVQQKDAxUU1AtNC40IE5hbWUxFjAUBgNVBAsMDUNFUlQgRk9SIFRFU1QxCzAJBgNVBAYTAkZSMB4XDTIwMDMyMTAwMDA0NVoXDTIyMDMyMTAwMDA0NVowWzEZMBcGA1UEAwwQQ0VSVC1URVNULTQuNC4xODEZMBcGA1UECgwQVEw0IE9yZ2FuaXphdGlvbjEW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M+FXqPDUxbtjHveqiiethc0fqt4J7SVcc41kKSYaT23hPtLmIlS+uB0NIhC7Vd+P0E1jo5jQSMiLEr2k7sGeQSh9u2Vg3QjwHkrm6TCI+rr/hrKfwuschhJWtRJiXL0AIXmiq/8Q+G5A3RPUP/TFLCEhZi3UBPhVytXmzW7t652r3ryzlwAOhGFQmzd554hlpBWtQ/rvjgy0gTFgAvTbBkA/kxQsJLcdsCSWDtZ2FtuMOe8HCQjzbG3zXDrqT1KbMvyVitxYIolMNZ5rKA</ds:X509Certificate></ds:X509Data></ds:KeyInfo><ds:Object><xades:QualifyingProperties xmlns:xades="http://uri.etsi.org/01903/v1.3.2#" Target="#id-19eaf3b813e5976eae8f72f858c7187f"><xades:SignedProperties Id="xades-id-19eaf3b813e5976eae8f72f858c7187f"><xades:SignedSignatureProperties><xades:SigningTime>2021-03-21T00:01:07Z</xades:SigningTime><xades:SigningCertificateV2><xades:Cert><xades:CertDigest><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha512"/><ds:DigestValue>A/vA5h62a8m9w0Rqk5KBtiXLv2aAGYLeE+ou6kAOGArb9inDAVDUWrevfXttTgGvFbXzPrAF4OqRk7wVjy+BfA==</ds:DigestValue></xades:CertDigest><xades:IssuerSerialV2>MFowVaRTMFExEzARBgNVBAMMClNESS00LjQuMTgxFTATBgNVBAoMDFRTUC00LjQgTmFtZTEWMBQGA1UECwwNQ0VSVCBGT1IgVEVTVDELMAkGA1UEBhMCRlICAUU=</xades:IssuerSerialV2></xades:Cert></xades:SigningCertificateV2></xades:SignedSignatureProperties><xades:SignedDataObjectProperties><xades:DataObjectFormat ObjectReference="#r-id-19eaf3b813e5976eae8f72f858c7187f-1"><xades:MimeType>application/octet-stream</xades:MimeType></xades:DataObjectFormat></xades:SignedDataObjectProperties></xades:SignedProperties></xades:QualifyingProperties></ds:Object></ds:Signature></FILE> \ No newline at end of file
diff --git a/moaSig/moa-sig/src/test/resources/testdata/xades/4.4.19-TEST FILE.xml b/moaSig/moa-sig/src/test/resources/testdata/xades/4.4.19-TEST FILE.xml
new file mode 100644
index 0000000..f112545
--- /dev/null
+++ b/moaSig/moa-sig/src/test/resources/testdata/xades/4.4.19-TEST FILE.xml
@@ -0,0 +1,3 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?><FILE>
+ <TEST>SAMPLE</TEST>
+<ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#" Id="id-ef00749979c9a4339fa83d765274547a"><ds:SignedInfo><ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/><ds:SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"/><ds:Reference Id="r-id-ef00749979c9a4339fa83d765274547a-1" URI=""><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2002/06/xmldsig-filter2"><dsig-filter2:XPath xmlns:dsig-filter2="http://www.w3.org/2002/06/xmldsig-filter2" Filter="subtract">/descendant::ds:Signature</dsig-filter2:XPath></ds:Transform><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>kfsK43NJaZNZwDUkwbME+Sn+ziU/Rl4K0N2bvfbuwvk=</ds:DigestValue></ds:Reference><ds:Reference Type="http://uri.etsi.org/01903#SignedProperties" URI="#xades-id-ef00749979c9a4339fa83d765274547a"><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>h+mABI8rombpJ3o6BgmX+z5eTH0YjaWucB9HoO3FkHQ=</ds:DigestValue></ds:Reference></ds:SignedInfo><ds:SignatureValue Id="value-id-ef00749979c9a4339fa83d765274547a">A3QRCzAWVrRUpdx6et6inDbSAx0nT0kiCq2M2xW8uvUucIl+bRvuqogkcWX2VHc8r4Ls6bHJsBJ3Z4K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DB86OjZB6EcF48AejceuOQtL0fMlltt1YkiWTK0x2ItGjWb18i0RVYJ5RfsDy+QeDmgiLMFJsIsn4o+hCJdj9SQAUU5ZaPgQgWFnFM5JKP85xVRPMNw5hcDf3ytyDYpMvvT7syDZT2XOvxwVDezn4SBk9K/v2CYJ0rnuFWo7uBqshC0ORuih8ZAfhu4pdXvNdCvVdtnMSHYtpvEETrjvtAsrjCb5aH2xJa6D7SnFI7S276odW57qKkf0cuing4rycbMoKB1Ym5PfCicBqg0WT6U3Jtpj4Up8bCN1PYlKcNQwLP0oM2FSWqfbXS0Hi0P6Og+27pU9cMCAwEAAaNCMEAwDgYDVR0PAQH/BAQDAgEGMB0GA1UdDgQWBBRmBmJwFGZNMHP6aIhWNq0JFIujhzAPBgNVHRMBAf8EBTADAQH/MA0GCSqGSIb3DQEBCwUAA4IBAQC/dceALswDv5n6ZGD+BIxF56rNeoKRh4WyYLM4ZnON9f41EV5alAxbvK4Fw6DY+YDnLijJxCINMZqQwgQcYam+mYhmsIuUGPwaBhkFnb2JyAEV7bEPctUgsIrh0vPACefO5Jl7iros1HyqmmRBkw/LUUViUUMclvLgltdcdMYBVtsxJ0Jam+plF6CH1gvURkW6UUvCGCsnVWhwEzFl+VUeJqzbXsXWf5ph0g2TLd00lRT1uoGJkQSfbKedtu27Hb+2bvbMeY4myi5zWQxNYSOr5Mwi1YdBSNSckGCYOBsZdt6GPriHJdURiCQljKBBuQTKB0hzYfHjQ/b1Ian7d1e/</ds:X509Certificate></ds:X509Data></ds:KeyInfo><ds:Object><xades:QualifyingProperties xmlns:xades="http://uri.etsi.org/01903/v1.3.2#" Target="#id-ef00749979c9a4339fa83d765274547a"><xades:SignedProperties Id="xades-id-ef00749979c9a4339fa83d765274547a"><xades:SignedSignatureProperties><xades:SigningTime>2021-03-21T00:01:07Z</xades:SigningTime><xades:SigningCertificateV2><xades:Cert><xades:CertDigest><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha512"/><ds:DigestValue>Iolm+jCML2fBbL3M2IA8g2Zu/51Edsu103VA/ozZgtT7XzQHagVnw2+RsLlv4N7pM8aA4KxuLfzb3qlc9MLLMQ==</ds:DigestValue></xades:CertDigest><xades:IssuerSerialV2>MFowVaRTMFExEzARBgNVBAMMClNESS00LjQuMTkxFTATBgNVBAoMDFRTUC00LjQgTmFtZTEWMBQGA1UECwwNQ0VSVCBGT1IgVEVTVDELMAkGA1UEBhMCRlICAUc=</xades:IssuerSerialV2></xades:Cert></xades:SigningCertificateV2></xades:SignedSignatureProperties><xades:SignedDataObjectProperties><xades:DataObjectFormat ObjectReference="#r-id-ef00749979c9a4339fa83d765274547a-1"><xades:MimeType>application/octet-stream</xades:MimeType></xades:DataObjectFormat></xades:SignedDataObjectProperties></xades:SignedProperties></xades:QualifyingProperties></ds:Object></ds:Signature></FILE> \ No newline at end of file
diff --git a/moaSig/moa-sig/src/test/resources/testdata/xades/4.4.2-TEST FILE.xml b/moaSig/moa-sig/src/test/resources/testdata/xades/4.4.2-TEST FILE.xml
new file mode 100644
index 0000000..0ce6ec5
--- /dev/null
+++ b/moaSig/moa-sig/src/test/resources/testdata/xades/4.4.2-TEST FILE.xml
@@ -0,0 +1,3 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?><FILE>
+ <TEST>SAMPLE</TEST>
+<ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#" Id="id-7da60ce6d1f8eeaa1214268a64007582"><ds:SignedInfo><ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/><ds:SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"/><ds:Reference Id="r-id-7da60ce6d1f8eeaa1214268a64007582-1" URI=""><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2002/06/xmldsig-filter2"><dsig-filter2:XPath xmlns:dsig-filter2="http://www.w3.org/2002/06/xmldsig-filter2" Filter="subtract">/descendant::ds:Signature</dsig-filter2:XPath></ds:Transform><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>kfsK43NJaZNZwDUkwbME+Sn+ziU/Rl4K0N2bvfbuwvk=</ds:DigestValue></ds:Reference><ds:Reference Type="http://uri.etsi.org/01903#SignedProperties" URI="#xades-id-7da60ce6d1f8eeaa1214268a64007582"><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>jpC7uLPbyqWq1/HP3BhiIlFUbUQmuMszn5tG2iuDqu0=</ds:DigestValue></ds:Reference></ds:SignedInfo><ds:SignatureValue Id="value-id-7da60ce6d1f8eeaa1214268a64007582">KwWfwKtus6gxz0X5YYWaVnsKIzxYAuRM/jU2a0rzNAJZyVoTwooKQC24vaM6VYV9bqZYp+PWi4lZsTOtpt5GXioHsN3VotFItVg9hF+vWNOCCDey5/K6S0axq/8DhUZ9nZvKaHQjqbmUmDm4Cqv5OWsCSx3knxd71YViQ1H8exWuFX61GrVWMJkC7gBzVzL16BKBnibeUDW/nz1vWpgyeZ7YtuF5RddOvXUFLSGGBPObndYHnja9I7ND1cEkEVrXuWCgBTGqlyqQeEg27XQypSGrA8Z6VVvS/eh5DhDkVkZ1X9rpp8ObHpLpHAw+5CHlnJWYo40JhJeOS3BxjTbZlw==</ds:SignatureValue><ds:KeyInfo><ds:X509Data><ds:X509Certificate>MIIEaTCCA1GgAwIBAgIBJTANBgkqhkiG9w0BAQsFADBQMRIwEAYDVQQDDAlTREktNC40LjIxFTATBgNVBAoMDFRTUC00LjQgTmFtZTEWMBQGA1UECwwNQ0VSVCBGT1IgVEVTVDELMAkGA1UEBhMCRlIwHhcNMjAwMzIxMDAwMDM3WhcNMjIwMzIxMDAwMDM3WjBaMRgwFgYDVQQDDA9DRVJULVRFU1QtNC40LjIxGTAXBgNVBAoM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C8OecdZTJDQWIoaPNiTos2A6oZxEViEVb9cyE8TDIEdsmyjOOfm10ki7qz2QHoiS82A7MohL8yXd2V9jVrA0C9WhcDUelgYeJoNhAORP2RtoaefN4AdWWXDw8B1LVcEP1hHMmxy7fOBW+LpbmMaiz39D7J8kmxrQnnljkMNFI3ymt49oEmfNtIJt54j81uvConsCcSiWtn5Wlq3CpB1vWYSGEQ6CT8+ThB+RvBXn+49RcmmVNIQosg0Sli1h5uL4k/FilV/vA72/OyWaHJTLTvdTp9hes9xcpltz6V+av6Pg==</ds:X509Certificate></ds:X509Data></ds:KeyInfo><ds:Object><xades:QualifyingProperties xmlns:xades="http://uri.etsi.org/01903/v1.3.2#" Target="#id-7da60ce6d1f8eeaa1214268a64007582"><xades:SignedProperties Id="xades-id-7da60ce6d1f8eeaa1214268a64007582"><xades:SignedSignatureProperties><xades:SigningTime>2021-03-21T00:01:03Z</xades:SigningTime><xades:SigningCertificateV2><xades:Cert><xades:CertDigest><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha512"/><ds:DigestValue>KRafNaqdrZTDbgLOhtnsq6jCSqK3LORweLyooHZiAXmBQvl8IIdzETSVZoEetSa0A9uo7MfM0+6EnUBcXH5l4g==</ds:DigestValue></xades:CertDigest><xades:IssuerSerialV2>MFkwVKRSMFAxEjAQBgNVBAMMCVNESS00LjQuMjEVMBMGA1UECgwMVFNQLTQuNCBOYW1lMRYwFAYDVQQLDA1DRVJUIEZPUiBURVNUMQswCQYDVQQGEwJGUgIBJQ==</xades:IssuerSerialV2></xades:Cert></xades:SigningCertificateV2></xades:SignedSignatureProperties><xades:SignedDataObjectProperties><xades:DataObjectFormat ObjectReference="#r-id-7da60ce6d1f8eeaa1214268a64007582-1"><xades:MimeType>application/octet-stream</xades:MimeType></xades:DataObjectFormat></xades:SignedDataObjectProperties></xades:SignedProperties></xades:QualifyingProperties></ds:Object></ds:Signature></FILE> \ No newline at end of file
diff --git a/moaSig/moa-sig/src/test/resources/testdata/xades/4.4.20-TEST FILE.xml b/moaSig/moa-sig/src/test/resources/testdata/xades/4.4.20-TEST FILE.xml
new file mode 100644
index 0000000..7b3914e
--- /dev/null
+++ b/moaSig/moa-sig/src/test/resources/testdata/xades/4.4.20-TEST FILE.xml
@@ -0,0 +1,3 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?><FILE>
+ <TEST>SAMPLE</TEST>
+<ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#" Id="id-9ebb5f55d6ddd83a1fab74cdfc0eedbc"><ds:SignedInfo><ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/><ds:SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"/><ds:Reference Id="r-id-9ebb5f55d6ddd83a1fab74cdfc0eedbc-1" URI=""><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2002/06/xmldsig-filter2"><dsig-filter2:XPath xmlns:dsig-filter2="http://www.w3.org/2002/06/xmldsig-filter2" Filter="subtract">/descendant::ds:Signature</dsig-filter2:XPath></ds:Transform><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>kfsK43NJaZNZwDUkwbME+Sn+ziU/Rl4K0N2bvfbuwvk=</ds:DigestValue></ds:Reference><ds:Reference Type="http://uri.etsi.org/01903#SignedProperties" URI="#xades-id-9ebb5f55d6ddd83a1fab74cdfc0eedbc"><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>yvE2AAjjqm6DMrpLIKgGz7DiKTXFeTwOGZQsf1aUuHY=</ds:DigestValue></ds:Reference></ds:SignedInfo><ds:SignatureValue Id="value-id-9ebb5f55d6ddd83a1fab74cdfc0eedbc">ECNPUmMaiI+ZIPLDn/V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VQQGEwJGUjCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAP3SqsOr61Zklu0Wpvnx3/LYSXKnrOWusPq/Hk+Cf4dKhDbsDqh8RgLvcjcQHi3rpSe94qL6tmf+o9Qb+F9pSYA3q4w2E8qaexAb2Zeva5rG3N5duuHY/KO4QqueQk8GazkUkbf0mmaI82/ZtmA6hdGuJ15GGrgLgEFscZ15QGtjzhW9AmMlO66KL1Vh5RPG3otM04S4JFOjuQsNvmjRRfyGojJA5A5qLof15nRzpEZPlFj/9wQWgrudZuZnpVhd8VnZh5qIPlHhjyXiSM/nyWg/Fz2el9sStyrnjFJ8dCiAKOlrjyZ+QknuxtGpDY7kNS1T/Z/yKJa1vxbu2zCOZekCAwEAAaNCMEAwDgYDVR0PAQH/BAQDAgEGMB0GA1UdDgQWBBRE6EaZ6D9d9ODgc89jD/eU6O716zAPBgNVHRMBAf8EBTADAQH/MA0GCSqGSIb3DQEBCwUAA4IBAQDSGKIMEbVYfNg+oMOgyT7Aj2Fej1jznDae0fmfAH3iLod32v/RlIDKYXGlJEk/eBHxSIURD1gcxIV6jwsOha2aaRSiPpKyuKXpuXbzl7zYBQ1/A3DBndLfRa3VwIdBa1rtwM6l4W26Jytm1nlspJWVMY1kXT7SqNsM3zA/mn79ExTWtGeSdHcVOvwlx5xY/Y9IZqOrS3TFPStnkDKfxkW6aa2ZDwv2lCFiR1Sg+Iaa//6CenvuZVUjD8AMfr79PrtY4M1zzcdF94+ksM6xolzVYCYpCpd/+mJgMsxF3V+uAFAE/dsWPPKzGiGeTgijfOOsq4HtbpNX3iQt08gqSpGg</ds:X509Certificate></ds:X509Data></ds:KeyInfo><ds:Object><xades:QualifyingProperties xmlns:xades="http://uri.etsi.org/01903/v1.3.2#" Target="#id-9ebb5f55d6ddd83a1fab74cdfc0eedbc"><xades:SignedProperties Id="xades-id-9ebb5f55d6ddd83a1fab74cdfc0eedbc"><xades:SignedSignatureProperties><xades:SigningTime>2021-03-21T00:01:08Z</xades:SigningTime><xades:SigningCertificateV2><xades:Cert><xades:CertDigest><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha512"/><ds:DigestValue>4kD2Q0i/BNKXc8evQptqjWD23lzE37JC0uCS5XiDdkDIBcj+S1BDUIElzQ7KtwB+/I1/JKQ5bn0MCjTwCsuTFQ==</ds:DigestValue></xades:CertDigest><xades:IssuerSerialV2>MFowVaRTMFExEzARBgNVBAMMClNESS00LjQuMjAxFTATBgNVBAoMDFRTUC00LjQgTmFtZTEWMBQGA1UECwwNQ0VSVCBGT1IgVEVTVDELMAkGA1UEBhMCRlICAUk=</xades:IssuerSerialV2></xades:Cert></xades:SigningCertificateV2></xades:SignedSignatureProperties><xades:SignedDataObjectProperties><xades:DataObjectFormat ObjectReference="#r-id-9ebb5f55d6ddd83a1fab74cdfc0eedbc-1"><xades:MimeType>application/octet-stream</xades:MimeType></xades:DataObjectFormat></xades:SignedDataObjectProperties></xades:SignedProperties></xades:QualifyingProperties></ds:Object></ds:Signature></FILE> \ No newline at end of file
diff --git a/moaSig/moa-sig/src/test/resources/testdata/xades/4.4.21-TEST FILE.xml b/moaSig/moa-sig/src/test/resources/testdata/xades/4.4.21-TEST FILE.xml
new file mode 100644
index 0000000..8d2bb4d
--- /dev/null
+++ b/moaSig/moa-sig/src/test/resources/testdata/xades/4.4.21-TEST FILE.xml
@@ -0,0 +1,3 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?><FILE>
+ <TEST>SAMPLE</TEST>
+<ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#" Id="id-da89886e8d61f1fc59268e9c59e0d74e"><ds:SignedInfo><ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/><ds:SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"/><ds:Reference Id="r-id-da89886e8d61f1fc59268e9c59e0d74e-1" URI=""><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2002/06/xmldsig-filter2"><dsig-filter2:XPath xmlns:dsig-filter2="http://www.w3.org/2002/06/xmldsig-filter2" Filter="subtract">/descendant::ds:Signature</dsig-filter2:XPath></ds:Transform><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>kfsK43NJaZNZwDUkwbME+Sn+ziU/Rl4K0N2bvfbuwvk=</ds:DigestValue></ds:Reference><ds:Reference Type="http://uri.etsi.org/01903#SignedProperties" URI="#xades-id-da89886e8d61f1fc59268e9c59e0d74e"><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>m0Bt49i6WUZoKYgJSYSKWUGttwTYQjNmQrr5aK0cMQU=</ds:DigestValue></ds:Reference></ds:SignedInfo><ds:SignatureValue Id="value-id-da89886e8d61f1fc59268e9c59e0d74e">BeYgu7kRUhwEk3dFm/CwFA2gmqyg3TEAyeIUUu49aHgPMN2LdrlFzytxVhenuGI8QbSr+DjIksSFF7BwTxrvy0pCUzONKPfWPPm6oOVs2myxbA8u2ghbVsET0Opb+ZQWo5TrXvM0OnzI1MWVoHtAuClr8MZCYPNoCLQwI7JCKbhUNk2oOELZs74HN0a2shee6EindNUZYjpTYsQ6oZjxRbTmsjCN7sla46EKSlAhIwS+Hd6lg9hWIya6V3AcHroHEmSOwrx/cnRfyKJLt2RtbdynsAU0y4EV2M4mePjdKX7IJ3bxDN99zam6NDL7/FzVFLyvLneChtMlCkunTc4WoQ==</ds:SignatureValue><ds:KeyInfo><ds:X509Data><ds:X509Certificate>MIIERTCCAy2gAwIBAgIBSzANBgkqhkiG9w0BAQsFADBRMRMwEQYDVQQDDApTREktNC40LjIxMRUwEwYDVQQKDAxUU1AtNC40IE5hbWUxFjAUBgNVBAsMDUNFUlQgRk9SIFRFU1QxCzAJBg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wUAA4IBAQBq49XDTRwBVG98YdA/X2EGAI8pfHHd+MFvB2trZiT4Fk5ZNfZY+YIbUbLraT+rBxgsa8J/0+u7HzZvjOgfdfUL0k/UBAPYe+2UjHBqafvQtehsnsFHOyacRVuvIPMI+qhAo5GrqdWw6qnixjdELJ5890W9hX1HC+g1Tqt4qjhThdL5LFesiB/4gRhsvSspN4wyYpFTi+fVDxpn3V4uPnNGQ+OwPo3uYNNYe+aRPaJNETAOVi1bBD39MYJGVa76qeLfrkqYe02R17nB6gHcmR8kt3R29w/IRFMB9yQCQGWP2/+lNFM6mVa8WRMnGcwdR27VHlJSfqYkostnF9NkUfLB</ds:X509Certificate></ds:X509Data></ds:KeyInfo><ds:Object><xades:QualifyingProperties xmlns:xades="http://uri.etsi.org/01903/v1.3.2#" Target="#id-da89886e8d61f1fc59268e9c59e0d74e"><xades:SignedProperties Id="xades-id-da89886e8d61f1fc59268e9c59e0d74e"><xades:SignedSignatureProperties><xades:SigningTime>2021-03-21T00:01:08Z</xades:SigningTime><xades:SigningCertificateV2><xades:Cert><xades:CertDigest><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha512"/><ds:DigestValue>zFItbWlZHIfXxQ9hdqRJRDYhmfFIdu/XVuJczhBEKNij73AH57LodKsYMoMJvgn09v0SuYaGFZljqc5DZ6pFRg==</ds:DigestValue></xades:CertDigest><xades:IssuerSerialV2>MFowVaRTMFExEzARBgNVBAMMClNESS00LjQuMjExFTATBgNVBAoMDFRTUC00LjQgTmFtZTEWMBQGA1UECwwNQ0VSVCBGT1IgVEVTVDELMAkGA1UEBhMCRlICAUs=</xades:IssuerSerialV2></xades:Cert></xades:SigningCertificateV2></xades:SignedSignatureProperties><xades:SignedDataObjectProperties><xades:DataObjectFormat ObjectReference="#r-id-da89886e8d61f1fc59268e9c59e0d74e-1"><xades:MimeType>application/octet-stream</xades:MimeType></xades:DataObjectFormat></xades:SignedDataObjectProperties></xades:SignedProperties></xades:QualifyingProperties></ds:Object></ds:Signature></FILE> \ No newline at end of file
diff --git a/moaSig/moa-sig/src/test/resources/testdata/xades/4.4.3-TEST FILE.xml b/moaSig/moa-sig/src/test/resources/testdata/xades/4.4.3-TEST FILE.xml
new file mode 100644
index 0000000..e3b25c2
--- /dev/null
+++ b/moaSig/moa-sig/src/test/resources/testdata/xades/4.4.3-TEST FILE.xml
@@ -0,0 +1,3 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?><FILE>
+ <TEST>SAMPLE</TEST>
+<ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#" Id="id-e5c5a078647cfdabeb0f04c911821fad"><ds:SignedInfo><ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/><ds:SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"/><ds:Reference Id="r-id-e5c5a078647cfdabeb0f04c911821fad-1" URI=""><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2002/06/xmldsig-filter2"><dsig-filter2:XPath xmlns:dsig-filter2="http://www.w3.org/2002/06/xmldsig-filter2" Filter="subtract">/descendant::ds:Signature</dsig-filter2:XPath></ds:Transform><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>kfsK43NJaZNZwDUkwbME+Sn+ziU/Rl4K0N2bvfbuwvk=</ds:DigestValue></ds:Reference><ds:Reference Type="http://uri.etsi.org/01903#SignedProperties" URI="#xades-id-e5c5a078647cfdabeb0f04c911821fad"><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>nHulaFufCzDqSn6vu5RSwxUN9NCvhMD7oYvgNdo1i7M=</ds:DigestValue></ds:Reference></ds:SignedInfo><ds:SignatureValue Id="value-id-e5c5a078647cfdabeb0f04c911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TREktNC40LjMxFTATBgNVBAoMDFRTUC00LjQgTmFtZTEWMBQGA1UECwwNQ0VSVCBGT1IgVEVTVDELMAkGA1UEBhMCRlIwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCh5aVPxMPsUmeh3v8E4GaqkddJ1QvSF99YthYP39W67IHXOcRoEnqERGOlNtFdD/6KyEWo1BX3tfbCLRQua89lbvLjQ/SLte8wrWi0MKxKVvlpC1oUzbh8LNYn8kEnR6Iw/E6JBGHdVs0kn/2hk+X5bA/Au8p6mYNv9ez0ifzp9DrGMpuyic+RJr2r2QO4hP4iPoGXq4U8uj7PghMuuen42KXWygEKBN3fyjfnMCYSwYKRnbUMqEiiqZJAr4orl+ChXXLOl8JbUZd+PlWk2kKlboHhWNYykc8EvY8YzVSNxIPrp4YGZs/l8VcYRjPjWxSW7tBQiaiIuXrHn/tv4BtRAgMBAAGjQjBAMA4GA1UdDwEB/wQEAwIBBjAdBgNVHQ4EFgQUa1xGnxeP/GNSIqt2x7pWDtCuksIwDwYDVR0TAQH/BAUwAwEB/zANBgkqhkiG9w0BAQsFAAOCAQEAVP39f7ZikvwaGiA9wVcetzueO5vckgZZOEzfNLjhLZ5YfJMoTush4/3fxvIAc7xSIn7KI9ieJwmND/EPKmPUT3kt8dnD+GKdVQJmzd7zfBmCJxPl1BKefZ/wYlu9u/u6v+EwoEwKxiqSa6ArNV9qP4YlTfu85nvl5F5EUOOBLbP4NB0V5m0Fg8eoO7ZJ5YDgStdUuieoG9C/v4G9PjkuP5SpIkkR1SCm7cZ8nTjWiRFxhZEctsrIaQDvAqBNjDR4bPoKIN/jZi5kgga4nMrqMnIUksY7SBUFIJapWZbLrZBc4vfqMPkVnIiDGva41IQkARH2drUqjdHtwlqwbH5Qpg==</ds:X509Certificate></ds:X509Data></ds:KeyInfo><ds:Object><xades:QualifyingProperties xmlns:xades="http://uri.etsi.org/01903/v1.3.2#" Target="#id-e5c5a078647cfdabeb0f04c911821fad"><xades:SignedProperties Id="xades-id-e5c5a078647cfdabeb0f04c911821fad"><xades:SignedSignatureProperties><xades:SigningTime>2021-03-21T00:01:03Z</xades:SigningTime><xades:SigningCertificateV2><xades:Cert><xades:CertDigest><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha512"/><ds:DigestValue>jRWVIUb7pSpD1vu7gZxOVcN+NlEk2fYNjDi6UjUOvcXH/Wc6XjHiVgWsWrMsWJxEXQd7Ai3u9ClNTbolrkTo7Q==</ds:DigestValue></xades:CertDigest><xades:IssuerSerialV2>MFkwVKRSMFAxEjAQBgNVBAMMCVNESS00LjQuMzEVMBMGA1UECgwMVFNQLTQuNCBOYW1lMRYwFAYDVQQLDA1DRVJUIEZPUiBURVNUMQswCQYDVQQGEwJGUgIBJw==</xades:IssuerSerialV2></xades:Cert></xades:SigningCertificateV2></xades:SignedSignatureProperties><xades:SignedDataObjectProperties><xades:DataObjectFormat ObjectReference="#r-id-e5c5a078647cfdabeb0f04c911821fad-1"><xades:MimeType>application/octet-stream</xades:MimeType></xades:DataObjectFormat></xades:SignedDataObjectProperties></xades:SignedProperties></xades:QualifyingProperties></ds:Object></ds:Signature></FILE> \ No newline at end of file
diff --git a/moaSig/moa-sig/src/test/resources/testdata/xades/4.4.4-TEST FILE.xml b/moaSig/moa-sig/src/test/resources/testdata/xades/4.4.4-TEST FILE.xml
new file mode 100644
index 0000000..019522e
--- /dev/null
+++ b/moaSig/moa-sig/src/test/resources/testdata/xades/4.4.4-TEST FILE.xml
@@ -0,0 +1,3 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?><FILE>
+ <TEST>SAMPLE</TEST>
+<ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#" Id="id-db0ff57a96849899158f21c984bcca9a"><ds:SignedInfo><ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/><ds:SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"/><ds:Reference Id="r-id-db0ff57a96849899158f21c984bcca9a-1" URI=""><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2002/06/xmldsig-filter2"><dsig-filter2:XPath xmlns:dsig-filter2="http://www.w3.org/2002/06/xmldsig-filter2" Filter="subtract">/descendant::ds:Signature</dsig-filter2:XPath></ds:Transform><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>kfsK43NJaZNZwDUkwbME+Sn+ziU/Rl4K0N2bvfbuwvk=</ds:DigestValue></ds:Reference><ds:Reference Type="http://uri.etsi.org/01903#SignedProperties" URI="#xades-id-db0ff57a96849899158f21c984bcca9a"><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>+yo1cvf4fQ4D6gYn1hUrQMauZu8emFixiNNSZiwnDl8=</ds:DigestValue></ds:Reference></ds:SignedInfo><ds:SignatureValue Id="value-id-db0ff57a96849899158f21c984bcca9a">NaHiVrL9DkPggNPEWv+QnA06PnVNifq7wN8W/Ib4Yirdtz+LI+KgqjndyVSD1cNmlC+4zTL1TwizHihfc5iQuqFHbGBUJD1dZX0eJdVcwt8Mx1NwbJMDHrjgwYyRzn00rLg7AYMPdc33l3w52qTN9PvwRkm0XDSYtvR/Yy9kOrKfSi2yKXDIIKL+9HMi1Oq4w0SKXcTGME0HRBGy3IsIY9EKfQ2tJUNOG6gZpkMp3G+RSbuJwGw9oW5oshmM4X9RP5e+K/m/tYZBW2h6AcTXII2YRvEXpJu1Ggj+OCJZyjbs2LFZzowBW7Y+q5dvCojbpi1t8WIrBZzQ6iK+iTfbRg==</ds:SignatureValue><ds:KeyInfo><ds:X509Data><ds:X509Certificate>MIIEaTCCA1GgAwIBAgIBKTANBgkqhkiG9w0BAQsFADBQMRIwEAYDVQQDDAlTREktNC40LjQxFT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qCfKqQVMDenNmTGZTVJvDzpAgMBAAGjQjBAMA4GA1UdDwEB/wQEAwIBBjAdBgNVHQ4EFgQUmpYAXlE7qA0dChtWcnCsu88t0Z8wDwYDVR0TAQH/BAUwAwEB/zANBgkqhkiG9w0BAQsFAAOCAQEADYVKj+gZCGUecRUbdcOoHJw3UE6CeNj5kLV4Z2XlwMfcknQ9kD0s75w45DDeN3lhKJ1Af2pM7Uksgj/sSeDbQ5tNpU1GFhzTWYGAJmDr+jokrM+lfzJznMHiEgIon+5yI24Nm1rItuNBfMR8ybcDsn6f9Lwu1csGAEJw9rSbuj1+JjQldUxpZdwZi2Dz6ZiecoyUC4vZEigCanRHlpFCss2MLG+/CdS/XHA/cY+C6vKRie1Keb5/f9yKlfHA0JTwWHEvJnpH6rkYftNgLThPq7WNTYOyGB+azslUDG6K4sHKCaodpk6vef9wVveC5mCyWWcfZhuz6g0DFywjeiDF/Q==</ds:X509Certificate></ds:X509Data></ds:KeyInfo><ds:Object><xades:QualifyingProperties xmlns:xades="http://uri.etsi.org/01903/v1.3.2#" Target="#id-db0ff57a96849899158f21c984bcca9a"><xades:SignedProperties Id="xades-id-db0ff57a96849899158f21c984bcca9a"><xades:SignedSignatureProperties><xades:SigningTime>2021-03-21T00:01:03Z</xades:SigningTime><xades:SigningCertificateV2><xades:Cert><xades:CertDigest><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha512"/><ds:DigestValue>ya8u/4wSFemKHZrOxFhz/ab4KZEgAqMR3ONgKXmKC4mVziJ0g/KbQ2Tny1zJCDnDk2IyJkLyLJjsYHdxsQhS8A==</ds:DigestValue></xades:CertDigest><xades:IssuerSerialV2>MFkwVKRSMFAxEjAQBgNVBAMMCVNESS00LjQuNDEVMBMGA1UECgwMVFNQLTQuNCBOYW1lMRYwFAYDVQQLDA1DRVJUIEZPUiBURVNUMQswCQYDVQQGEwJGUgIBKQ==</xades:IssuerSerialV2></xades:Cert></xades:SigningCertificateV2></xades:SignedSignatureProperties><xades:SignedDataObjectProperties><xades:DataObjectFormat ObjectReference="#r-id-db0ff57a96849899158f21c984bcca9a-1"><xades:MimeType>application/octet-stream</xades:MimeType></xades:DataObjectFormat></xades:SignedDataObjectProperties></xades:SignedProperties></xades:QualifyingProperties></ds:Object></ds:Signature></FILE> \ No newline at end of file
diff --git a/moaSig/moa-sig/src/test/resources/testdata/xades/4.4.5-TEST FILE.xml b/moaSig/moa-sig/src/test/resources/testdata/xades/4.4.5-TEST FILE.xml
new file mode 100644
index 0000000..93a1fe9
--- /dev/null
+++ b/moaSig/moa-sig/src/test/resources/testdata/xades/4.4.5-TEST FILE.xml
@@ -0,0 +1,3 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?><FILE>
+ <TEST>SAMPLE</TEST>
+<ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#" Id="id-5d6f8a528fe663a4bbe1ecde92a2dd76"><ds:SignedInfo><ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/><ds:SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"/><ds:Reference Id="r-id-5d6f8a528fe663a4bbe1ecde92a2dd76-1" URI=""><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2002/06/xmldsig-filter2"><dsig-filter2:XPath xmlns:dsig-filter2="http://www.w3.org/2002/06/xmldsig-filter2" Filter="subtract">/descendant::ds:Signature</dsig-filter2:XPath></ds:Transform><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>kfsK43NJaZNZwDUkwbME+Sn+ziU/Rl4K0N2bvfbuwvk=</ds:DigestValue></ds:Reference><ds:Reference Type="http://uri.etsi.org/01903#SignedProperties" URI="#xades-id-5d6f8a528fe663a4bbe1ecde92a2dd76"><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>BW588x9TW8xs+VjtzN6rZ39ZZp063JWYVd4JsXMjA+E=</ds:DigestValue></ds:Reference></ds:SignedInfo><ds:SignatureValue Id="value-id-5d6f8a528fe663a4bbe1ecde92a2dd76">fPmwncgb/qMxlbaBqIj5FB5/vXzIxDmtBA05v39Q28nLBcCamBeknqGCMm/YaI8PGrZAnFpkkI9y66NjpOdWqxaa8fuNWihd//3m7Ag/BWD7EYL8D072PKrPBhjUpXXS3iOUQO3z2NUNtaAh5xCxZgQR1bATQjD/P17A99ETA9YSoQBdHCKY3BEBc0eqnOJnLOPqSOlNMZvUh/V7+LDpyzcXS6WM+QFm+ApbIAxD1f11t1pVI0C812fApPMxzsnA7KspNgT1dVrKyD+OIPND4NmInVe75sXFAbEdZ3p8UlILXDd6Xi1POM81QeBrMaEJUF2ZnwaapRO9+IA2qhW8Xg==</ds:SignatureValue><ds:KeyInfo><ds:X509Data><ds:X509Certificate>MIIEaTCCA1GgAwIBAgIBKzANBgkqhkiG9w0BAQsFADBQMRIwEAYDVQQDDAlTREktNC40LjUxFTATBgNVBAoMDFRTUC00LjQgTmFtZTEWMBQGA1UECwwNQ0VSVCBGT1IgVEVTVDELMAkGA1UEBhMCRlIwHhcNMjAwMzIxMDAwMDM4WhcNMjIwMzIxMDAwMDM4WjBaMRgwFgYDVQQDDA9DRVJULVRFU1QtNC40LjUxGTAXBgNVBAoMEFRMNCBPcmdhbml6YXRpb24xFjAUBgNVBAsMDUNFUlQgRk9SIFRFU1QxCzAJBgNVBAYTAkZSMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA0pZHkL2vDP67JTgOPH5shb40CaZlYZ7otEXwXBT3yr8/RPUKSpoL3H86cS+WpsF6sAU/z1gzwUJ9RhXKivC5jNb9B0wDTqPUU9bOZXbmP6COXGys9qVHbbkcGe4USIzUbhC/2VxOe6BHywDG66cTRKCdFFcW2Kx+z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JbpWi5RGeCLUXrgPxQ==</ds:X509Certificate></ds:X509Data></ds:KeyInfo><ds:Object><xades:QualifyingProperties xmlns:xades="http://uri.etsi.org/01903/v1.3.2#" Target="#id-5d6f8a528fe663a4bbe1ecde92a2dd76"><xades:SignedProperties Id="xades-id-5d6f8a528fe663a4bbe1ecde92a2dd76"><xades:SignedSignatureProperties><xades:SigningTime>2021-03-21T00:01:04Z</xades:SigningTime><xades:SigningCertificateV2><xades:Cert><xades:CertDigest><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha512"/><ds:DigestValue>HiTOvMgH3N0m9PVRs6I2vL8H/PJ5aBrzTRDpsw0jt5+L1aoo1ZWln5Mp4DpAqWTwaRqNGPcoISYycNrDPYgG6g==</ds:DigestValue></xades:CertDigest><xades:IssuerSerialV2>MFkwVKRSMFAxEjAQBgNVBAMMCVNESS00LjQuNTEVMBMGA1UECgwMVFNQLTQuNCBOYW1lMRYwFAYDVQQLDA1DRVJUIEZPUiBURVNUMQswCQYDVQQGEwJGUgIBKw==</xades:IssuerSerialV2></xades:Cert></xades:SigningCertificateV2></xades:SignedSignatureProperties><xades:SignedDataObjectProperties><xades:DataObjectFormat ObjectReference="#r-id-5d6f8a528fe663a4bbe1ecde92a2dd76-1"><xades:MimeType>application/octet-stream</xades:MimeType></xades:DataObjectFormat></xades:SignedDataObjectProperties></xades:SignedProperties></xades:QualifyingProperties></ds:Object></ds:Signature></FILE> \ No newline at end of file
diff --git a/moaSig/moa-sig/src/test/resources/testdata/xades/4.4.6-TEST FILE.xml b/moaSig/moa-sig/src/test/resources/testdata/xades/4.4.6-TEST FILE.xml
new file mode 100644
index 0000000..577d237
--- /dev/null
+++ b/moaSig/moa-sig/src/test/resources/testdata/xades/4.4.6-TEST FILE.xml
@@ -0,0 +1,3 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?><FILE>
+ <TEST>SAMPLE</TEST>
+<ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#" Id="id-64fb6ca09f0d0c1c1e491808a506abce"><ds:SignedInfo><ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/><ds:SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"/><ds:Reference Id="r-id-64fb6ca09f0d0c1c1e491808a506abce-1" URI=""><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2002/06/xmldsig-filter2"><dsig-filter2:XPath xmlns:dsig-filter2="http://www.w3.org/2002/06/xmldsig-filter2" Filter="subtract">/descendant::ds:Signature</dsig-filter2:XPath></ds:Transform><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>kfsK43NJaZNZwDUkwbME+Sn+ziU/Rl4K0N2bvfbuwvk=</ds:DigestValue></ds:Reference><ds:Reference Type="http://uri.etsi.org/01903#SignedProperties" URI="#xades-id-64fb6ca09f0d0c1c1e491808a506abce"><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>FJsFdHCdXAQ3XJG9DlJoT1LeSXVNwajGXzMmI8xqOyg=</ds:DigestValue></ds:Reference></ds:SignedInfo><ds:SignatureValue Id="value-id-64fb6ca09f0d0c1c1e491808a506abce">YFHvxB/EJUs2M9i0TYKuEJwvMy8dNO576xhH80YrNP/5W6bCOc1TkWklDrwhmKNN8uAQ6CH774j60C6MQDjfD/9wUy1iULLVyeWE8cNlEuc7o7SRzEIQDhZFXEvLVlMog6iuqpw24NwjkT2F8NAHZayMfmWcRFPt30UwMNJGQMJHDZug44L+Si/nfUfx9j40MrirIYTfCwHa/iQ4u5TLqh9gITonau0NqVrxsdyvI8bDwYxN09IWQSdodZrXGJWS5tK6g+MzpNtLaM5LjkG7obhHdA7juBJWbfrPyk07Go1VMNGsOXrz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puJr++SRjW8vbr+XU4EL6DXv6JROcqf/3GRO9cB73LrM8Zkz4olAuL3OefAn0hbIOQQYNrWaZ+CVOw9HBL/cmA3QNNyg3nXnRgW7q+3R4MReVGbzVgbnvXYwlVOBQXGoiWPU/Q7ICiLJ6Lg03T7v3qJrAgMBAAGjQjBAMA4GA1UdDwEB/wQEAwIBBjAdBgNVHQ4EFgQU0Vpy1wbjsqdW821P/QLn4tSX8EQwDwYDVR0TAQH/BAUwAwEB/zANBgkqhkiG9w0BAQsFAAOCAQEAACs2bZwdDDLK/oIDVjB/vleNC192zjc7p/PPR8TcgBQv4Jw0f47S3Y9GGqClqGy1pZIV9+ETrvuPzB0QJUlg3nr/RA056NZu9TaGtfY9SvcsRzuTwnmVSN8fmuLjWBf65cmJ7L9Sj76eSuxuyY/jED8nb2Jd3Tf1AzLSnU8WPPJ/8EY7KKGYb3RiiSD9XOlcDfd9RS8T1+6mOw8SQdO1iasY6Yrh+0F8Xxbp/VIJ17u64hfrLIQaUriH82pEmFiG21XDne6KbAwfKa4YuAx4G6iAFxDD23SxIreoJ5sU9AjkiiCrRv2pg+fnuVMX5ElsuO/s8ent4JG+Au95ggfPlw==</ds:X509Certificate></ds:X509Data></ds:KeyInfo><ds:Object><xades:QualifyingProperties xmlns:xades="http://uri.etsi.org/01903/v1.3.2#" Target="#id-64fb6ca09f0d0c1c1e491808a506abce"><xades:SignedProperties Id="xades-id-64fb6ca09f0d0c1c1e491808a506abce"><xades:SignedSignatureProperties><xades:SigningTime>2021-03-21T00:01:04Z</xades:SigningTime><xades:SigningCertificateV2><xades:Cert><xades:CertDigest><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha512"/><ds:DigestValue>uyhdJfymSkYlzRKeXQGcnWM/dRwdx1f3lMfdswWHPumobnH+W2DHm+dbmZJ27Wd+/4WhdQ48pvCt3jxrgb1tnA==</ds:DigestValue></xades:CertDigest><xades:IssuerSerialV2>MFkwVKRSMFAxEjAQBgNVBAMMCVNESS00LjQuNjEVMBMGA1UECgwMVFNQLTQuNCBOYW1lMRYwFAYDVQQLDA1DRVJUIEZPUiBURVNUMQswCQYDVQQGEwJGUgIBLQ==</xades:IssuerSerialV2></xades:Cert></xades:SigningCertificateV2></xades:SignedSignatureProperties><xades:SignedDataObjectProperties><xades:DataObjectFormat ObjectReference="#r-id-64fb6ca09f0d0c1c1e491808a506abce-1"><xades:MimeType>application/octet-stream</xades:MimeType></xades:DataObjectFormat></xades:SignedDataObjectProperties></xades:SignedProperties></xades:QualifyingProperties></ds:Object></ds:Signature></FILE> \ No newline at end of file
diff --git a/moaSig/moa-sig/src/test/resources/testdata/xades/4.4.7-TEST FILE.xml b/moaSig/moa-sig/src/test/resources/testdata/xades/4.4.7-TEST FILE.xml
new file mode 100644
index 0000000..2b6ec4d
--- /dev/null
+++ b/moaSig/moa-sig/src/test/resources/testdata/xades/4.4.7-TEST FILE.xml
@@ -0,0 +1,3 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?><FILE>
+ <TEST>SAMPLE</TEST>
+<ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#" Id="id-5bd11040f040a46ab18b91c1a99dbf13"><ds:SignedInfo><ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/><ds:SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"/><ds:Reference Id="r-id-5bd11040f040a46ab18b91c1a99dbf13-1" URI=""><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2002/06/xmldsig-filter2"><dsig-filter2:XPath xmlns:dsig-filter2="http://www.w3.org/2002/06/xmldsig-filter2" Filter="subtract">/descendant::ds:Signature</dsig-filter2:XPath></ds:Transform><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>kfsK43NJaZNZwDUkwbME+Sn+ziU/Rl4K0N2bvfbuwvk=</ds:DigestValue></ds:Reference><ds:Reference Type="http://uri.etsi.org/01903#SignedProperties" URI="#xades-id-5bd11040f040a46ab18b91c1a99dbf13"><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>7yAkAheJEhSzEOKc5FDs/O/LNGvb5r82tiowzLMLHdk=</ds:DigestValue></ds:Reference></ds:SignedInfo><ds:SignatureValue Id="value-id-5bd11040f040a46ab18b91c1a99dbf13">iZtGqvBCKicDWNMTHPtd838q5o4NSMUTNV46SnxaLCooWr28HfQUhUw6CZRTR/83Nl5f9VyvMmjuVrJBzPItn/5q2lGNo1I6p2VRVV2Nne4XWGsM+A7FmT8BwrynX7YMaWM9YqT0aSzcrQ84K7MP4OwEGGA8txPwaBF9itkLw33ONzvsNdI2qWZwuhPm2Eo+oft8/ekZXD1/JCe5eRe3h0yFJNkTtlYIK6XED9MGtLZpsEafxpm3fZJyiz+KCe5gmPTVU71nYYrRSfEZbZ9EVj7boidONpYStKX0j5sCqG/gH/vX4IM2AUQNGGOLgoSi6DbIwRgLFCaK4GqYGUfu+A==</ds:SignatureValue><ds:KeyInfo><ds:X509Data><ds:X509Certificate>MIIEaTCCA1GgAwIBAgIBLzANBgkqhkiG9w0BAQsFADBQMRIwEAYDVQQDDAlTREktNC40LjcxFTATBgNVBAoMDFRTUC00LjQgTmFtZTEWMBQGA1UECwwNQ0VSVCBGT1IgVEVTVDELMAkGA1UEBhMCRlIwHhcNMjAwMzIxMDAwMDM5WhcNMjIwMzIxMDAwMDM5WjBaMRgwFgYDVQQDDA9DRVJULVRFU1QtNC40LjcxGTAXBgNVBAoMEFRMNCBPcmdhbml6YXRpb24xFjAUBgNVBAsMDUNFUlQgRk9SIFRFU1QxCzAJBgNVBAYTAkZSMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA2+L1tJvDEQ/D8SprvwnkgDv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2gAVQLJwVSBVU2qwAxBCorwQgnRihbAtQNNlg/bK1Ii5sI/LDOa7AMT5zT9nHQF5jCI1kGGLLBKtIOJveHoMWIgxeOV8iRPwY/qQz+yGX+fRQgnxv5Wxmzz6GS79WjuoHbxTUxaGCCm9egvhsqxtSoJ4Ic4w==</ds:X509Certificate></ds:X509Data></ds:KeyInfo><ds:Object><xades:QualifyingProperties xmlns:xades="http://uri.etsi.org/01903/v1.3.2#" Target="#id-5bd11040f040a46ab18b91c1a99dbf13"><xades:SignedProperties Id="xades-id-5bd11040f040a46ab18b91c1a99dbf13"><xades:SignedSignatureProperties><xades:SigningTime>2021-03-21T00:01:04Z</xades:SigningTime><xades:SigningCertificateV2><xades:Cert><xades:CertDigest><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha512"/><ds:DigestValue>3TSRQ5kBA2DZS1nUY6I/R0UOB0s2kjgB3HoGeoFn9lJEg623xAfJoKozoAB7dv5I2FndDOfLHSh0OQQEQssd7A==</ds:DigestValue></xades:CertDigest><xades:IssuerSerialV2>MFkwVKRSMFAxEjAQBgNVBAMMCVNESS00LjQuNzEVMBMGA1UECgwMVFNQLTQuNCBOYW1lMRYwFAYDVQQLDA1DRVJUIEZPUiBURVNUMQswCQYDVQQGEwJGUgIBLw==</xades:IssuerSerialV2></xades:Cert></xades:SigningCertificateV2></xades:SignedSignatureProperties><xades:SignedDataObjectProperties><xades:DataObjectFormat ObjectReference="#r-id-5bd11040f040a46ab18b91c1a99dbf13-1"><xades:MimeType>application/octet-stream</xades:MimeType></xades:DataObjectFormat></xades:SignedDataObjectProperties></xades:SignedProperties></xades:QualifyingProperties></ds:Object></ds:Signature></FILE> \ No newline at end of file
diff --git a/moaSig/moa-sig/src/test/resources/testdata/xades/4.4.8-TEST FILE.xml b/moaSig/moa-sig/src/test/resources/testdata/xades/4.4.8-TEST FILE.xml
new file mode 100644
index 0000000..5c20601
--- /dev/null
+++ b/moaSig/moa-sig/src/test/resources/testdata/xades/4.4.8-TEST FILE.xml
@@ -0,0 +1,3 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?><FILE>
+ <TEST>SAMPLE</TEST>
+<ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#" Id="id-a73cb3ff80fc7734709c225155a1a3bb"><ds:SignedInfo><ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/><ds:SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"/><ds:Reference Id="r-id-a73cb3ff80fc7734709c225155a1a3bb-1" URI=""><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2002/06/xmldsig-filter2"><dsig-filter2:XPath xmlns:dsig-filter2="http://www.w3.org/2002/06/xmldsig-filter2" Filter="subtract">/descendant::ds:Signature</dsig-filter2:XPath></ds:Transform><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>kfsK43NJaZNZwDUkwbME+Sn+ziU/Rl4K0N2bvfbuwvk=</ds:DigestValue></ds:Reference><ds:Reference Type="http://uri.etsi.org/01903#SignedProperties" URI="#xades-id-a73cb3ff80fc7734709c225155a1a3bb"><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>eY/1K9Y7wOc0iQoEUKhb6CqCh4KwnnM35t0uwwqR4j8=</ds:DigestValue></ds:Reference></ds:SignedInfo><ds:SignatureValue Id="value-id-a73cb3ff80fc7734709c225155a1a3bb">XnQtRtiFKLdgCdSJo9bCd4hBGoWHyXZHmX17nmYlsnROmAITHbodhlLYCXLg3o0KrhDEQt1KWXDCZ59N8tDm6AQc55gZDD7J8yncEVZ5COuYnWaqZC59O3Qv9gego1BPUDFAE2jSPDt55UQUOimGpj69RbVAJTK/p04Loe+5V2GoBN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qxkf6InLaNJynJw6owp2amVbAtgJxURI/zMt8CkB5X0uYvcPRGpJz2yF6GXhbfuYiautwD+kKWHmvAhwaCBN9YTqfG7gnLUe+Iad3k9og/xPc/UX7Bkux35qIMqsVLLrhOhBQSdfFfFJlE6qDqVeeWvWhSlnEBLQESP27z4c3mLNE61vXHDBG2JQx+0fr0BarcnIWX7nC+ezgrnNJjODaw+GGhjOodpxasDRWHRE5640tgOJ9hGEp+KbClF3IH1r1bDm6xrRuv22qpGAu/KrdHe5PywNFyGUA3PbAgMBAAGjQjBAMA4GA1UdDwEB/wQEAwIBBjAdBgNVHQ4EFgQUHeWaRG2+WXDABF4kH0BoiYy92wYwDwYDVR0TAQH/BAUwAwEB/zANBgkqhkiG9w0BAQsFAAOCAQEAJ5o72MgEWDPaeHaKVry08EnIbeEP7s0F8mQ+xykMKP1kaVEu8UuGh76JA4Nr8rIqT3YjjAM5yDGqMc4hubz0U9AJPCYMnBUQH2xyzYl50SXiqJOW5qjZAqyIk6RMlmpnjdBBU4ZqjiyA606ZNW8cS+jgn+2WEZT1btw1M6g4aiz7XNmAxajmkmtFlGagybz/2n23aKt9PW0a6lkL/f4zoa8VqgY3DoNzNeoKAkpvdUnsz78zz4yWyhNfmde1osJpa+2hXE/VyMsdME8Oo3aYEAfwoME4vLIyrEYI7NRJrOy0O6IbNP6+5ooehyqPV+vjgX5Zjui/lIn2US7jy7GIyA==</ds:X509Certificate></ds:X509Data></ds:KeyInfo><ds:Object><xades:QualifyingProperties xmlns:xades="http://uri.etsi.org/01903/v1.3.2#" Target="#id-a73cb3ff80fc7734709c225155a1a3bb"><xades:SignedProperties Id="xades-id-a73cb3ff80fc7734709c225155a1a3bb"><xades:SignedSignatureProperties><xades:SigningTime>2021-03-21T00:01:04Z</xades:SigningTime><xades:SigningCertificateV2><xades:Cert><xades:CertDigest><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha512"/><ds:DigestValue>LvqV2XEe2FEv4vMvWUoArwHTqA0C/V9jKcmX96DuO1UywirxaFh3qjWAbI9TyTJV6YIDpTTwjZTZK9zroxwa0w==</ds:DigestValue></xades:CertDigest><xades:IssuerSerialV2>MFkwVKRSMFAxEjAQBgNVBAMMCVNESS00LjQuODEVMBMGA1UECgwMVFNQLTQuNCBOYW1lMRYwFAYDVQQLDA1DRVJUIEZPUiBURVNUMQswCQYDVQQGEwJGUgIBMQ==</xades:IssuerSerialV2></xades:Cert></xades:SigningCertificateV2></xades:SignedSignatureProperties><xades:SignedDataObjectProperties><xades:DataObjectFormat ObjectReference="#r-id-a73cb3ff80fc7734709c225155a1a3bb-1"><xades:MimeType>application/octet-stream</xades:MimeType></xades:DataObjectFormat></xades:SignedDataObjectProperties></xades:SignedProperties></xades:QualifyingProperties></ds:Object></ds:Signature></FILE> \ No newline at end of file
diff --git a/moaSig/moa-sig/src/test/resources/testdata/xades/4.4.9-TEST FILE.xml b/moaSig/moa-sig/src/test/resources/testdata/xades/4.4.9-TEST FILE.xml
new file mode 100644
index 0000000..c1712aa
--- /dev/null
+++ b/moaSig/moa-sig/src/test/resources/testdata/xades/4.4.9-TEST FILE.xml
@@ -0,0 +1,3 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?><FILE>
+ <TEST>SAMPLE</TEST>
+<ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#" Id="id-f6e7fb5e38c775c2890f5a0db6c30419"><ds:SignedInfo><ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/><ds:SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"/><ds:Reference Id="r-id-f6e7fb5e38c775c2890f5a0db6c30419-1" URI=""><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2002/06/xmldsig-filter2"><dsig-filter2:XPath xmlns:dsig-filter2="http://www.w3.org/2002/06/xmldsig-filter2" Filter="subtract">/descendant::ds:Signature</dsig-filter2:XPath></ds:Transform><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>kfsK43NJaZNZwDUkwbME+Sn+ziU/Rl4K0N2bvfbuwvk=</ds:DigestValue></ds:Reference><ds:Reference Type="http://uri.etsi.org/01903#SignedProperties" URI="#xades-id-f6e7fb5e38c775c2890f5a0db6c30419"><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>EgCQ9nA2QeEjN7ogp6vu1/q3ybef2oiEptazHw5+VpI=</ds:DigestValue></ds:Reference></ds:SignedInfo><ds:SignatureValue Id="value-id-f6e7fb5e38c775c2890f5a0db6c30419">SW6r1gqdtGK2awwGBHv5WlQn7BrlPFNX6uMBI64BF/GYOrK6JN+SSirZGyDWBO3nXRehhuDrv7DFVrok7zjRhMRqwkVU0+AZcHP//IKf5ZzxswpSOA4Zq/DcNhCGhOU4s1/dAH+HmqQ1bbLaCrUP/0/O39F0Vg4iyI+dJzzeQfyVR69RBSHRAQXFDToz0kwiE1rncilO5PyeRTXN4PvsGnb1ol7sjPEjJolS1dbakYDsqisslhALymNbzT8Vq/rkfmLYQa0KkonL0xuVCmH+/LqcxcGojtGsENYopBK7NasFmKOXB/Pf7hykumxANntMqZEF4WtxbSzWv3l+s3nSFg==</ds:SignatureValue><ds:KeyInfo><ds:X509Data><ds:X509Certificate>MIIEYTCCA0mgAwIBAgIBMzANBgkqhkiG9w0BAQsFADBQMRIwEAYDVQQDDAlTREktNC40LjkxFTATBgNVBAoMDFRTUC00LjQgTmFtZTEWMBQGA1UECwwNQ0VSVCBGT1IgVEVTVDELMAkGA1UEBhMCRlIwHhcNMjAwMzIxMDAwMDQwWhcNMjIwMzIxMDAwMDQwWjBaMRgwFgYDVQQDDA9DRVJULVRFU1QtNC40LjkxGTAXBgNVBAoMEFRMNCBPcmdhbml6YXRpb24xF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1JkA5AburpCYY7gQM6VQ/ioonTfHotPx39YQYlkyjHoUV2J5qr+qLSPBdN+5SNUtCYXnbASn3hcak+FVckF0p/p+KeECohIYLR3FEraa5Bwc3UlvVy+3CR8dbwTV1lSNzRLmjDwUjjZF1NrGys0Fxe1OXsbpgDKB3NiGp/pJbRZE35a3FQa31ecjuiwNw9JISEJXyI5uYyqND/ie4uW7tfRQvMpURqzgYeT1oP6atjqq7Dp5clAvenGlfjkGOLdQnD7qRVbew==</ds:X509Certificate></ds:X509Data></ds:KeyInfo><ds:Object><xades:QualifyingProperties xmlns:xades="http://uri.etsi.org/01903/v1.3.2#" Target="#id-f6e7fb5e38c775c2890f5a0db6c30419"><xades:SignedProperties Id="xades-id-f6e7fb5e38c775c2890f5a0db6c30419"><xades:SignedSignatureProperties><xades:SigningTime>2021-03-21T00:01:05Z</xades:SigningTime><xades:SigningCertificateV2><xades:Cert><xades:CertDigest><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha512"/><ds:DigestValue>CxnUxyh4ebY80hvzjfikFruV3CDd+AQHIeuXzFoL0wP5gQtYMVqw6YoeQLyN/GVCCaq0IGZZLMbDNFwsG07oyw==</ds:DigestValue></xades:CertDigest><xades:IssuerSerialV2>MFkwVKRSMFAxEjAQBgNVBAMMCVNESS00LjQuOTEVMBMGA1UECgwMVFNQLTQuNCBOYW1lMRYwFAYDVQQLDA1DRVJUIEZPUiBURVNUMQswCQYDVQQGEwJGUgIBMw==</xades:IssuerSerialV2></xades:Cert></xades:SigningCertificateV2></xades:SignedSignatureProperties><xades:SignedDataObjectProperties><xades:DataObjectFormat ObjectReference="#r-id-f6e7fb5e38c775c2890f5a0db6c30419-1"><xades:MimeType>application/octet-stream</xades:MimeType></xades:DataObjectFormat></xades:SignedDataObjectProperties></xades:SignedProperties></xades:QualifyingProperties></ds:Object></ds:Signature></FILE> \ No newline at end of file
diff --git a/moaSig/moa-sig/src/test/resources/testdata/xades/4.5.1-TEST FILE.xml b/moaSig/moa-sig/src/test/resources/testdata/xades/4.5.1-TEST FILE.xml
new file mode 100644
index 0000000..8c1b25d
--- /dev/null
+++ b/moaSig/moa-sig/src/test/resources/testdata/xades/4.5.1-TEST FILE.xml
@@ -0,0 +1,3 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?><FILE>
+ <TEST>SAMPLE</TEST>
+<ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#" Id="id-1ad96833d3d2cd773c8699235175ebec"><ds:SignedInfo><ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/><ds:SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"/><ds:Reference Id="r-id-1ad96833d3d2cd773c8699235175ebec-1" URI=""><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2002/06/xmldsig-filter2"><dsig-filter2:XPath xmlns:dsig-filter2="http://www.w3.org/2002/06/xmldsig-filter2" Filter="subtract">/descendant::ds:Signature</dsig-filter2:XPath></ds:Transform><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>kfsK43NJaZNZwDUkwbME+Sn+ziU/Rl4K0N2bvfbuwvk=</ds:DigestValue></ds:Reference><ds:Reference Type="http://uri.etsi.org/01903#SignedProperties" URI="#xades-id-1ad96833d3d2cd773c8699235175ebec"><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>h/PKRs1HgWXBeSummlIbdp0BPHotISWFZf2Gv90O6sM=</ds:DigestValue></ds:Reference></ds:SignedInfo><ds:SignatureValue Id="value-id-1ad96833d3d2cd773c8699235175ebec">bS3V6QH9ZJbSuJAnXL3JNCEslEPRZ0vPQdbwh18GaQIgFSnp0c37h1gRdLnvITedHtSRMxfnqhgw6tP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AQC73lCWam1yhQn537whTBM22p4kpePfjRsEPSkojECx/Uplt5E4K9Gdg748ZB6vmzZEIPFuVN6tuDoRsQVvArcrhbyiTlFCd2HMLQNGtsshhcZtYZRYpoyUOxHDhZTJeR/hK1eUebyySPr61yilKHsJCxnQzBJwOyyKlzlERHziS/tO7tfPsxrsrosUlovcdtUBdV4YR1xAPsmORau0sKaGH8UVsI3tYKoPYPuDUCZ1Wl9jyE6mrXa7qcVhBbH8qfapa5i/3p7EIT8CkIdA/6WCxBpeU5xANvTWJ5y3WMmvH8Hbu0rt/A1iPVzbTBf/7r/eGatTQgJMGNZGV7qEG+DjAgMBAAGjQjBAMA4GA1UdDwEB/wQEAwIBBjAdBgNVHQ4EFgQUbGhBXunie1QX41nJB0Ru4+rXgX0wDwYDVR0TAQH/BAUwAwEB/zANBgkqhkiG9w0BAQsFAAOCAQEAkRVNb0/GeF+1zWUl365fmzohGA5wlDm3ofI5HISQpwRYVU9+Q+pDjygLpvzKDtIOlkmnQe8G8xi2NQGSi595arAvO/2goAMQuOdpkj7rRgrqHrbOqaMzoeeEr+tB+Wy0vF4hSavU501cvLf1hsZ3oWCHHtEjO4WGcrNx/xsrbylg+qCYWpEuYddmgAjSwAYyrMNf7Y3IaWSQBYuedJHZ1sftQL+fdmmqJ6ArTW3ANgcYmgcEyUXH/cTUW7yWv780gxkyyqMdA9QmwUkTE1HqZZD4LcJ1oHoNwKfx6MHb2V1xqj8AWfIsRmw8eAF0VC97wAyq8OA75n3FMA91wEOeYg==</ds:X509Certificate></ds:X509Data></ds:KeyInfo><ds:Object><xades:QualifyingProperties xmlns:xades="http://uri.etsi.org/01903/v1.3.2#" Target="#id-1ad96833d3d2cd773c8699235175ebec"><xades:SignedProperties Id="xades-id-1ad96833d3d2cd773c8699235175ebec"><xades:SignedSignatureProperties><xades:SigningTime>2021-03-21T00:01:08Z</xades:SigningTime><xades:SigningCertificateV2><xades:Cert><xades:CertDigest><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha512"/><ds:DigestValue>OnSgc5noHOIdN9FDZyOWtl0/EqeVOcBu4TaHpDaV7gqJxhnwzBziv29TUCsMK6CcxCTWwrrCIh1VKwOvNJUa0w==</ds:DigestValue></xades:CertDigest><xades:IssuerSerialV2>MFkwVKRSMFAxEjAQBgNVBAMMCVNESS00LjUuMTEVMBMGA1UECgwMVFNQLTQuNSBOYW1lMRYwFAYDVQQLDA1DRVJUIEZPUiBURVNUMQswCQYDVQQGEwJGUgIBTQ==</xades:IssuerSerialV2></xades:Cert></xades:SigningCertificateV2></xades:SignedSignatureProperties><xades:SignedDataObjectProperties><xades:DataObjectFormat ObjectReference="#r-id-1ad96833d3d2cd773c8699235175ebec-1"><xades:MimeType>application/octet-stream</xades:MimeType></xades:DataObjectFormat></xades:SignedDataObjectProperties></xades:SignedProperties></xades:QualifyingProperties></ds:Object></ds:Signature></FILE> \ No newline at end of file
diff --git a/moaSig/moa-sig/src/test/resources/testdata/xades/4.5.2-TEST FILE.xml b/moaSig/moa-sig/src/test/resources/testdata/xades/4.5.2-TEST FILE.xml
new file mode 100644
index 0000000..9462848
--- /dev/null
+++ b/moaSig/moa-sig/src/test/resources/testdata/xades/4.5.2-TEST FILE.xml
@@ -0,0 +1,3 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?><FILE>
+ <TEST>SAMPLE</TEST>
+<ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#" Id="id-bd939818ca98eed47bf367b43c544768"><ds:SignedInfo><ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/><ds:SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"/><ds:Reference Id="r-id-bd939818ca98eed47bf367b43c544768-1" URI=""><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2002/06/xmldsig-filter2"><dsig-filter2:XPath xmlns:dsig-filter2="http://www.w3.org/2002/06/xmldsig-filter2" Filter="subtract">/descendant::ds:Signature</dsig-filter2:XPath></ds:Transform><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>kfsK43NJaZNZwDUkwbME+Sn+ziU/Rl4K0N2bvfbuwvk=</ds:DigestValue></ds:Reference><ds:Reference Type="http://uri.etsi.org/01903#SignedProperties" URI="#xades-id-bd939818ca98eed47bf367b43c544768"><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>gx4lFIdvvAGvPCOx/XWOxtg05AiuhuzIGrdtgByC4dc=</ds:DigestValue></ds:Reference></ds:SignedInfo><ds:SignatureValue Id="value-id-bd939818ca98eed47bf367b43c544768">xF3gHGBxfwVJDiQ/HNWChfTZx13nsKkVQx7iPhxk5nL+1PpBCSgR2nPNUVhXCfkJBZYyL14ZbGFuMIAmpwXxk/tBNft2n1bD/fkLegR6jYmE8YmyVHGqxRJJPncO/yfXokgutXpuoVbd13bTBZpAEHMSC9ttOgSN//KBwXiBX6PVhkDprOk0Q8Byx9NISpeOXJaAfcmdEc8JkZ5sZbGG7a0UKpzj41JHd6WyK05pqGeG+y4xrMOWcRjKTjghh38w6dkTvb57lYU7QvfPxS1jq2A14//EXG4YfXLgBjG0Hdzxb56PIWYYmKUm9P2o+YHyH1WJBMx6YojQRvvRyqdNPA==</ds:SignatureValue><ds:KeyInfo><ds:X509Data><ds:X509Certificate>MIIEVTCCAz2gAwIBAgIBTzANBgkqhkiG9w0BAQsFADBQMRIwEAYDVQQDDAlTREktNC41LjIxFTATBgNVBAoMDFRTUC00LjUgTmFtZTEWMBQGA1UECwwNQ0VSVCBGT1IgVEVTVDELMAkGA1UEBhMCRlIwHhcNMjAwMzIxMDAwMDQ4WhcNMjIwMzIxMDAwMDQ4WjBaMRgwFgYDVQQDDA9DRVJULVRFU1QtNC41LjIx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xxCNlnH68BxVYzTVacjY8jSRuNc1DD0IxAektDe95uYFTJGz+D8llx3VwuaNSd5Gd1CUBdbya3N8FJLzN2OyCADSEPZFPUjewz3zdcpafCM1fMj9H6KgSY4Wqr/HOQ9BcqEpdsXFtJLAazlXt084uiXn2vz/eWX623Nut0JdBz7hRTZeCw7MnWqOGJJbtM9OOdPefE1/pSGHsGV7kygA+bl6n1gzJ6LSA9g+xRjm3YBoRb+0BTL+Ac50mfPzkLGCuBi7DAuecVN3oStWb9HaDKCL774+mCNhq4EzRCxtA==</ds:X509Certificate></ds:X509Data></ds:KeyInfo><ds:Object><xades:QualifyingProperties xmlns:xades="http://uri.etsi.org/01903/v1.3.2#" Target="#id-bd939818ca98eed47bf367b43c544768"><xades:SignedProperties Id="xades-id-bd939818ca98eed47bf367b43c544768"><xades:SignedSignatureProperties><xades:SigningTime>2021-03-21T00:01:09Z</xades:SigningTime><xades:SigningCertificateV2><xades:Cert><xades:CertDigest><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha512"/><ds:DigestValue>SXL2+JO3d+fGBC79uCjRCPfT9L9VpBM6rPG7vHVRfV+T6dfmVMDujxu5k3psW5PqnZ4HwBnlfhxf0Xnh5769Aw==</ds:DigestValue></xades:CertDigest><xades:IssuerSerialV2>MFkwVKRSMFAxEjAQBgNVBAMMCVNESS00LjUuMjEVMBMGA1UECgwMVFNQLTQuNSBOYW1lMRYwFAYDVQQLDA1DRVJUIEZPUiBURVNUMQswCQYDVQQGEwJGUgIBTw==</xades:IssuerSerialV2></xades:Cert></xades:SigningCertificateV2></xades:SignedSignatureProperties><xades:SignedDataObjectProperties><xades:DataObjectFormat ObjectReference="#r-id-bd939818ca98eed47bf367b43c544768-1"><xades:MimeType>application/octet-stream</xades:MimeType></xades:DataObjectFormat></xades:SignedDataObjectProperties></xades:SignedProperties></xades:QualifyingProperties></ds:Object></ds:Signature></FILE> \ No newline at end of file
diff --git a/moaSig/moa-sig/src/test/resources/testdata/xades/4.5.3-TEST FILE.xml b/moaSig/moa-sig/src/test/resources/testdata/xades/4.5.3-TEST FILE.xml
new file mode 100644
index 0000000..6e45c2c
--- /dev/null
+++ b/moaSig/moa-sig/src/test/resources/testdata/xades/4.5.3-TEST FILE.xml
@@ -0,0 +1,3 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?><FILE>
+ <TEST>SAMPLE</TEST>
+<ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#" Id="id-a47e063d2bf6706315090b23cd4e7752"><ds:SignedInfo><ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/><ds:SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"/><ds:Reference Id="r-id-a47e063d2bf6706315090b23cd4e7752-1" URI=""><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2002/06/xmldsig-filter2"><dsig-filter2:XPath xmlns:dsig-filter2="http://www.w3.org/2002/06/xmldsig-filter2" Filter="subtract">/descendant::ds:Signature</dsig-filter2:XPath></ds:Transform><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>kfsK43NJaZNZwDUkwbME+Sn+ziU/Rl4K0N2bvfbuwvk=</ds:DigestValue></ds:Reference><ds:Reference Type="http://uri.etsi.org/01903#SignedProperties" URI="#xades-id-a47e063d2bf6706315090b23cd4e7752"><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>1/3axDGciq6bX7BmjE90epiBvULX4Kq9xs+3/NVxx1k=</ds:DigestValue></ds:Reference></ds:SignedInfo><ds:SignatureValue Id="value-id-a47e063d2bf6706315090b23cd4e7752">giLg/kv1izE6GONtATkI8CdqOAthuU+Gwv0kxMe82qA0LcsfZKlfOIMPJLCAls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qGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCTw7anDIAcNthlhlwaEGSFzgB5AfYomns9sPK28OvsQ0g+c7/2cTgpf3Mbx5c6BeroC+4S/xoub1yhkyrJtPfC1qcXevpn99jJn3ZvkvrEkkYI2kC+T6r1njRe5XCMhUdRrRwKVO7KTX3OsQFnECYe5stEh9VAkPNbHctK76V0CWSrc1Dt4JckKYKBkugA/IcYyAuPWs96fBpxgWqDOnGq7WNyz1xB0sytuFRESF1xGGxrHny6mBiUVI7SfbHJty+/SQ9a6O72bL36hzCZAiWWnQIFP4zcZCRg6g2qpfbJ+Hl6owo34J+f9oCFEMR8U1Wk+5gSxLU9k/a5GR1NUKINAgMBAAGjQjBAMA4GA1UdDwEB/wQEAwIBBjAdBgNVHQ4EFgQUtITS5N2oEhP2TeyLWjfzKK3+kvswDwYDVR0TAQH/BAUwAwEB/zANBgkqhkiG9w0BAQsFAAOCAQEAbaVZbgnjR16ckuUSzoQAoLBB+3Q4lvmmk3mclv3YIJHzkxMlPPUo+4uVqxQ6/SukwmveEYzMdX3wckx6yIbi0QD5p7oTji+3YwmnV51r+Lrr1nUV8J6ciHoTAPO8rx5HR7nINrtyBZeLsYAvCIUO3sNKeNH4I2x3J9AGBtAFxRrYOhblQEXroxXI8SAEVVvD32VUyOZxqcFNhzdAsC0xVCJaVJkM3zSWEIppAIeEVGr06lJpu7ya7apXpDcdt7Xt9Wi2F83Mh2UOkHFsqSvv/ESsoVKhTzunLfRxPOk56Nuv3k+YKzqLmiPf+yzrh7JXI/iERBqGq25CLBLOUNvBOQ==</ds:X509Certificate></ds:X509Data></ds:KeyInfo><ds:Object><xades:QualifyingProperties xmlns:xades="http://uri.etsi.org/01903/v1.3.2#" Target="#id-a47e063d2bf6706315090b23cd4e7752"><xades:SignedProperties Id="xades-id-a47e063d2bf6706315090b23cd4e7752"><xades:SignedSignatureProperties><xades:SigningTime>2021-03-21T00:01:09Z</xades:SigningTime><xades:SigningCertificateV2><xades:Cert><xades:CertDigest><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha512"/><ds:DigestValue>T1qgZv1ukA/wUi5FgvbvANUKwEI4yQPXPyAOMRTG9pUNeInUqQ4mHa31zItMzzz90pRZnI2u3j3cW9AtwQkB7A==</ds:DigestValue></xades:CertDigest><xades:IssuerSerialV2>MFkwVKRSMFAxEjAQBgNVBAMMCVNESS00LjUuMzEVMBMGA1UECgwMVFNQLTQuNSBOYW1lMRYwFAYDVQQLDA1DRVJUIEZPUiBURVNUMQswCQYDVQQGEwJGUgIBUQ==</xades:IssuerSerialV2></xades:Cert></xades:SigningCertificateV2></xades:SignedSignatureProperties><xades:SignedDataObjectProperties><xades:DataObjectFormat ObjectReference="#r-id-a47e063d2bf6706315090b23cd4e7752-1"><xades:MimeType>application/octet-stream</xades:MimeType></xades:DataObjectFormat></xades:SignedDataObjectProperties></xades:SignedProperties></xades:QualifyingProperties></ds:Object></ds:Signature></FILE> \ No newline at end of file
diff --git a/moaSig/moa-sig/src/test/resources/testdata/xades/4.5.4-TEST FILE.xml b/moaSig/moa-sig/src/test/resources/testdata/xades/4.5.4-TEST FILE.xml
new file mode 100644
index 0000000..d1eb53d
--- /dev/null
+++ b/moaSig/moa-sig/src/test/resources/testdata/xades/4.5.4-TEST FILE.xml
@@ -0,0 +1,3 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?><FILE>
+ <TEST>SAMPLE</TEST>
+<ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#" Id="id-4c82528b63d9a7cfd36cecfbd19d6aa9"><ds:SignedInfo><ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/><ds:SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"/><ds:Reference Id="r-id-4c82528b63d9a7cfd36cecfbd19d6aa9-1" URI=""><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2002/06/xmldsig-filter2"><dsig-filter2:XPath xmlns:dsig-filter2="http://www.w3.org/2002/06/xmldsig-filter2" Filter="subtract">/descendant::ds:Signature</dsig-filter2:XPath></ds:Transform><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>kfsK43NJaZNZwDUkwbME+Sn+ziU/Rl4K0N2bvfbuwvk=</ds:DigestValue></ds:Reference><ds:Reference Type="http://uri.etsi.org/01903#SignedProperties" URI="#xades-id-4c82528b63d9a7cfd36cecfbd19d6aa9"><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>E0LF4/s7qBhrHt3s1ZuoI905a3PB107lV9oj1qLpqQk=</ds:DigestValue></ds:Reference></ds:SignedInfo><ds:SignatureValue Id="value-id-4c82528b63d9a7cfd36cecfbd19d6aa9">29dbcQ6figDP5D53mfefAlVJOtiSx1WuMQZrR70dEEN9rASao7XOpCj2zvsWG1+iBew5RXt7glmghxoL9HzGHECQUkNBZkJbCZMWZZ6vyP01yO9FJhkK1pDHVk3ilVXZgzxpZd9XzQSi8mqC5A7FnLQuC2iZjlgAtJLVOh5VmEx3b0EF9YzNnTWdVw9kBkp/FwgM0ogZycFzsIEmfZQo2t8NFWZndIIPejEt6NVz3ryeVROXh/oacHIh6/blMEHM5krh/hVoTwn/Ip6mX054LnO/z6yclQBQD3rj8p8WQpbKKhWy4jH+BtBu9Wjm/RkhvEBSpmsB9dChhAGnLgSDYg==</ds:SignatureValue><ds:KeyInfo><ds:X509Data><ds:X509Certificate>MIIEMTCCAxmgAwIBAgIBUzANBgkqhkiG9w0BAQsFADBQMRIwEAYDVQQDDAlTREktNC41LjQxFTATBgNVBAoMDFRTUC00LjUgTmFtZTEWMBQGA1UECwwNQ0VSVCBGT1IgVEVTVDELMAkGA1UEBhMCRlIwHhcNMTYwMzIxMDAwMDQ4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BdWiNvNLQ4uiUt3vP07nr5F9/fGSRMYAQAIIQhpDuJRA4PfCOI2DKkd3JEt4r1cdOyytw970IIwGEfNosTJQh9XiP/7wwvdmezxpJEAE9U/R8+jR4JHqyY7SK+XFxux+saPW90V3Id6HjeKpCcSee4idXwyC+QnV6r8h02+xK9dHzT0E02ojKfnX17+BNAnNAZSRETXd+614KGsbFwmNIoBDC6K2+cAYWUcHijHjKRaJ7HBKHe58YAq6ijrvdpNq/h0HLtiAi/8I6ZHdgiek5MSGoy75QofO+G7eMJNhiw==</ds:X509Certificate></ds:X509Data></ds:KeyInfo><ds:Object><xades:QualifyingProperties xmlns:xades="http://uri.etsi.org/01903/v1.3.2#" Target="#id-4c82528b63d9a7cfd36cecfbd19d6aa9"><xades:SignedProperties Id="xades-id-4c82528b63d9a7cfd36cecfbd19d6aa9"><xades:SignedSignatureProperties><xades:SigningTime>2015-06-01T12:00:00Z</xades:SigningTime><xades:SigningCertificateV2><xades:Cert><xades:CertDigest><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha512"/><ds:DigestValue>zvh9sTlYfmLkIXVebr/LCfISqTBx5Itc0Cc7P2w/SsKL9hGrRg3ExV2+fURFbAwzzVc53SyOXsZgvk9xKQ4OOg==</ds:DigestValue></xades:CertDigest><xades:IssuerSerialV2>MFkwVKRSMFAxEjAQBgNVBAMMCVNESS00LjUuNDEVMBMGA1UECgwMVFNQLTQuNSBOYW1lMRYwFAYDVQQLDA1DRVJUIEZPUiBURVNUMQswCQYDVQQGEwJGUgIBUw==</xades:IssuerSerialV2></xades:Cert></xades:SigningCertificateV2></xades:SignedSignatureProperties><xades:SignedDataObjectProperties><xades:DataObjectFormat ObjectReference="#r-id-4c82528b63d9a7cfd36cecfbd19d6aa9-1"><xades:MimeType>application/octet-stream</xades:MimeType></xades:DataObjectFormat></xades:SignedDataObjectProperties></xades:SignedProperties><xades:UnsignedProperties><xades:UnsignedSignatureProperties><xades:SignatureTimeStamp Id="TS-dfde147d-1622-4f34-babc-b7d84638560e"><ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/><xades:EncapsulatedTimeStamp Id="ETS-dfde147d-1622-4f34-babc-b7d84638560e">MIIHUwYJKoZIhvcNAQcCoIIHRDCCB0ACAQMxDzANBglghkgBZQMEAgEFADByBgsqhkiG9w0BCRABBKBjBGEwXwIBAQYDKgMEMDEwDQYJYIZIAWUDBAIBBQAEII6DKzkXu54zgWw1NZm4M8gvD2aigSwVUv+3nOtrUKefAhEApXtQSpHsztfsRSeQJXJunBgPMjAxNTA2MDExMjAwMDBaoIIEUjCCBE4wggM2oAMCAQICAQIwDQYJKoZIhvcNAQELBQAwWDEVMBMGA1UEAwwMdGltZXN0YW1waW5nMRowGAYDVQQKDBFUTC04IE9yZ2FuaXphdGlvbjEWMBQGA1UECwwNQ0VSVCBGT1IgVEVTVDELMAkGA1UEBhMCVUswHhcNMDEwMzIxMDAwMDQ5WhcNNDEwMzIxMDAwMDQ5WjBYMRUwEwYDVQQDDAx0aW1lc3RhbXBpbmcxGjAYBgNVBAoMEVRMLTggT3JnYW5pemF0aW9uMRYwFAYDVQQLDA1DRVJUIEZPUiBURVNUMQswCQYDVQQGEwJVSzCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAK7hMYRDxP/7sy1hZbJKwhrkGJ00gu3aCGZSIfwvOOQK6O8Y1eGS2OTbb/ncI733223HnLJPlskizEqLh806wixXwxSkFquDqqbb3OR7C6F6IwlgeuciIco6PUEKg0H1qJ/uVwXMY1cqN/s5KVig5Zt5fKY5qYLDoPOMd2/InXV1fpvon5R5jGxFyvMQSJezpUqewt5dzgdW27j1zt57RXSBcWiIoEOor9x3WKU6oZTSXHzgAAV4+o0VEATopCJZTyWOMlOdTE1ymC2cqHABxixUhuMwspk9xqZua53EozT4vQCKhlkHS4oeBozdYxMwE6PSf+VHb51Mlrof6q55+m8CAwEAAaOCASEwggEdMA4GA1UdDwEB/wQEAwIHgDAWBgNVH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Zl2dkpQTIAwNwYLKoZIhvcNAQkQAi8xKDAmMCQwIgQg9RNIYV1C37SU61fg0gkHa7rh5AbFx6c8n/4OxmcYXOQwDQYJKoZIhvcNAQELBQAEggEAnrVR+MaqgA0AC7pAL4nzMpKMJOx8FZDCnZVWylO0khQGgnFx0gX4uCo8zgKXQDqigN3XmLVUeD3fRs2Z8R3W3mJIknNASzjguXlOqDtKWbOJLiF1Vwp6f1ykPad+Bs2UjnVirOIyXkaion9KlkZ+DYmN9ntBAlwsSqS5cAEc5YqQ5il+Ixlqhj8Q5Efx+nSLZzKv1v3wlRsABosnExLgcS6N4gbHdmRNXpfyK9gWz1WEM+INEBjD8gOORyD+84GarpuRllXSA/g0m4qZxlruAKOE8FOcWK5nmLiOE5kDX6f3hZO8WhWxoKTWe72v+gIifZ3AwoJy/7miFgMVdBn9Kw==</xades:EncapsulatedTimeStamp></xades:SignatureTimeStamp></xades:UnsignedSignatureProperties></xades:UnsignedProperties></xades:QualifyingProperties></ds:Object></ds:Signature></FILE> \ No newline at end of file
diff --git a/moaSig/moa-sig/src/test/resources/testdata/xades/5.1.1-TEST FILE.xml b/moaSig/moa-sig/src/test/resources/testdata/xades/5.1.1-TEST FILE.xml
new file mode 100644
index 0000000..6361621
--- /dev/null
+++ b/moaSig/moa-sig/src/test/resources/testdata/xades/5.1.1-TEST FILE.xml
@@ -0,0 +1,3 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?><FILE>
+ <TEST>SAMPLE</TEST>
+<ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#" Id="id-af221a3380c43b1376d05be83114e779"><ds:SignedInfo><ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/><ds:SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"/><ds:Reference Id="r-id-af221a3380c43b1376d05be83114e779-1" URI=""><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2002/06/xmldsig-filter2"><dsig-filter2:XPath xmlns:dsig-filter2="http://www.w3.org/2002/06/xmldsig-filter2" Filter="subtract">/descendant::ds:Signature</dsig-filter2:XPath></ds:Transform><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>kfsK43NJaZNZwDUkwbME+Sn+ziU/Rl4K0N2bvfbuwvk=</ds:DigestValue></ds:Reference><ds:Reference Type="http://uri.etsi.org/01903#SignedProperties" URI="#xades-id-af221a3380c43b1376d05be83114e779"><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>exPzrbsxy85rvbeL2AnUe5BEQCqQNJ93Ice6a8kLhBU=</ds:DigestValue></ds:Reference></ds:SignedInfo><ds:SignatureValue Id="value-id-af221a3380c43b1376d05be83114e779">dDunwybchzspzSSW1gPSsv1X+yW71vUFlyynGQqVIuHFy21RTRR+m4ORKB3Bq057hhxKimMtOXAuUu95AeIhApxKGFs/XUC5ewNvhWtHXx1ortSZeM1VIRD4T1I1OoaV+vtDVaa+ioGYexDyNr3MggUrxT0muKXGl5XL6quAKnmPIjSCLlEYXE2riox6Umdz1yc63juPunlVlFyYRAYT7HObuqamudxx93pttJg7g4SxkICghCRD8EEICX1OdlxzG6qMxOW49q4j95StkzJHXAKzmmsXFs9qYg7HcdlI/+3Nq0LrZDjrQaUj8z2Kt1Ubt7BlGIEYt9VPUNu6KyXFWg==</ds:SignatureValue><ds:KeyInfo><ds:X509Data><ds:X509Certificate>MIIEVTCCAz2gAwIBAgIBAzANBgkqhkiG9w0BAQsFADBQMRIwEAYDVQQDDAlTREktNS4xLjExFTATBgNVBAoMDFRTUC01LjEgTmFtZTEWMBQGA1UECwwNQ0VSVCBGT1IgVEVTVDELMAkGA1UEBhMCSVQwHhcNMjAwMzIxMDAwMDIzWhcNMjI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OCAQEAHJ1aYWSsCQS6T0RaGBAWj+OwFd2aMh+hi04iEAOaWTAQgmR+ZKqYr9M+6/0zQVp4cVYdrOc9znTM/qNODb1WucKwdNYjdSKAf9kiGj0LGRrOyFHQ/+pdf/mUlHgLpmEg/O8MUqvT8QOOkUQleobBWa3/bTllwwr+se2nTwO6wl4EdNwvfsJP7wwuPYpH4NBjegHbZdp/VQ0pXIWNnLPCkCdli2lE/kDvUvdfcCc3vYK2mahy/Iw6SQmwebHiI4bWMv0NmqjmB5rntS41JNgQ37tuiM66DyKialmmfdfoM+oawGIAK3xTQItb8pAX5VFZ/xJaWoKJSKD+ofaodU9Wgg==</ds:X509Certificate></ds:X509Data></ds:KeyInfo><ds:Object><xades:QualifyingProperties xmlns:xades="http://uri.etsi.org/01903/v1.3.2#" Target="#id-af221a3380c43b1376d05be83114e779"><xades:SignedProperties Id="xades-id-af221a3380c43b1376d05be83114e779"><xades:SignedSignatureProperties><xades:SigningTime>2021-03-21T00:01:10Z</xades:SigningTime><xades:SigningCertificateV2><xades:Cert><xades:CertDigest><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha512"/><ds:DigestValue>ucKSt3D9LTcJXeTuH1ZXFeR033Btbj79V06FEIHMVIyWOaNKx9/7G4Gh2//q+Ndoz4AVCOV7uzdt5eCDfFZcyw==</ds:DigestValue></xades:CertDigest><xades:IssuerSerialV2>MFkwVKRSMFAxEjAQBgNVBAMMCVNESS01LjEuMTEVMBMGA1UECgwMVFNQLTUuMSBOYW1lMRYwFAYDVQQLDA1DRVJUIEZPUiBURVNUMQswCQYDVQQGEwJJVAIBAw==</xades:IssuerSerialV2></xades:Cert></xades:SigningCertificateV2></xades:SignedSignatureProperties><xades:SignedDataObjectProperties><xades:DataObjectFormat ObjectReference="#r-id-af221a3380c43b1376d05be83114e779-1"><xades:MimeType>application/octet-stream</xades:MimeType></xades:DataObjectFormat></xades:SignedDataObjectProperties></xades:SignedProperties></xades:QualifyingProperties></ds:Object></ds:Signature></FILE> \ No newline at end of file
diff --git a/moaSig/moa-sig/src/test/resources/testdata/xades/5.1.2-TEST FILE.xml b/moaSig/moa-sig/src/test/resources/testdata/xades/5.1.2-TEST FILE.xml
new file mode 100644
index 0000000..88ec0f6
--- /dev/null
+++ b/moaSig/moa-sig/src/test/resources/testdata/xades/5.1.2-TEST FILE.xml
@@ -0,0 +1,3 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?><FILE>
+ <TEST>SAMPLE</TEST>
+<ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#" Id="id-937ce346af2102dc3d79d1fb2c229302"><ds:SignedInfo><ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/><ds:SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"/><ds:Reference Id="r-id-937ce346af2102dc3d79d1fb2c229302-1" URI=""><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2002/06/xmldsig-filter2"><dsig-filter2:XPath xmlns:dsig-filter2="http://www.w3.org/2002/06/xmldsig-filter2" Filter="subtract">/descendant::ds:Signature</dsig-filter2:XPath></ds:Transform><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>kfsK43NJaZNZwDUkwbME+Sn+ziU/Rl4K0N2bvfbuwvk=</ds:DigestValue></ds:Reference><ds:Reference Type="http://uri.etsi.org/01903#SignedProperties" URI="#xades-id-937ce346af2102dc3d79d1fb2c229302"><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>PthRfITx7SEsrqFtPmXmNA3c5M2PTfCHXTWFOlj0KRk=</ds:DigestValue></ds:Reference></ds:SignedInfo><ds:SignatureValue Id="value-id-937ce346af2102dc3d79d1fb2c229302">HhN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wNQ0VSVCBGT1IgVEVTVDELMAkGA1UEBhMCSVQwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDVRR/sbfyhrXk7I/wrFJpy84fo0X4VQBfNP42MAl43TNO5ZwF5xRc/9HPIdaPZLjklP6GgZgMrheCj7t4qTD7T7/TEFg/uvLWyvGaJ++fFEj/U3L/2u70811yq+n6PLoKOZ58xOjRq5f51wSao5Ro59rs65jAA2dTg2d8S+fw14R7DW+KopyP4qN67lHaBEUG1v55yoCln1daLjBiEL/mqO9MfHl0dhCcn8eNOY2EoTpZd9/K+IUcXVRmoGWXIlv1eqa9lghyesy/c5bVWeZtCplGdU6kr6WhqsXwxJRIfFOWU4x7I1y5mf6z9yi1aAbeTxXLZY11BkQQslXz2DhmnAgMBAAGjQjBAMA4GA1UdDwEB/wQEAwIBBjAdBgNVHQ4EFgQUAs8mfk1fLvekekV0u6/0mK1w4tEwDwYDVR0TAQH/BAUwAwEB/zANBgkqhkiG9w0BAQsFAAOCAQEAKNsS0mwGcEya+Jc6KJYPeC2ewdTFWRvMNXu5jptbw1dawU4q5XL/94wAS2wJqMak1qfGi8Za+onlVmeE7jX9QCID6yGVmO7tb2dq1lqYCNM0w8bA19w90AG54TOUeyzoO3VVAO2tz23kzFKSJTvDbHmR7CPoG0JUuw+4nrudg/UT+lrrkavtVqtU7r2YrM3BqfEQUfaamo6dwQNAvD7f5wrhM7eEbgMunly7eZS2cklyr0IhjfYk15Sf/JdF4LH8SC5NpVt0/Ejxw2IXh9kp/jvbWLUrRYOsONLyEwO3x6foY6x/yStlp7gQ1dIsZw6apeL77X/iPB5U5sC5468mow==</ds:X509Certificate></ds:X509Data></ds:KeyInfo><ds:Object><xades:QualifyingProperties xmlns:xades="http://uri.etsi.org/01903/v1.3.2#" Target="#id-937ce346af2102dc3d79d1fb2c229302"><xades:SignedProperties Id="xades-id-937ce346af2102dc3d79d1fb2c229302"><xades:SignedSignatureProperties><xades:SigningTime>2021-03-21T00:01:10Z</xades:SigningTime><xades:SigningCertificateV2><xades:Cert><xades:CertDigest><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha512"/><ds:DigestValue>Wq2e3XK+jC0Wk8DjU1bpGo//bPjiSyPZ2DrjaE24521kdte8cMV7fAbefPvdHjNW7IAXYUz19WnfPBziOrOcfw==</ds:DigestValue></xades:CertDigest><xades:IssuerSerialV2>MFkwVKRSMFAxEjAQBgNVBAMMCVNESS01LjEuMjEVMBMGA1UECgwMVFNQLTUuMSBOYW1lMRYwFAYDVQQLDA1DRVJUIEZPUiBURVNUMQswCQYDVQQGEwJJVAIBBQ==</xades:IssuerSerialV2></xades:Cert></xades:SigningCertificateV2></xades:SignedSignatureProperties><xades:SignedDataObjectProperties><xades:DataObjectFormat ObjectReference="#r-id-937ce346af2102dc3d79d1fb2c229302-1"><xades:MimeType>application/octet-stream</xades:MimeType></xades:DataObjectFormat></xades:SignedDataObjectProperties></xades:SignedProperties></xades:QualifyingProperties></ds:Object></ds:Signature></FILE> \ No newline at end of file
diff --git a/moaSig/moa-sig/src/test/resources/testdata/xades/5.1.3-TEST FILE.xml b/moaSig/moa-sig/src/test/resources/testdata/xades/5.1.3-TEST FILE.xml
new file mode 100644
index 0000000..d7a383e
--- /dev/null
+++ b/moaSig/moa-sig/src/test/resources/testdata/xades/5.1.3-TEST FILE.xml
@@ -0,0 +1,3 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?><FILE>
+ <TEST>SAMPLE</TEST>
+<ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#" Id="id-7e20d3a8eef88818d6cdddc6140fd7c9"><ds:SignedInfo><ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/><ds:SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"/><ds:Reference Id="r-id-7e20d3a8eef88818d6cdddc6140fd7c9-1" URI=""><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2002/06/xmldsig-filter2"><dsig-filter2:XPath xmlns:dsig-filter2="http://www.w3.org/2002/06/xmldsig-filter2" Filter="subtract">/descendant::ds:Signature</dsig-filter2:XPath></ds:Transform><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>kfsK43NJaZNZwDUkwbME+Sn+ziU/Rl4K0N2bvfbuwvk=</ds:DigestValue></ds:Reference><ds:Reference Type="http://uri.etsi.org/01903#SignedProperties" URI="#xades-id-7e20d3a8eef88818d6cdddc6140fd7c9"><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>T5npaktlEMMhmjZ/XHOKtqPP+39Cdxlv6cDqC6/56fY=</ds:DigestValue></ds:Reference></ds:SignedInfo><ds:SignatureValue Id="value-id-7e20d3a8eef88818d6cdddc6140fd7c9">nomZwvLvtDp7Bh8cK8XvYfHtpuvYhVijIl4fP3QWeFHPTTJsXRQyLHygwhfd/YItAAlw04rrMPDqq9C0R+8yNTu12VIHCVkKimIpOrVEIzM0uO3qLbvCBKIUP7npnNP8V0pge0VyFfKodGxmX8Aw5a/UZNtWj6mnMgD7x8T9OpnkiykeeaJgzMWGBskPByJCc4stES1eTomKa9fq0eCHwoByA0KgLuU1tA8ptJ/NCmOAxQpYig2e5ViETpkZoRk479rHOr18EMQlDOay5o58eGZOt8WHAeVCltsahV0URH+T/Ato3wdpeeFORt3XcsrrRasIoa7rE7HFp42KCl10yg==</ds:SignatureValue><ds:KeyInfo><ds:X509Data><ds:X509Certificate>MIIEVTCCAz2gAwIBAgIBBzANBgkqhkiG9w0BAQsFADBQMRIwEAYDVQQDDAlTREktNS4xLjMxFTATBgNVBAoMDFRTUC01LjEgTmFtZTEWMBQGA1UECwwNQ0VSVCBGT1IgVEVTVDELMAkGA1UEBhMCSVQw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wAwEB/zANBgkqhkiG9w0BAQsFAAOCAQEAA8JvOghQZvYKlJSSDVn2+h5hQRz8ny71dUnWAuMjqrdmR0xQTLDzSR+htE1M2HlD2DgBjuYmj98quL8AT1/6k3paE0NJiOsKbMh/COSykIYzWMO3PYNnWW+iwGObZ9CVbyVuRiBQWOAoqLgg2AntJVXVt+2oefgEUiYOlm3tvWaZlClQkBILwK3nN4hcCbHKzJYVgNB0OwI6zDLlhRhv9as8cI9NJABgEil6/O09n1BE5Xy/YOUNm8w9PfreINQewmyaha/n+HqcdOX9Gj3BvsbHnLtuFnt4rGmx6MV/HddN2Zg4xREh1ezcLh7qYQPd4urX5rvL3nahgfxvwMNbDQ==</ds:X509Certificate></ds:X509Data></ds:KeyInfo><ds:Object><xades:QualifyingProperties xmlns:xades="http://uri.etsi.org/01903/v1.3.2#" Target="#id-7e20d3a8eef88818d6cdddc6140fd7c9"><xades:SignedProperties Id="xades-id-7e20d3a8eef88818d6cdddc6140fd7c9"><xades:SignedSignatureProperties><xades:SigningTime>2021-03-21T00:01:10Z</xades:SigningTime><xades:SigningCertificateV2><xades:Cert><xades:CertDigest><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha512"/><ds:DigestValue>R6ikWCi1i+XN+2Vwn+Zm0zhj8ueySdUsaERqHdex+ipyRi5/HFZdppZGwEq9PCZE5xr5KsU4/mR/TsXLW9Jstg==</ds:DigestValue></xades:CertDigest><xades:IssuerSerialV2>MFkwVKRSMFAxEjAQBgNVBAMMCVNESS01LjEuMzEVMBMGA1UECgwMVFNQLTUuMSBOYW1lMRYwFAYDVQQLDA1DRVJUIEZPUiBURVNUMQswCQYDVQQGEwJJVAIBBw==</xades:IssuerSerialV2></xades:Cert></xades:SigningCertificateV2></xades:SignedSignatureProperties><xades:SignedDataObjectProperties><xades:DataObjectFormat ObjectReference="#r-id-7e20d3a8eef88818d6cdddc6140fd7c9-1"><xades:MimeType>application/octet-stream</xades:MimeType></xades:DataObjectFormat></xades:SignedDataObjectProperties></xades:SignedProperties></xades:QualifyingProperties></ds:Object></ds:Signature></FILE> \ No newline at end of file
diff --git a/moaSig/moa-sig/src/test/resources/testdata/xades/5.1.4-TEST FILE.xml b/moaSig/moa-sig/src/test/resources/testdata/xades/5.1.4-TEST FILE.xml
new file mode 100644
index 0000000..a604aa7
--- /dev/null
+++ b/moaSig/moa-sig/src/test/resources/testdata/xades/5.1.4-TEST FILE.xml
@@ -0,0 +1,3 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?><FILE>
+ <TEST>SAMPLE</TEST>
+<ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#" Id="id-883761666606aafabf95bef0bb4b1a99"><ds:SignedInfo><ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/><ds:SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"/><ds:Reference Id="r-id-883761666606aafabf95bef0bb4b1a99-1" URI=""><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2002/06/xmldsig-filter2"><dsig-filter2:XPath xmlns:dsig-filter2="http://www.w3.org/2002/06/xmldsig-filter2" Filter="subtract">/descendant::ds:Signature</dsig-filter2:XPath></ds:Transform><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>kfsK43NJaZNZwDUkwbME+Sn+ziU/Rl4K0N2bvfbuwvk=</ds:DigestValue></ds:Reference><ds:Reference Type="http://uri.etsi.org/01903#SignedProperties" URI="#xades-id-883761666606aafabf95bef0bb4b1a99"><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>b9VWTNzqJ6HCmJBPoq1jhnWdW1RXxA1fejPD+H3y3Y8=</ds:DigestValue></ds:Reference></ds:SignedInfo><ds:SignatureValue Id="value-id-883761666606aafabf95bef0bb4b1a99">eYpBT26TxAyBhnqqjyHq+PUROflbNOA9jjQYyxYmFchq9PpncbBOCHf9TIG9wdmQwnC/JsvgCrIbXQDfBEfgz2evfFIZUM1D8D5BqrNX3jWFQjdbHg/OfyQXYpqBIAswdlzN4heWnUHShdfkpt0tyb6lnkWEryUvkN6fdbeOkO7BASTHM3ru7wDtCjfcgs/VMODJuEoALbARuX19KK12dHvUcqmRLosnUnzUrPcXuZq6/Kcu4qzvtu4CCvnf3cOUQUwRy0l/WV72l4lu7G+gvfMflRPV0WyeoYvVj894NSJ9HXQwg5yg/77hMoh6ZmBETFDu3+/wxhLve9tipe1DOg==</ds:SignatureValue><ds:KeyInfo><ds:X509Data><ds:X509Certificate>MIIEQDCCAyigAwIBAgIBCTANBgkqhkiG9w0BAQsFADBQMRIwEAYDVQQDDAlTREktNS4xLjQxFTATBgNVBAoMDFRTUC01LjEgTmFtZTEWMBQGA1UECwwNQ0VSVCBGT1IgVEVTVDELMAkGA1UEBhMCSVQwHhcNMjAwMzIxMDAwMDI1WhcNMjIwMzIxMDAwMDI1WjBaMRgwFgYDVQQDDA9DRVJULVRFU1QtNS4xLjQxGTAXBgNVBAoMEFRMNSBPcmdhbml6YXRpb24xFjAUBgNVBAsMDUNFUlQgRk9SIFRFU1QxCzAJBgNVBAYTAklUMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAs6fLt9mq9dcgaQhs5XLN34YQrEIKy3Zpl1Y9mRTIqbUhECtYuUExao2hY+l68fg9B4wb39UHl9lDHwwuJqIhuY9fQ91gSURKE3hgn8AOj0mqejfZZRoeNp6GeD8T4qRDRiU5txshRWZfRtKjqaJXA1o9RR/NajHbM4Np9CPmIqvdR9QCbDdi6GiqBbPnLH22CdDfb9HVgWrEuDNAw/KididonsZDYJvWr9ZNiREEp+a7o9K4IzHQNtajfj1ldhyyS/Njm7d7d6OtwUT3rGEwRj8xQ72A6uUD7d9ADqmQ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mFtZTEWMBQGA1UECwwNQ0VSVCBGT1IgVEVTVDELMAkGA1UEBhMCSVQwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCgFLoMV6zkULdch8zFLMqmLFO9bh9DJMVJjoXHbgQfOB6RSvf7LXsW9Yj+HSuMVcF1HAyQjqlB3+H3uGLUzKIN31LNX1BmBMzMUCSvpRj/4kMYzhy94J0NjutfistzTZ4p94hYgEIiV4Aw+SBHQHJdZH+pA+JM/raVYkabmsjWhtk7apZeTsCF1qW0oo+OR8CXbLbveow7Tlce6rj2ZrjlMWjtOjeVsyGrDZKCoInX9Lx7iO/pIDtbN5glgnnzadQYQKZq/Qi2FO9xRzgPrkGSX3U6dONabNdeAtT+iI6aBv1vqO2fxT6VadxsPfInN6eNBpjMGE8VMFUUlckapzP1AgMBAAGjQjBAMA4GA1UdDwEB/wQEAwIBBjAdBgNVHQ4EFgQUk3lHURbY0Rvsep8+4igB2bcaFx0wDwYDVR0TAQH/BAUwAwEB/zANBgkqhkiG9w0BAQsFAAOCAQEAg6Qud3PWK62j3mrQ8ywzxOAlU/u1NTmlpsFf900gCXdernvTkWn3honYAkT2jEsRiu7X/G9VeJt0mrFQUDbI5lptYhiTIcVKkas7EmpGYldXjGHwLQgGL+1wEyQCVayDOeqRN3QgHz+8QE0FE+VQMgiiPHx3A2QyWu+zHGP4LKjHqBN04wLb3bEVxuAa25mw5ldUD0mh6ZHh9cFSvKtFcdI6w1g+/+/p2GDubcfgEDG67Kf5GiQWStN7L+YhiaZOg6fChcV0xYm61WzDsdQ6Gi54OUbh0lMeXK2P7Hf0+QYG1396S02ZPf+7Ucjzk8BSY8reLK5pNuSDRBs+JE8Lyg==</ds:X509Certificate></ds:X509Data></ds:KeyInfo><ds:Object><xades:QualifyingProperties xmlns:xades="http://uri.etsi.org/01903/v1.3.2#" Target="#id-883761666606aafabf95bef0bb4b1a99"><xades:SignedProperties Id="xades-id-883761666606aafabf95bef0bb4b1a99"><xades:SignedSignatureProperties><xades:SigningTime>2021-03-21T00:01:10Z</xades:SigningTime><xades:SigningCertificateV2><xades:Cert><xades:CertDigest><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha512"/><ds:DigestValue>jrq4QiBHOFURX5vUE5idc6vJwcT+/bXJwmksO23ve87eW44ckIxDNbQArcoAOdB2TLjIXAZ8f1HJP4/7QxrQGg==</ds:DigestValue></xades:CertDigest><xades:IssuerSerialV2>MFkwVKRSMFAxEjAQBgNVBAMMCVNESS01LjEuNDEVMBMGA1UECgwMVFNQLTUuMSBOYW1lMRYwFAYDVQQLDA1DRVJUIEZPUiBURVNUMQswCQYDVQQGEwJJVAIBCQ==</xades:IssuerSerialV2></xades:Cert></xades:SigningCertificateV2></xades:SignedSignatureProperties><xades:SignedDataObjectProperties><xades:DataObjectFormat ObjectReference="#r-id-883761666606aafabf95bef0bb4b1a99-1"><xades:MimeType>application/octet-stream</xades:MimeType></xades:DataObjectFormat></xades:SignedDataObjectProperties></xades:SignedProperties></xades:QualifyingProperties></ds:Object></ds:Signature></FILE> \ No newline at end of file
diff --git a/moaSig/moa-sig/src/test/resources/testdata/xades/5.1.5-TEST FILE.xml b/moaSig/moa-sig/src/test/resources/testdata/xades/5.1.5-TEST FILE.xml
new file mode 100644
index 0000000..a8eb809
--- /dev/null
+++ b/moaSig/moa-sig/src/test/resources/testdata/xades/5.1.5-TEST FILE.xml
@@ -0,0 +1,3 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?><FILE>
+ <TEST>SAMPLE</TEST>
+<ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#" Id="id-d63a25b5788d4b97dece0a2cf244d12d"><ds:SignedInfo><ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/><ds:SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"/><ds:Reference Id="r-id-d63a25b5788d4b97dece0a2cf244d12d-1" URI=""><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2002/06/xmldsig-filter2"><dsig-filter2:XPath xmlns:dsig-filter2="http://www.w3.org/2002/06/xmldsig-filter2" Filter="subtract">/descendant::ds:Signature</dsig-filter2:XPath></ds:Transform><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>kfsK43NJaZNZwDUkwbME+Sn+ziU/Rl4K0N2bvfbuwvk=</ds:DigestValue></ds:Reference><ds:Reference Type="http://uri.etsi.org/01903#SignedProperties" URI="#xades-id-d63a25b5788d4b97dece0a2cf244d12d"><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>AWEaiNPZzwXqoJ/HrZZx9f0UM0Ywiv2zeHSCacxPGIA=</ds:DigestValue></ds:Reference></ds:SignedInfo><ds:SignatureValue Id="value-id-d63a25b5788d4b97dece0a2cf244d12d">BL7770piRAiuApmpsGiT4FZy2zDXPMvd+MGwADFdWGrB9YIQvC1K9YHqcbDB2LoWyYRZkg29F8F8l4ja8XOFxHVtL8GK/W7MDAoWKBDTxo6VZm2QIQenhPCHsCQrbIwQ67HyGd2SbH6g4VfwL6Cj8+epyR8g9wvNyUhN/wMQVwjtFIACj5zzeVi/b4F2xpJ0DUf6IvQwQ2uAFf4C2Bt/lBTNz7MGqCnABCzgq3WGD9gGn3PTJw6CnpT8zUppGCUzy3x3ltLkttvC7i2hw0EjDtVGh1+4Yioajt0QkkLgTsWrtekMMGAfl32+joVIi8MefMrmvrdhuEf7SaYoAZrkFA==</ds:SignatureValue><ds:KeyInfo><ds:X509Data><ds:X509Certificate>MIIEVDCCAzygAwIBAgIBCzANBgkqhkiG9w0BAQsFADBQMRIwEAYDVQQDDAlTREktNS4xLjUxFTATBgNVBAoMDFRTUC01LjEgTmFtZTEWMBQGA1UECwwNQ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oiz7YMZW4kwDwYDVR0TAQH/BAUwAwEB/zANBgkqhkiG9w0BAQsFAAOCAQEASaMpqBrNhoMHqVbSHmoipDipu6iY6cpaYJl9YrBioY65YP1YpfLg1uoQRWWdK7sZMAe2uB0l219NWHCn+q80O4hg7RT5Qubq8ZDhOqnwrzENBeKWlpobx96yYAlzH/Qd3Qj2fvKwMQ+Wn8Hvvy7Zv6KZv4lkZSqeezkcHiwYxmPlpHaxDOx1S/KNBEjGiCVtffk8a5Hx3MUq+YAR/3rHpQd92UWSF6TBoUBYuohhj8HQxWasJglpNnCyct4lEdcsfyHCotdHx6+qCnpeLgtYbEwZOstFzmlSB8iEDLX2xZ2fDfqeDNb9VLXLesDMx1BW9UzmvA+OwjjRsMPONPmiZA==</ds:X509Certificate></ds:X509Data></ds:KeyInfo><ds:Object><xades:QualifyingProperties xmlns:xades="http://uri.etsi.org/01903/v1.3.2#" Target="#id-d63a25b5788d4b97dece0a2cf244d12d"><xades:SignedProperties Id="xades-id-d63a25b5788d4b97dece0a2cf244d12d"><xades:SignedSignatureProperties><xades:SigningTime>2021-03-21T00:01:11Z</xades:SigningTime><xades:SigningCertificateV2><xades:Cert><xades:CertDigest><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha512"/><ds:DigestValue>+jvwoBdILk9NntTBZlG82cvErrjwGYmcTdB+rlVcsRUeKJtldqw/XkitJRGSZz3Zsm/Wm2cYS+DMra/KAOfkag==</ds:DigestValue></xades:CertDigest><xades:IssuerSerialV2>MFkwVKRSMFAxEjAQBgNVBAMMCVNESS01LjEuNTEVMBMGA1UECgwMVFNQLTUuMSBOYW1lMRYwFAYDVQQLDA1DRVJUIEZPUiBURVNUMQswCQYDVQQGEwJJVAIBCw==</xades:IssuerSerialV2></xades:Cert></xades:SigningCertificateV2></xades:SignedSignatureProperties><xades:SignedDataObjectProperties><xades:DataObjectFormat ObjectReference="#r-id-d63a25b5788d4b97dece0a2cf244d12d-1"><xades:MimeType>application/octet-stream</xades:MimeType></xades:DataObjectFormat></xades:SignedDataObjectProperties></xades:SignedProperties></xades:QualifyingProperties></ds:Object></ds:Signature></FILE> \ No newline at end of file
diff --git a/moaSig/moa-sig/src/test/resources/testdata/xades/5.1.6-TEST FILE.xml b/moaSig/moa-sig/src/test/resources/testdata/xades/5.1.6-TEST FILE.xml
new file mode 100644
index 0000000..922e8bb
--- /dev/null
+++ b/moaSig/moa-sig/src/test/resources/testdata/xades/5.1.6-TEST FILE.xml
@@ -0,0 +1,3 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?><FILE>
+ <TEST>SAMPLE</TEST>
+<ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#" Id="id-0d6524f08d3a8261eb1b6e122f0dc060"><ds:SignedInfo><ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/><ds:SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"/><ds:Reference Id="r-id-0d6524f08d3a8261eb1b6e122f0dc060-1" URI=""><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2002/06/xmldsig-filter2"><dsig-filter2:XPath xmlns:dsig-filter2="http://www.w3.org/2002/06/xmldsig-filter2" Filter="subtract">/descendant::ds:Signature</dsig-filter2:XPath></ds:Transform><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>kfsK43NJaZNZwDUkwbME+Sn+ziU/Rl4K0N2bvfbuwvk=</ds:DigestValue></ds:Reference><ds:Reference Type="http://uri.etsi.org/01903#SignedProperties" URI="#xades-id-0d6524f08d3a8261eb1b6e122f0dc060"><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>95ux15vKG/6+q/BRzXq4bjTCdXsjeI9FOC8bIZFAztk=</ds:DigestValue></ds:Reference></ds:SignedInfo><ds:SignatureValue Id="value-id-0d6524f08d3a8261eb1b6e122f0dc060">lxCdMZYIeuDKjLTLRDMgeOr+QZxVWJ9lMIeSAi+nxCKk3DT05D27fQ+9AuOC5XDEXhQX6qw9PE3LPkwhjYyTDwDTK0Av0wKpMDYAdKdb/I2kn1Y9x2SKOa6Qfzja4co5uSbAI8/Sow265VIj54ILfzglp3Ao9fCEGyA19cDofzf5uUoskYQfRrETuRwlVNVYf2B+Gg+prJGTzCYmqMKv1YYxt6KAP6Xa92YUy1JFFQQ5VJU0s7jh01LBFuyWd9NC6Wl23ZIyzN/CkCLGPGE/Rd3kMHDmIcCKACPkLNQUBx4AyIkAYIdXX2KuxkwPLUB9zeLD0ZMCGXmXhLw02s9gxw==</ds:SignatureValue><ds:KeyInfo><ds:X509Data><ds:X509Certificate>MIIESjCCAzKgAwIBAgIBDTANBgkqhkiG9w0BAQsFADBQMRIwEAYDVQQDDAlTREktNS4xLjYxFTATBgNVBAoMDFRTUC01LjEgTmFtZTEWMBQGA1UECwwNQ0VSVCBGT1IgVEVTVDELMAkGA1UEBhMCSVQwHhcNMjAwMzIxMDAwMDI2WhcNMjIwMzIxMDAwMDI2WjBaMRgwFgYDVQQDDA9DRVJULVRFU1QtNS4xLjYxGTAXBgNVBAoMEFRMNSBPcmdhbml6YXRpb24xFjAUBgNVBAsMDUNFUlQgRk9SIFRFU1QxCzAJBgNVBAYTAklUMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEApqNHyvEpO+gCfIHqdP5f/ijaMXfB1TetT+GK14RGKmp+Cg+SmAMxds6m+1V/BRkj1RoSo0dXeSighvUzdHAeEI62qCH6IPDd7NnaqNymCLdIBYVgpUdu7JXS5RDPLBQAXmi8prXODIHUG++05anTZhLje033NljgMczw5/IRZ7T/unnaGi/8QumjCs0w3lPJQLSkIuf2emxmUvrG+qgFPB5HxIVTUqGYQjNgO1i6f8K4olJTMHryipoFuW09gu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EAYDVQQDDAlTREktNS4xLjYxFTATBgNVBAoMDFRTUC01LjEgTmFtZTEWMBQGA1UECwwNQ0VSVCBGT1IgVEVTVDELMAkGA1UEBhMCSVQwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQC0L+cLjyE8aLSjO5A0PRUuglJkg5mV5G6svdMQOvGbZR8VI2gaccU41yYjT/3YfcKmbxgXoveIUhkrQ7yroMCvVVwY2c+kk5ItYZbkDsEv0Faq1M+zBpr/xEW0+flDlPT3nzJVSiM52PmJXkWYQpmBZaMOyQ6UyhNFizJS07gKsw+QN1uC664/rjbyeWkrFLUK1yJZOCadBIy1NtKXL8qheH55GOQGPMLVLtvdX4zS0v2TnMEQIRBN/iWg/bTPNCjr52fcCazsOo9Ryn+SxZerAAEElWqEjfAV1aMD9WVFr+RFfwf17N88A074RtaZzLV1jhNLN57DbV1Qx7Xe48ytAgMBAAGjQjBAMA4GA1UdDwEB/wQEAwIBBjAdBgNVHQ4EFgQUsc1i98umOljS5u+e7Du/VEJl5y8wDwYDVR0TAQH/BAUwAwEB/zANBgkqhkiG9w0BAQsFAAOCAQEACmN19T2y9+LmKQxxDrI0M3abE7qjZlYOB4kPk3iqN8dI8f9JbOzwxIkdjrph0dORvehKGId0FgPpS3rqLXz6lz/zfC6k444+CTZNFnmkJ9YmdNWkn6Iw1PSsNd5N+6cmCRgAfn1+mklzEs+FSSfxygDFWLC5RdqL29h/AuUbQS+LV19QIKJjEXOWrEeYTE69aYVzjXM7QHmvvM59/ubyxw/r2gGBlAsPvQBiekXVABLKV7A60XGWuOQdAx1xtJxVwrhGHb9GczeQD5Va0NoBmNMF7S1l8JN6fuVMIi5SMMSS8oNu8wTkiUeXT16vLhztWgsJFf/xHSPlcy92wGZvuA==</ds:X509Certificate></ds:X509Data></ds:KeyInfo><ds:Object><xades:QualifyingProperties xmlns:xades="http://uri.etsi.org/01903/v1.3.2#" Target="#id-0d6524f08d3a8261eb1b6e122f0dc060"><xades:SignedProperties Id="xades-id-0d6524f08d3a8261eb1b6e122f0dc060"><xades:SignedSignatureProperties><xades:SigningTime>2021-03-21T00:01:11Z</xades:SigningTime><xades:SigningCertificateV2><xades:Cert><xades:CertDigest><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha512"/><ds:DigestValue>EiNHrAMXk1tnjjEdqGckZVNXL9Eg3tCY6mP13SsfsfSUIprJi0rBzqrp65NdX1mlGRylyCw7nSFpRE3QOEtY7Q==</ds:DigestValue></xades:CertDigest><xades:IssuerSerialV2>MFkwVKRSMFAxEjAQBgNVBAMMCVNESS01LjEuNjEVMBMGA1UECgwMVFNQLTUuMSBOYW1lMRYwFAYDVQQLDA1DRVJUIEZPUiBURVNUMQswCQYDVQQGEwJJVAIBDQ==</xades:IssuerSerialV2></xades:Cert></xades:SigningCertificateV2></xades:SignedSignatureProperties><xades:SignedDataObjectProperties><xades:DataObjectFormat ObjectReference="#r-id-0d6524f08d3a8261eb1b6e122f0dc060-1"><xades:MimeType>application/octet-stream</xades:MimeType></xades:DataObjectFormat></xades:SignedDataObjectProperties></xades:SignedProperties></xades:QualifyingProperties></ds:Object></ds:Signature></FILE> \ No newline at end of file
diff --git a/moaSig/moa-sig/src/test/resources/testdata/xades/5.2.1-TEST FILE.xml b/moaSig/moa-sig/src/test/resources/testdata/xades/5.2.1-TEST FILE.xml
new file mode 100644
index 0000000..fb13616
--- /dev/null
+++ b/moaSig/moa-sig/src/test/resources/testdata/xades/5.2.1-TEST FILE.xml
@@ -0,0 +1,3 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?><FILE>
+ <TEST>SAMPLE</TEST>
+<ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#" Id="id-a5b1905a27ddf8b9e1143cbd968864f0"><ds:SignedInfo><ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/><ds:SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"/><ds:Reference Id="r-id-a5b1905a27ddf8b9e1143cbd968864f0-1" URI=""><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2002/06/xmldsig-filter2"><dsig-filter2:XPath xmlns:dsig-filter2="http://www.w3.org/2002/06/xmldsig-filter2" Filter="subtract">/descendant::ds:Signature</dsig-filter2:XPath></ds:Transform><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>kfsK43NJaZNZwDUkwbME+Sn+ziU/Rl4K0N2bvfbuwvk=</ds:DigestValue></ds:Reference><ds:Reference Type="http://uri.etsi.org/01903#SignedProperties" URI="#xades-id-a5b1905a27ddf8b9e1143cbd968864f0"><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>lE3a0G4u0w/MmCcMykWJPkfhCoOePuZhJw8SCvxONkY=</ds:DigestValue></ds:Reference></ds:SignedInfo><ds:SignatureValue Id="value-id-a5b1905a27ddf8b9e1143cbd968864f0">sr5DlELy0vkJuNFVzCrfDSPSl2sp0NveGhouMohp1iD7OLAXtZqnem8r8gsYVNxIH035ECcCURepUK5OT8uH7+Y26z95ggebD1IH/4w+1h4r2KXe9gp8XQt+lXrZmoGlN7PpoKPujjgge7EVf68sxL4tnXwi3AiMlEUYSsoWEEleLOF+cm+wfBs8fzoBR7+XPbPoA7TA663EtqqOSKq/nz7oZ59bM4Fq56ebpuC5hqN6JCy7Bvp2MvrvAHP7Hk+PdqS+3bCqwa3kI0uKrhs6YsZ8p4Zby0IVh55RpFhsR1e9QJWBE3NT/PxtbMWL35rHYoGwSYrh3B/MXPVvvgOU6g==</ds:SignatureValue><ds:KeyInfo><ds:X509Data><ds:X509Certificate>MIIEZzCCA0+gAwIBAgIBDzANBgkqhkiG9w0BAQsFADBQMRIwEAYDVQQDDAlTREktNS4yL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6TNryxAgMBAAGjQjBAMA4GA1UdDwEB/wQEAwIBBjAdBgNVHQ4EFgQU6yFIB15m1s9JB4VGDSinmC2mObIwDwYDVR0TAQH/BAUwAwEB/zANBgkqhkiG9w0BAQsFAAOCAQEAW+SAArgbI2/NFk+67a5VGQV6KgZIHGvi6FVW65kSJOejxOa1OGOCgq4N4QwTNiM0cjQSzt2RL7e9gy9OfYqbCel8PkrXSKWNFO4GWDsl4vRkWXLI68MNdK22hf6+OWqpRO+GVDmPupiBm1qAr0csWCzxHmwp36Kw3h4l5pFzACIFcwtXkbYnfqJKvaC55HqY8iUIRk6zOFhznPC7J5kIT9XxHRs0lO9/WntB7th6BdwbgCSeJQ7vCjOUbZccrjPkXCYpVJGCd37pyTutaFBFLc/nwW+IVZMK+3vNdOiO9+o5BRVV//FNIEdIs45/ItKGCDi3ah6580umcUA9PyrNWg==</ds:X509Certificate></ds:X509Data></ds:KeyInfo><ds:Object><xades:QualifyingProperties xmlns:xades="http://uri.etsi.org/01903/v1.3.2#" Target="#id-a5b1905a27ddf8b9e1143cbd968864f0"><xades:SignedProperties Id="xades-id-a5b1905a27ddf8b9e1143cbd968864f0"><xades:SignedSignatureProperties><xades:SigningTime>2021-03-21T00:01:11Z</xades:SigningTime><xades:SigningCertificateV2><xades:Cert><xades:CertDigest><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha512"/><ds:DigestValue>EKL7oa88HvUEdglVGzIh+BYgxPlB2PjRujsamthHBQeDuBT2p1cCYkXWVpnK3UPobWOi8X92unFg/5dTvqtYsA==</ds:DigestValue></xades:CertDigest><xades:IssuerSerialV2>MFkwVKRSMFAxEjAQBgNVBAMMCVNESS01LjIuMTEVMBMGA1UECgwMVFNQLTUuMiBOYW1lMRYwFAYDVQQLDA1DRVJUIEZPUiBURVNUMQswCQYDVQQGEwJJVAIBDw==</xades:IssuerSerialV2></xades:Cert></xades:SigningCertificateV2></xades:SignedSignatureProperties><xades:SignedDataObjectProperties><xades:DataObjectFormat ObjectReference="#r-id-a5b1905a27ddf8b9e1143cbd968864f0-1"><xades:MimeType>application/octet-stream</xades:MimeType></xades:DataObjectFormat></xades:SignedDataObjectProperties></xades:SignedProperties></xades:QualifyingProperties></ds:Object></ds:Signature></FILE> \ No newline at end of file
diff --git a/moaSig/moa-sig/src/test/resources/testdata/xades/5.2.2-TEST FILE.xml b/moaSig/moa-sig/src/test/resources/testdata/xades/5.2.2-TEST FILE.xml
new file mode 100644
index 0000000..a76b160
--- /dev/null
+++ b/moaSig/moa-sig/src/test/resources/testdata/xades/5.2.2-TEST FILE.xml
@@ -0,0 +1,3 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?><FILE>
+ <TEST>SAMPLE</TEST>
+<ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#" Id="id-94a308c051493539427ed3e2f68466e7"><ds:SignedInfo><ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/><ds:SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"/><ds:Reference Id="r-id-94a308c051493539427ed3e2f68466e7-1" URI=""><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2002/06/xmldsig-filter2"><dsig-filter2:XPath xmlns:dsig-filter2="http://www.w3.org/2002/06/xmldsig-filter2" Filter="subtract">/descendant::ds:Signature</dsig-filter2:XPath></ds:Transform><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>kfsK43NJaZNZwDUkwbME+Sn+ziU/Rl4K0N2bvfbuwvk=</ds:DigestValue></ds:Reference><ds:Reference Type="http://uri.etsi.org/01903#SignedProperties" URI="#xades-id-94a308c051493539427ed3e2f68466e7"><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>jRGNGIjGAJs805C9YH6eaCxCpTfJzugu9Lrt+TPrHRE=</ds:DigestValue></ds:Reference></ds:SignedInfo><ds:SignatureValue Id="value-id-94a308c051493539427ed3e2f68466e7">V8L5AImmLbZxBYGFpzksoVgHNk3dXQxadkCn6woLwWWiC3q/R36qU9E8OgYfr65WrciCm9p87vU4RF7czh9QC52lt2QX2Pw6lT2/5NazBB5K8ItIhBTCySrdQ5Rqg0QlBpSj8xZyNW63cf9FdVKRveXp5O1OKd9u15BCT6LzROuC3UecgwIwTvCHD253S5xvDf0ntZ2E/o9/FYoNoaBg0lF/qSl9Inyx9oYbC+8wwTDjnHrZ1QIHRyKlWxgjnOoGIVTsM2Dwc4mCCg++3uQ9ip32ipIbbrLi7PQB+nzuFMx0+2RM4ixAgf4DRqsVxTYo15Ga1ZdnBaCcipqKa5fzwg==</ds:SignatureValue><ds:KeyInfo><ds:X509Data><ds:X509Certificate>MIIESzCCAzOgAwIBAgIBETANBgkqhkiG9w0BAQsFADBQMRIwEAYDVQQDDAlTREktNS4yLjIxFTATBgNVBAoMDFRTUC01LjIgTmFtZTEWMBQGA1UECwwNQ0VSVCBGT1IgVEVTVDELMAkGA1UEBhMCSVQwHhcNMjAwMzIxMDAwMDI2WhcNMjIwMzIxMDAwMDI2WjBaMRgwFgYDVQQDDA9DRVJULVRFU1QtNS4yLjIxGTAXBgNVBAoMEFRMNSBPcmdhbml6YXRpb24xFjAUBgNVBAsMDUNFUlQgRk9SIFRFU1QxCzAJBgNVBAYTAklUMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAwYQAFWTRpmbQ5CHCU5VJ/KXhIOuOZdAQAHx17Od4mFNh/KDT5ehv+mNcVCLYxDivktdxUX7rTJu9Hk9bncMQ+4Nt+fL0xRq8f8u7wby640r77He8BGtGXlrloMrTMgdqP//G+vlaCCjVUh6232utsT7k/tVsdAyMm9Od7TMQ+nIlgXgl4Ka1M8O84St2GAs5ysn8RgAgzikWcqdM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ingProperties xmlns:xades="http://uri.etsi.org/01903/v1.3.2#" Target="#id-94a308c051493539427ed3e2f68466e7"><xades:SignedProperties Id="xades-id-94a308c051493539427ed3e2f68466e7"><xades:SignedSignatureProperties><xades:SigningTime>2021-03-21T00:01:12Z</xades:SigningTime><xades:SigningCertificateV2><xades:Cert><xades:CertDigest><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha512"/><ds:DigestValue>e4rCimCjUeMRRZrbd+8gz6CqVHV0QlWMdSMz2BHK5fUVqLWcqA+cWNHg6vqiIEZEQEh9z6U9gmfxKZRDBG26+A==</ds:DigestValue></xades:CertDigest><xades:IssuerSerialV2>MFkwVKRSMFAxEjAQBgNVBAMMCVNESS01LjIuMjEVMBMGA1UECgwMVFNQLTUuMiBOYW1lMRYwFAYDVQQLDA1DRVJUIEZPUiBURVNUMQswCQYDVQQGEwJJVAIBEQ==</xades:IssuerSerialV2></xades:Cert></xades:SigningCertificateV2></xades:SignedSignatureProperties><xades:SignedDataObjectProperties><xades:DataObjectFormat ObjectReference="#r-id-94a308c051493539427ed3e2f68466e7-1"><xades:MimeType>application/octet-stream</xades:MimeType></xades:DataObjectFormat></xades:SignedDataObjectProperties></xades:SignedProperties></xades:QualifyingProperties></ds:Object></ds:Signature></FILE> \ No newline at end of file
diff --git a/moaSig/moa-sig/src/test/resources/testdata/xades/5.2.3-TEST FILE.xml b/moaSig/moa-sig/src/test/resources/testdata/xades/5.2.3-TEST FILE.xml
new file mode 100644
index 0000000..9220395
--- /dev/null
+++ b/moaSig/moa-sig/src/test/resources/testdata/xades/5.2.3-TEST FILE.xml
@@ -0,0 +1,3 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?><FILE>
+ <TEST>SAMPLE</TEST>
+<ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#" Id="id-00f37a62bc782f2bb7323302b1a61929"><ds:SignedInfo><ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/><ds:SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"/><ds:Reference Id="r-id-00f37a62bc782f2bb7323302b1a61929-1" URI=""><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2002/06/xmldsig-filter2"><dsig-filter2:XPath xmlns:dsig-filter2="http://www.w3.org/2002/06/xmldsig-filter2" Filter="subtract">/descendant::ds:Signature</dsig-filter2:XPath></ds:Transform><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>kfsK43NJaZNZwDUkwbME+Sn+ziU/Rl4K0N2bvfbuwvk=</ds:DigestValue></ds:Reference><ds:Reference Type="http://uri.etsi.org/01903#SignedProperties" URI="#xades-id-00f37a62bc782f2bb7323302b1a61929"><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>qyDyIOL9YnvswGybrz6YNF1Y1BOn9uojU3wCDkx9bgI=</ds:DigestValue></ds:Reference></ds:SignedInfo><ds:SignatureValue Id="value-id-00f37a62bc782f2bb7323302b1a61929">IPGOYhlRCqpHDT9mhr5+1+3lryti8p4sfbguq8Auzf+Xmw4DBktStxFwZPoIR9aV9+RFTRn2HKlVV/oTI4yBu4AlGwS72ZU1ymZfzUscaCHo/Mx5rQQq7AtKKBxsbwRKTP+amT60xt9phUSvWDGntqif9/63SpCiDEiwttfZp+sW82o6DN4DqXJ8zzAG65M7lmDEW9sUPQduIghOJuKTuiaN/QXM1Zx+dCPzKC5X21YnPgYk9OMXUQ0WNR5oRLLppBesuC3J/Ve5fkPnGIu7MFArTV34/JcvOuzb+BpgAnyI+h2SeGK7eqqX0QGDhvlcSal4ePHUuMlL9QYOR8mJGQ==</ds:SignatureValue><ds:KeyInfo><ds:X509Data><ds:X509Certificate>MIIEZzCCA0+gAw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v9s1XzIgXfB7mWBuya7hToZsBOdlG85eZywvnZF16bVemBfismwcOtem7n34vPMvAgMBAAGjQjBAMA4GA1UdDwEB/wQEAwIBBjAdBgNVHQ4EFgQUm7K5kRvrlJDDh6ElHcFXFJ1UALQwDwYDVR0TAQH/BAUwAwEB/zANBgkqhkiG9w0BAQsFAAOCAQEAA51NruLeQwT8dF0Rp8VFtTYuPobLaBglo/YGzb00tSE6CnQ0ZdRKlIAz8vHsN9Y5oi6+sngA5+INZmSGkfE+KjmXalG6s1cYHZnAmdratCHGvVEw/RVGJKvGYbhvENGEJIJs4TQONiKzqR4uGoOulo5ZMExx0CGUoeRLMdyjk/osfdqvwbT3LeNCpsaxM1C3fky6gYdhF7n5l+o89ha6Qpe+z89O4XqfLYBwWqmTTJzaZvMplzz7JvSQc1wPT+BYxqvM9WLexMXU4MjmjXrF6wyD2yCxoMaYD+Jb03JEGAr3iGNafVXLKaLe1hbM7mRUsm99MQq8mpmrJ8+o1z8Z+w==</ds:X509Certificate></ds:X509Data></ds:KeyInfo><ds:Object><xades:QualifyingProperties xmlns:xades="http://uri.etsi.org/01903/v1.3.2#" Target="#id-00f37a62bc782f2bb7323302b1a61929"><xades:SignedProperties Id="xades-id-00f37a62bc782f2bb7323302b1a61929"><xades:SignedSignatureProperties><xades:SigningTime>2021-03-21T00:01:12Z</xades:SigningTime><xades:SigningCertificateV2><xades:Cert><xades:CertDigest><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha512"/><ds:DigestValue>aV0rKmbg3cUZIbrInNUBDUtGmIrjri+EZFA0LnithaqvMl4f7KJ414YBjfDCtn+nUW09FR1AUkgXE9jGziBJmA==</ds:DigestValue></xades:CertDigest><xades:IssuerSerialV2>MFkwVKRSMFAxEjAQBgNVBAMMCVNESS01LjIuMzEVMBMGA1UECgwMVFNQLTUuMiBOYW1lMRYwFAYDVQQLDA1DRVJUIEZPUiBURVNUMQswCQYDVQQGEwJJVAIBEw==</xades:IssuerSerialV2></xades:Cert></xades:SigningCertificateV2></xades:SignedSignatureProperties><xades:SignedDataObjectProperties><xades:DataObjectFormat ObjectReference="#r-id-00f37a62bc782f2bb7323302b1a61929-1"><xades:MimeType>application/octet-stream</xades:MimeType></xades:DataObjectFormat></xades:SignedDataObjectProperties></xades:SignedProperties></xades:QualifyingProperties></ds:Object></ds:Signature></FILE> \ No newline at end of file
diff --git a/moaSig/moa-sig/src/test/resources/testdata/xades/5.2.4-TEST FILE.xml b/moaSig/moa-sig/src/test/resources/testdata/xades/5.2.4-TEST FILE.xml
new file mode 100644
index 0000000..b5c26c6
--- /dev/null
+++ b/moaSig/moa-sig/src/test/resources/testdata/xades/5.2.4-TEST FILE.xml
@@ -0,0 +1,3 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?><FILE>
+ <TEST>SAMPLE</TEST>
+<ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#" Id="id-c84d7f4ba67e430b8d1916a42bf3499f"><ds:SignedInfo><ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/><ds:SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"/><ds:Reference Id="r-id-c84d7f4ba67e430b8d1916a42bf3499f-1" URI=""><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2002/06/xmldsig-filter2"><dsig-filter2:XPath xmlns:dsig-filter2="http://www.w3.org/2002/06/xmldsig-filter2" Filter="subtract">/descendant::ds:Signature</dsig-filter2:XPath></ds:Transform><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>kfsK43NJaZNZwDUkwbME+Sn+ziU/Rl4K0N2bvfbuwvk=</ds:DigestValue></ds:Reference><ds:Reference Type="http://uri.etsi.org/01903#SignedProperties" URI="#xades-id-c84d7f4ba67e430b8d1916a42bf3499f"><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>jaQ4Xl/PHgpy2ALl7rPbogR7UmcZnapPDa6sz/zLy2Y=</ds:DigestValue></ds:Reference></ds:SignedInfo><ds:SignatureValue Id="value-id-c84d7f4ba67e430b8d1916a42bf3499f">bIrawe+v21YDLsX/w9M1+LYga1gWDpKfYqvXWLD31qC/CTosBHN2CUUlivm4EE3Hc0J9RoHBYnPqiIFobmMhfDNdCtMeQgxzquATtNRju67K7IDpyIoovCSo4PDXodhTEwejwC5gQ9Bn9hWBbOaDlmnJ9DQtH4ncB8mWN7EqcQFRPDNsK7Mj8Sv1UJKSGF9WWafXK0nx5A1B2HOq6sSx16LkeHKEHooDJazfPC/CO0j2YKwMQNmsLq21UnoWYX1ip7N85XMwBj5Rv0zxCn7Ec1AYb+Ebkf4RkmXrigPD8C684vuoWXIEOH92/rS1/WAjUvNvS2du9KWzTJvjH1OuaA==</ds:SignatureValue><ds:KeyInfo><ds:X509Data><ds:X509Certificate>MIIEXTCCA0WgAwIBAgIBFTANBgkqhkiG9w0BAQsFADBQMRIwEAYDVQQDDAlTREktNS4yLjQxFTATBgNVBAoMDFRTUC01LjIgTmFtZTEWMBQGA1UECwwNQ0VSVCBGT1IgVEVTVDELMAkGA1UEBhMCSVQwHhcNMjAwMzIxMDAwMDI4WhcNMjIwMzIxMDAwMDI4WjBaMRgwFgYDVQQDDA9DRVJULVRFU1QtNS4yLjQxGTAXBgNVBAoMEFRMNSBPcmdhbml6YXRpb24xFjAUBgNVBAsMDUNFUlQgRk9SIFRFU1QxCzAJBgNVBAYTAklUMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAgaMtiOfXPBDkRpGv1Wh+9WFqhJNUZw5XsnqkvhL4c4t8lmIjEeA6Bj86/5Eg+lrdjA2KnzJgunIB9/lk6fBAhqGH/g7ReRUm6f3qTkcqpQH2Svdr7cIGXRvOe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BaUglmEKNugg2hmBE5L/nzBfh8w==</ds:X509Certificate></ds:X509Data></ds:KeyInfo><ds:Object><xades:QualifyingProperties xmlns:xades="http://uri.etsi.org/01903/v1.3.2#" Target="#id-c84d7f4ba67e430b8d1916a42bf3499f"><xades:SignedProperties Id="xades-id-c84d7f4ba67e430b8d1916a42bf3499f"><xades:SignedSignatureProperties><xades:SigningTime>2021-03-21T00:01:12Z</xades:SigningTime><xades:SigningCertificateV2><xades:Cert><xades:CertDigest><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha512"/><ds:DigestValue>va3YrnFCab3iXywHyJkfVz0OTXOuzLsoH27TtTxAE4p7NFxIrDB02OXd8/2ObQlbxwy+Cm3K0+7stCAw7rVbVw==</ds:DigestValue></xades:CertDigest><xades:IssuerSerialV2>MFkwVKRSMFAxEjAQBgNVBAMMCVNESS01LjIuNDEVMBMGA1UECgwMVFNQLTUuMiBOYW1lMRYwFAYDVQQLDA1DRVJUIEZPUiBURVNUMQswCQYDVQQGEwJJVAIBFQ==</xades:IssuerSerialV2></xades:Cert></xades:SigningCertificateV2></xades:SignedSignatureProperties><xades:SignedDataObjectProperties><xades:DataObjectFormat ObjectReference="#r-id-c84d7f4ba67e430b8d1916a42bf3499f-1"><xades:MimeType>application/octet-stream</xades:MimeType></xades:DataObjectFormat></xades:SignedDataObjectProperties></xades:SignedProperties></xades:QualifyingProperties></ds:Object></ds:Signature></FILE> \ No newline at end of file
diff --git a/moaSig/moa-sig/src/test/resources/testdata/xades/5.3.1-TEST FILE.xml b/moaSig/moa-sig/src/test/resources/testdata/xades/5.3.1-TEST FILE.xml
new file mode 100644
index 0000000..31d8fed
--- /dev/null
+++ b/moaSig/moa-sig/src/test/resources/testdata/xades/5.3.1-TEST FILE.xml
@@ -0,0 +1,3 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?><FILE>
+ <TEST>SAMPLE</TEST>
+<ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#" Id="id-16c9da97850664cbcafc5d081316aeaa"><ds:SignedInfo><ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/><ds:SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"/><ds:Reference Id="r-id-16c9da97850664cbcafc5d081316aeaa-1" URI=""><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2002/06/xmldsig-filter2"><dsig-filter2:XPath xmlns:dsig-filter2="http://www.w3.org/2002/06/xmldsig-filter2" Filter="subtract">/descendant::ds:Signature</dsig-filter2:XPath></ds:Transform><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>kfsK43NJaZNZwDUkwbME+Sn+ziU/Rl4K0N2bvfbuwvk=</ds:DigestValue></ds:Reference><ds:Reference Type="http://uri.etsi.org/01903#SignedProperties" URI="#xades-id-16c9da97850664cbcafc5d081316aeaa"><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>WgZQ0pK68Ip2wwc1q9Gl/nTgdU5G1lsQvLn/O92hAmI=</ds:DigestValue></ds:Reference></ds:SignedInfo><ds:SignatureValue Id="value-id-16c9da97850664cbcafc5d081316aeaa">azxLY+sbWTYPzuDCfTjSEwp6rKVApTQzFYZYL4fM3yozhyxgj8CDmGi3KIwLefZ3SjVJQOX5J/MIZraFsxDOKJomDL/PfJfNLk6jh5puDDKh0SsUpWipMqiEcHhn7pdFa8LdztH6Vnx+DC5Yt+xVMFDif9eAHrqHdlbRwgqMiSTFtPVrlsQMnl3iDTjtvkAJKZVXdCpylWnD5Iji8Bqg/Ood8tRf2L6NRsHjzcGPrxERD2XCG66TiZF7Ie6a8/JRbjZEH/bQGv0Qj7VhZk1YPXOX5sri6kT29cznjOatW4aILyo+m9X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TVbCCz0m081eYonTAOFC6dY1tRcYM1nhi2pTSMxn4TpdaTTUT8lS+aDkKJnBBPyF5S4/Ayaxt/Nt8/+DutAgMBAAGjQjBAMA4GA1UdDwEB/wQEAwIBBjAdBgNVHQ4EFgQUZGpsvuBOlEEOHxe/NgpZS/iZl7kwDwYDVR0TAQH/BAUwAwEB/zANBgkqhkiG9w0BAQsFAAOCAQEASQNL0ZDEAn2n2A6U5SQ6C9QUstE1r6LusSUNfVBXKkY4xlqMtpE6+IMvW5w57eAJyOD6VI5XoflxFB65xobI2vQQnVIqU6rzGmZQjlfDEKVm6pgpDxjEBPcaTS68I62dg32qaL3CoB+ot5sVkqGZA213ZDT5kYYRmnDv9Gr7nmbi5HNfM9rfxyIdp/ioS8aYizvyZ1uqP8Fh4s4zEvknVxcgguykXFHNe7FuaQUSI4wjmpD8feV4/YX+2AUTjf0ipKjv0FosEHzb3fNantG+AXWoP9RdtCJGU9xocBM49zMrocJOOBIQEFiSckvZzFI9iGA/4qjVeRWl1iJKul+QKg==</ds:X509Certificate></ds:X509Data></ds:KeyInfo><ds:Object><xades:QualifyingProperties xmlns:xades="http://uri.etsi.org/01903/v1.3.2#" Target="#id-16c9da97850664cbcafc5d081316aeaa"><xades:SignedProperties Id="xades-id-16c9da97850664cbcafc5d081316aeaa"><xades:SignedSignatureProperties><xades:SigningTime>2021-03-21T00:01:12Z</xades:SigningTime><xades:SigningCertificateV2><xades:Cert><xades:CertDigest><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha512"/><ds:DigestValue>ukh48B5ak0qRMlREQdByl8TBL6V7hYdPmRwU4HvmBBR1j9vsJOq59Id13zVZVCLAA5WVlp3wCMVkVUs9rj/e+A==</ds:DigestValue></xades:CertDigest><xades:IssuerSerialV2>MFkwVKRSMFAxEjAQBgNVBAMMCVNESS01LjMuMTEVMBMGA1UECgwMVFNQLTUuMyBOYW1lMRYwFAYDVQQLDA1DRVJUIEZPUiBURVNUMQswCQYDVQQGEwJJVAIBFw==</xades:IssuerSerialV2></xades:Cert></xades:SigningCertificateV2></xades:SignedSignatureProperties><xades:SignedDataObjectProperties><xades:DataObjectFormat ObjectReference="#r-id-16c9da97850664cbcafc5d081316aeaa-1"><xades:MimeType>application/octet-stream</xades:MimeType></xades:DataObjectFormat></xades:SignedDataObjectProperties></xades:SignedProperties></xades:QualifyingProperties></ds:Object></ds:Signature></FILE> \ No newline at end of file
diff --git a/moaSig/moa-sig/src/test/resources/testdata/xades/5.3.2-TEST FILE.xml b/moaSig/moa-sig/src/test/resources/testdata/xades/5.3.2-TEST FILE.xml
new file mode 100644
index 0000000..40de778
--- /dev/null
+++ b/moaSig/moa-sig/src/test/resources/testdata/xades/5.3.2-TEST FILE.xml
@@ -0,0 +1,3 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?><FILE>
+ <TEST>SAMPLE</TEST>
+<ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#" Id="id-b32087208d9185e2fda800b94fb4fcb0"><ds:SignedInfo><ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/><ds:SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"/><ds:Reference Id="r-id-b32087208d9185e2fda800b94fb4fcb0-1" URI=""><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2002/06/xmldsig-filter2"><dsig-filter2:XPath xmlns:dsig-filter2="http://www.w3.org/2002/06/xmldsig-filter2" Filter="subtract">/descendant::ds:Signature</dsig-filter2:XPath></ds:Transform><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>kfsK43NJaZNZwDUkwbME+Sn+ziU/Rl4K0N2bvfbuwvk=</ds:DigestValue></ds:Reference><ds:Reference Type="http://uri.etsi.org/01903#SignedProperties" URI="#xades-id-b32087208d9185e2fda800b94fb4fcb0"><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>YiHIsiHhlxPoBw0Mt1kGkktgxA5qU98ONUxEXwKOVJo=</ds:DigestValue></ds:Reference></ds:SignedInfo><ds:SignatureValue Id="value-id-b32087208d9185e2fda800b94fb4fcb0">eM8q2D+xyvdvaRFeX17GQQ5Ei2sJp86l1GW/ZIdxPuLbIAH7nMQhtS+EC3m6cdUcmVQFCPORRWruQLtwtEYduMMpRqztzpJCSeoJlO5o3zsVA0WBwMzrqPV2KRD0M5dAHHqZKeszHIkEVLL/Em1i2mEdwjs9aiM2NLks8BqsfUBwwPfu4ptDAHzXGgHgZGDXSf8hTVdcs51JNw4AcrVII0F87IqWYvz1zyrsADde8I+djcHJBpUx5Jk/29JZho0fnfbQdAQwZVc0IqDF0cGlZ/KOyWCFZ61KiNbL9FcLFuVzi7o0EZnGgPITfpvUrPYikfTsW5HFLY3IYZ/W3EU3Vw==</ds:SignatureValue><ds:KeyInfo><ds:X509Data><ds:X509Certificate>MIIESzCCAzOgAwIBAgIBGTANBgkqhkiG9w0BAQsFADBQMRIwEAYDVQQDDAlTREktNS4zLjIxFTATBgNVBAoMDFRTUC01LjMgTmFtZTEWMBQGA1UECwwNQ0VSVCBGT1IgVEVTVDELMAkGA1UEBhMCSVQwHhcNMjAwMzIxMDAwMDI4WhcNMjIwMzIxMDAwMDI4WjBaMRgwFgYDVQQDDA9DRVJULVRFU1QtNS4zLjIxGTAXBgNVBAoMEFRMNSBPcmdhbml6YXRpb24xFjAUBgNVBAsMDUNFUlQgRk9SIFRFU1QxCzAJBgNVBAYTAklUMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA0EfFvdmmfkcUn4HmSEMiLOFunlQxKhAM7G4lpB7rOMRoo9MIaIJJxu9ZAIReGcFdb7uLBmrGI05ZSvz25SahUfmv5PlM+MnRLE3MmWjV1g6ehTS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ou2Te+35EpO8KiYxW3127hRRwTv1ks0YA==</ds:X509Certificate></ds:X509Data></ds:KeyInfo><ds:Object><xades:QualifyingProperties xmlns:xades="http://uri.etsi.org/01903/v1.3.2#" Target="#id-b32087208d9185e2fda800b94fb4fcb0"><xades:SignedProperties Id="xades-id-b32087208d9185e2fda800b94fb4fcb0"><xades:SignedSignatureProperties><xades:SigningTime>2021-03-21T00:01:13Z</xades:SigningTime><xades:SigningCertificateV2><xades:Cert><xades:CertDigest><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha512"/><ds:DigestValue>ghMO/nMiRIZ4XDVmqE1RENOTPxdcfbA1RN2BYK3XtUwGMxq1ClzHwT4REcUgv3i60B6r008mcD5lnV4zY4QG8w==</ds:DigestValue></xades:CertDigest><xades:IssuerSerialV2>MFkwVKRSMFAxEjAQBgNVBAMMCVNESS01LjMuMjEVMBMGA1UECgwMVFNQLTUuMyBOYW1lMRYwFAYDVQQLDA1DRVJUIEZPUiBURVNUMQswCQYDVQQGEwJJVAIBGQ==</xades:IssuerSerialV2></xades:Cert></xades:SigningCertificateV2></xades:SignedSignatureProperties><xades:SignedDataObjectProperties><xades:DataObjectFormat ObjectReference="#r-id-b32087208d9185e2fda800b94fb4fcb0-1"><xades:MimeType>application/octet-stream</xades:MimeType></xades:DataObjectFormat></xades:SignedDataObjectProperties></xades:SignedProperties></xades:QualifyingProperties></ds:Object></ds:Signature></FILE> \ No newline at end of file
diff --git a/moaSig/moa-sig/src/test/resources/testdata/xades/5.3.3-TEST FILE.xml b/moaSig/moa-sig/src/test/resources/testdata/xades/5.3.3-TEST FILE.xml
new file mode 100644
index 0000000..f4e807a
--- /dev/null
+++ b/moaSig/moa-sig/src/test/resources/testdata/xades/5.3.3-TEST FILE.xml
@@ -0,0 +1,3 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?><FILE>
+ <TEST>SAMPLE</TEST>
+<ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#" Id="id-7234d12cfa26f82fefd6035d6b11a8d7"><ds:SignedInfo><ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/><ds:SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"/><ds:Reference Id="r-id-7234d12cfa26f82fefd6035d6b11a8d7-1" URI=""><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2002/06/xmldsig-filter2"><dsig-filter2:XPath xmlns:dsig-filter2="http://www.w3.org/2002/06/xmldsig-filter2" Filter="subtract">/descendant::ds:Signature</dsig-filter2:XPath></ds:Transform><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>kfsK43NJaZNZwDUkwbME+Sn+ziU/Rl4K0N2bvfbuwvk=</ds:DigestValue></ds:Reference><ds:Reference Type="http://uri.etsi.org/01903#SignedProperties" URI="#xades-id-7234d12cfa26f82fefd6035d6b11a8d7"><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>/hJpIroVKGOJb2lpIxCgaO9Bt7ODoYGRtqA0rxSQgA4=</ds:DigestValue></ds:Reference></ds:SignedInfo><ds:SignatureValue Id="value-id-7234d12cfa26f82fefd6035d6b11a8d7">vH1/VrBSDAYlR0VeWNMuOl+61Zwx0XAFEeQiEEaWbIG18VXUpVUWgwZyciTXKcGHiPcAI1nS9k1LBCZdF9owrfJgURAvRESJCzzCUiKesZ/J6g4IKCM3QDl4oMcaFSiml5fEccqNBNNtb/4amPBwjjIEzFWlnp1PdMeQiuC5bkMpyDyPoNuTzTxiNHWpW1eMNDljNVC88yE5dt1UXy3pbfJMUIQ9H7We2nGaEnMVuQSLFIqct8+uwmuiPJXWGP0pa18K8/tA21Inqy+yViikYye0PtF4UOBnLYjOUk0kLawLv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pE1fbtqD5zp461t67J1EVYyqB+SPlxAVhSponM6PLBN/soZUD8gw3ROIyk2ccvUpjaX9V433Oyd9Aa2WuOaWKhdBZYKEpFJQIHB/Htp7L7jNbQFnlKhmA+YjYNbawUAZzAgMBAAGjQjBAMA4GA1UdDwEB/wQEAwIBBjAdBgNVHQ4EFgQUU5V+jHFGmv/dJx+m5onw29kDZHQwDwYDVR0TAQH/BAUwAwEB/zANBgkqhkiG9w0BAQsFAAOCAQEAkpkBElz/YOIAxSN8c0bJJDsoy+5KaQb371pZRr0LvLrM93Hzg4zXyrtHWjfsWVJC+lUzBnC11di5K237Ou8bTJzswmYsKemso3WM9IskoHvA1rJwCzEHmXIATZ83wqnD1zUNrBTZjNICoPRyvznRgPYG+6CPM7XiV+LdJlAo7g6ciJmbu31NSDiOBazvoY6lE9gPij+WR5hx/0MhOuaJsheVaU4TArDA9v1l1q7wVTwV6XS+xgRrVKruhGu04U7XYcqQ72pUEM7W4Ds9iyZUDibfdGUUkRKdgNyocC8gDzyFei4Pxpnk6hbkmntm+kSyz7KILuZ+I9/pHzgFUXjalw==</ds:X509Certificate></ds:X509Data></ds:KeyInfo><ds:Object><xades:QualifyingProperties xmlns:xades="http://uri.etsi.org/01903/v1.3.2#" Target="#id-7234d12cfa26f82fefd6035d6b11a8d7"><xades:SignedProperties Id="xades-id-7234d12cfa26f82fefd6035d6b11a8d7"><xades:SignedSignatureProperties><xades:SigningTime>2021-03-21T00:01:13Z</xades:SigningTime><xades:SigningCertificateV2><xades:Cert><xades:CertDigest><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha512"/><ds:DigestValue>Sj1GnjsIGaTu4paLaBdj2MOEruCMvUw9pxV2Zyo9kFqns6SyBgSaB6OWVzyCAZUXq7b1QFNS2BKDruAjFYX2PA==</ds:DigestValue></xades:CertDigest><xades:IssuerSerialV2>MFkwVKRSMFAxEjAQBgNVBAMMCVNESS01LjMuMzEVMBMGA1UECgwMVFNQLTUuMyBOYW1lMRYwFAYDVQQLDA1DRVJUIEZPUiBURVNUMQswCQYDVQQGEwJJVAIBGw==</xades:IssuerSerialV2></xades:Cert></xades:SigningCertificateV2></xades:SignedSignatureProperties><xades:SignedDataObjectProperties><xades:DataObjectFormat ObjectReference="#r-id-7234d12cfa26f82fefd6035d6b11a8d7-1"><xades:MimeType>application/octet-stream</xades:MimeType></xades:DataObjectFormat></xades:SignedDataObjectProperties></xades:SignedProperties></xades:QualifyingProperties></ds:Object></ds:Signature></FILE> \ No newline at end of file
diff --git a/moaSig/moa-sig/src/test/resources/testdata/xades/6.1.1-TEST FILE.xml b/moaSig/moa-sig/src/test/resources/testdata/xades/6.1.1-TEST FILE.xml
new file mode 100644
index 0000000..3d4f9a4
--- /dev/null
+++ b/moaSig/moa-sig/src/test/resources/testdata/xades/6.1.1-TEST FILE.xml
@@ -0,0 +1,3 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?><FILE>
+ <TEST>SAMPLE</TEST>
+<ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#" Id="id-8a3a021ddc6be25336c9c5bd69866251"><ds:SignedInfo><ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/><ds:SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"/><ds:Reference Id="r-id-8a3a021ddc6be25336c9c5bd69866251-1" URI=""><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2002/06/xmldsig-filter2"><dsig-filter2:XPath xmlns:dsig-filter2="http://www.w3.org/2002/06/xmldsig-filter2" Filter="subtract">/descendant::ds:Signature</dsig-filter2:XPath></ds:Transform><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>kfsK43NJaZNZwDUkwbME+Sn+ziU/Rl4K0N2bvfbuwvk=</ds:DigestValue></ds:Reference><ds:Reference Type="http://uri.etsi.org/01903#SignedProperties" URI="#xades-id-8a3a021ddc6be25336c9c5bd69866251"><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>3Re73JQ8yJOIIk8Lxv9tk8IWfFIGDyMkXNo8pSHOtCs=</ds:DigestValue></ds:Reference></ds:SignedInfo><ds:SignatureValue Id="value-id-8a3a021ddc6be25336c9c5bd69866251">eE+9tIbG+JFvA+xWr1P7fIKQOIaAHZUKbfaGzrDwGci3JUkW4FiimpkY7wSqz2lSe5ZNTV7/ul95ia+TPvaHh01Y9E5PZ4udz2PFltzqD94+xt5DjsPcMKzsY1fYmM+sKO1cxuZyGHLzA2rgQU2nuo8c9WYd+V8u/0vhkkqIkI4CsHdW2IlKg2S4fH4DQK5BBsopDevX1HFmzTG1SezXK5Ja6bA256kRiV+tCvUaS8lGmMGghjQituALZEzTLTfz1TMJxtI01hiMgw6CBN6bF3ATiOdFBRcDn6BN/ZuPvlxRQ4uZQMppD4KcF9AtXTj/Ec1Wf746BaZKpwCK8Hz4cw==</ds:SignatureValue><ds:KeyInfo><ds:X509Data><ds:X509Certificate>MIIEMTCCAxmgAwIBAgIBJTANBgkqhkiG9w0BAQsFADBQMRIwEAYDVQQDDAlTREktNi4xLjExFTATBgNVBAoMDFRTUC02LjEgTmFtZTEWMBQGA1UECwwNQ0VSVCBGT1IgVEVTVDELMAkGA1UEBhMCQ1owHhcNMTYwMzIxMDAwMDIxWhcNMjYwMzIxMDAwMDIxWjBaMRgwFgYDVQQDDA9DRVJULVRFU1QtNi4xLjExGTAXBgNVBAoMEFRMNiBPcmdhbml6YXRpb24xFjAUBgNVBAsMDUNFUlQgRk9SIFRFU1QxCzAJBgNVBAYTAkNaMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAw2td/rQuuJvzkmWx75pn6v4GPHOW35Isd/H9cz1I+RTydqJzSgb2PJvCykj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hMMtbHK3m1g12hN237HlhFO1x2o4xOCzgFBOmxNwyBRZYHA3B1tEieXzG7ICnZG5Cmko9l2o864J8ZbHhw==</ds:X509Certificate></ds:X509Data></ds:KeyInfo><ds:Object><xades:QualifyingProperties xmlns:xades="http://uri.etsi.org/01903/v1.3.2#" Target="#id-8a3a021ddc6be25336c9c5bd69866251"><xades:SignedProperties Id="xades-id-8a3a021ddc6be25336c9c5bd69866251"><xades:SignedSignatureProperties><xades:SigningTime>2015-06-01T12:00:00Z</xades:SigningTime><xades:SigningCertificateV2><xades:Cert><xades:CertDigest><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha512"/><ds:DigestValue>kP3re5dvX+1X214fXPQsjcuY83pT95iCHtDNLqsu8zIlx1WjHieuFj9yLD2o8AfT84wRaE2JSSWpx1RlD+we/A==</ds:DigestValue></xades:CertDigest><xades:IssuerSerialV2>MFkwVKRSMFAxEjAQBgNVBAMMCVNESS02LjEuMTEVMBMGA1UECgwMVFNQLTYuMSBOYW1lMRYwFAYDVQQLDA1DRVJUIEZPUiBURVNUMQswCQYDVQQGEwJDWgIBJQ==</xades:IssuerSerialV2></xades:Cert></xades:SigningCertificateV2></xades:SignedSignatureProperties><xades:SignedDataObjectProperties><xades:DataObjectFormat ObjectReference="#r-id-8a3a021ddc6be25336c9c5bd69866251-1"><xades:MimeType>application/octet-stream</xades:MimeType></xades:DataObjectFormat></xades:SignedDataObjectProperties></xades:SignedProperties><xades:UnsignedProperties><xades:UnsignedSignatureProperties><xades:SignatureTimeStamp Id="TS-11568168-ffd4-40f0-aace-4d520801e774"><ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/><xades:EncapsulatedTimeStamp Id="ETS-11568168-ffd4-40f0-aace-4d520801e774">MIIHUwYJKoZIhvcNAQcCoIIHRDCCB0ACAQMxDzANBglghkgBZQMEAgEFADByBgsqhkiG9w0BCRABBKBjBGEwXwIBAQYDKgMEMDEwDQYJYIZIAWUDBAIB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Ku3OklvtNgaP88UnnhzjQg+ls/hhDeDJaHL4LXCToD5IbyT2T6hd/z1Jk7g+u6Ytcw9RVGceVJJocv2I05gy+/cq/ryq9GS6RJANk09d9zX3i40s2sHTNQh1x2STfkNTbjajwUymg5HPr7O80IxAmHIcvNJOywuiYDUuAmwoQAUsT/FimIjLCTipaYM14xJxzevwmjDORSKDVHvK3BN4tvfIKfGFYA==</xades:EncapsulatedTimeStamp></xades:SignatureTimeStamp></xades:UnsignedSignatureProperties></xades:UnsignedProperties></xades:QualifyingProperties></ds:Object></ds:Signature></FILE> \ No newline at end of file
diff --git a/moaSig/moa-sig/src/test/resources/testdata/xades/6.1.2-TEST FILE.xml b/moaSig/moa-sig/src/test/resources/testdata/xades/6.1.2-TEST FILE.xml
new file mode 100644
index 0000000..db35f7f
--- /dev/null
+++ b/moaSig/moa-sig/src/test/resources/testdata/xades/6.1.2-TEST FILE.xml
@@ -0,0 +1,3 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?><FILE>
+ <TEST>SAMPLE</TEST>
+<ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#" Id="id-d05fc348010c29c92ec8f90f9bc4acd0"><ds:SignedInfo><ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/><ds:SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"/><ds:Reference Id="r-id-d05fc348010c29c92ec8f90f9bc4acd0-1" URI=""><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2002/06/xmldsig-filter2"><dsig-filter2:XPath xmlns:dsig-filter2="http://www.w3.org/2002/06/xmldsig-filter2" Filter="subtract">/descendant::ds:Signature</dsig-filter2:XPath></ds:Transform><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>kfsK43NJaZNZwDUkwbME+Sn+ziU/Rl4K0N2bvfbuwvk=</ds:DigestValue></ds:Reference><ds:Reference Type="http://uri.etsi.org/01903#SignedProperties" URI="#xades-id-d05fc348010c29c92ec8f90f9bc4acd0"><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>bnqemGyn1ajMxi7Ix8qEgZS3/hJk/chUlBKyiASjgbg=</ds:DigestValue></ds:Reference></ds:SignedInfo><ds:SignatureValue Id="value-id-d05fc348010c29c92ec8f90f9bc4acd0">R1N4B5b87oevUG/Zpq/rtAtvO2daILHiCH8WfjTxQh7ATkOn+Z76uaa3jNUYNA2iKx5srhd2tATiSVJx9zAORe7R8KLs81b0rWXSAv8XVB8VPB3BJ8LyfzsIJ75W05i1HixSJVPWc0dLVYuv3sGtLItqafwgHlvqh3MOZadsO3xvtLBwmpb1LeSg//1f+Qog+ZuyaFCmnguIKQsglQu1QX8FhiRDSeUHlqO/aZ8lp1pNCZ4UGPuibp+ug3hFh8mNXrGW3nvjy2PZh4D9aeymbBGzR9efdIXcXGICpS/EdqwdoIHMkd5PXS4icwwmhWEAFzsCwyntzg1egfiLb/I+/A==</ds:SignatureValue><ds:KeyInfo><ds:X509Data><ds:X509Certificate>MIIEMTCCAxmgAwIBAgIBJzANBgkqhkiG9w0BAQsFADBQMRIwEAYDVQQDDAlTREktNi4xLjIxFTATBgNVBAoMDFRTUC02LjEgTmFtZTEWMBQGA1UECwwNQ0VSVCBGT1IgVEVTVDELMAkGA1UEBhMCQ1owHhcNMTYwMzIxMDAwMDIyWhcNMjYwMzIxMDAwMDIyWjBaMRgwFgYDVQQDDA9DRVJULVRFU1QtNi4xLjIxGTAXBgNVBAoMEFRMNiBPcmdhbml6YXRpb24xFjAUBgNVBAsMDUNFUlQgRk9SIFRFU1QxCzAJBgNVBAYTAkNaMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA0IwElklCdbGwAORY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MuPMU0/vwdXzWuJXO2GZ6siNXtFD5EiV0Y9zs8dYt73btuT5Q7D+fGOa50OaEd7oN51E7K5hxeU2DoHYcZHBFHbVCBBbw5JS4AQcIW0mQ==</ds:X509Certificate></ds:X509Data></ds:KeyInfo><ds:Object><xades:QualifyingProperties xmlns:xades="http://uri.etsi.org/01903/v1.3.2#" Target="#id-d05fc348010c29c92ec8f90f9bc4acd0"><xades:SignedProperties Id="xades-id-d05fc348010c29c92ec8f90f9bc4acd0"><xades:SignedSignatureProperties><xades:SigningTime>2015-06-01T12:00:00Z</xades:SigningTime><xades:SigningCertificateV2><xades:Cert><xades:CertDigest><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha512"/><ds:DigestValue>Gy3/eek3RdDrB3e8/xwrtdB7ZmOPVjVWZVJhBf1vqo5xxzH/sx3Ah2H1WHFqsyz73/9Yo6jzMBnWBIVDZPFACg==</ds:DigestValue></xades:CertDigest><xades:IssuerSerialV2>MFkwVKRSMFAxEjAQBgNVBAMMCVNESS02LjEuMjEVMBMGA1UECgwMVFNQLTYuMSBOYW1lMRYwFAYDVQQLDA1DRVJUIEZPUiBURVNUMQswCQYDVQQGEwJDWgIBJw==</xades:IssuerSerialV2></xades:Cert></xades:SigningCertificateV2></xades:SignedSignatureProperties><xades:SignedDataObjectProperties><xades:DataObjectFormat ObjectReference="#r-id-d05fc348010c29c92ec8f90f9bc4acd0-1"><xades:MimeType>application/octet-stream</xades:MimeType></xades:DataObjectFormat></xades:SignedDataObjectProperties></xades:SignedProperties><xades:UnsignedProperties><xades:UnsignedSignatureProperties><xades:SignatureTimeStamp Id="TS-86ebf414-f6b1-4545-86ff-2eb3a0b4e093"><ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/><xades:EncapsulatedTimeStamp Id="ETS-86ebf414-f6b1-4545-86ff-2eb3a0b4e093">MIIHUwYJKoZIhvcNAQcCoIIHRDCCB0ACAQMxDzANBglghkgBZQMEAgEFADByBg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LOalNvFCjrv45WBYHjBYMvleZiWBuorAg8kX1+i6jFOZqVscLGoWI8u7Met/CPaPrdwPdWA1VXPPwjYlqmj+wTUzjhbnBGS5564JoAIvP8HuYXQurPHJq8aIdEFmjCad4ZMZ1FqezlqCJWAeitSFUYWop3smF7efaelfpXLeNMz7hF8dfhCiazRAvyguvi17QXgZC4EZ+gdHzxW9KF2vSNk7x/cVn4i8C1ofzCd70XnUclA1McTzL4ZrP6XZXsiHgWOg6hX2u0mU6eFb2ZlfA==</xades:EncapsulatedTimeStamp></xades:SignatureTimeStamp></xades:UnsignedSignatureProperties></xades:UnsignedProperties></xades:QualifyingProperties></ds:Object></ds:Signature></FILE> \ No newline at end of file
diff --git a/moaSig/moa-sig/src/test/resources/testdata/xades/6.1.3-TEST FILE.xml b/moaSig/moa-sig/src/test/resources/testdata/xades/6.1.3-TEST FILE.xml
new file mode 100644
index 0000000..70be8bd
--- /dev/null
+++ b/moaSig/moa-sig/src/test/resources/testdata/xades/6.1.3-TEST FILE.xml
@@ -0,0 +1,3 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?><FILE>
+ <TEST>SAMPLE</TEST>
+<ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#" Id="id-fd8e16fdd821687224cf29370819cb26"><ds:SignedInfo><ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/><ds:SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"/><ds:Reference Id="r-id-fd8e16fdd821687224cf29370819cb26-1" URI=""><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2002/06/xmldsig-filter2"><dsig-filter2:XPath xmlns:dsig-filter2="http://www.w3.org/2002/06/xmldsig-filter2" Filter="subtract">/descendant::ds:Signature</dsig-filter2:XPath></ds:Transform><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>kfsK43NJaZNZwDUkwbME+Sn+ziU/Rl4K0N2bvfbuwvk=</ds:DigestValue></ds:Reference><ds:Reference Type="http://uri.etsi.org/01903#SignedProperties" URI="#xades-id-fd8e16fdd821687224cf29370819cb26"><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>cTtAdA9j+lrpIM65j1SemxlNKDvCzSAZD5r+9IASfOQ=</ds:DigestValue></ds:Reference></ds:SignedInfo><ds:SignatureValue Id="value-id-fd8e16fdd821687224cf29370819cb26">VHGRwi86YP48M3f8BRZF6Dh8SmwB+ksxhWzrYARI4c0eC5lBUoXy+4uf2kcGVbCPQqbnvKFZ9L8TJQ3dd/9fMIT5tr8ekeP8StuO1X2eQ2LQnueLsVo/RJ1kMIUFY+OTNItP8fZood4ykRmwLiArzbCKWEMArKd5b2MMlu3CVUf4j3BR7qdu2oZOsED6665pGS/Fba3BWRJR1A99iB3txYRSlbRa0fiarOhrxyz2lLtptBoJn/NCM4wF0db4nh7ub4IMCGmrDPN1/6Tn+vY+X3yarSY47VfBAW6m2vxlQ+I1Kt3Vl/hzKOBh9VhBjFfGGekx4TddsQ6qPf5YXiwGxA==</ds:SignatureValue><ds:KeyInfo><ds:X509Data><ds:X509Certificate>MIIEWjCCA0KgAwIBAgIBKTANBgkqhkiG9w0BAQsFADBQMRIwEAYDVQQDDAlTREktNi4xLjMxFTATBgNVBAoMDFRTUC00LjEgTmFtZTEWMBQGA1UECwwNQ0VSVCBGT1IgVEVTVDELMAkGA1UEBhMCQ1owHhcNMjAwMzIxMDAwMDIyWhcNMjIwMzIxMDAwMDIyWjBaMRgwFgYDVQQDDA9DRVJULVRFU1QtNi4xLjMxGTAXBgNVBAoMEFRMNiBPcmdhbml6YXRpb24xFjAUBgNVBAsMDUNFUlQgRk9SIFRFU1QxCzAJBgNVBAYTAkNaMIIBIjANBgkqhk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ER0CVjwQBkclwN/AiYe0CStHBcb8GhewULog8cJuvmstDfQSZIqzOegnDgbuZlLD7aUuQM7plHInFeXZtolcUrdc2HclSXeWByZvz6DbqfTM/6EjRTXtlm5lE9PJzcqJDpvVZtWIPBAnqyGGHngaZXACyiCw2tCfEEJERuG5/U2ngPcIvi8taLjCPxMGyP418d1TXlg==</ds:X509Certificate></ds:X509Data></ds:KeyInfo><ds:Object><xades:QualifyingProperties xmlns:xades="http://uri.etsi.org/01903/v1.3.2#" Target="#id-fd8e16fdd821687224cf29370819cb26"><xades:SignedProperties Id="xades-id-fd8e16fdd821687224cf29370819cb26"><xades:SignedSignatureProperties><xades:SigningTime>2021-03-21T00:01:14Z</xades:SigningTime><xades:SigningCertificateV2><xades:Cert><xades:CertDigest><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha512"/><ds:DigestValue>7YOTE0dG46CiBWtiyeUS64Z0Fsa5WJlYJutVk0e7v93wJNQgVL599wYLuydpC183xYwE0SX1CA6o1MbRk8kwnw==</ds:DigestValue></xades:CertDigest><xades:IssuerSerialV2>MFkwVKRSMFAxEjAQBgNVBAMMCVNESS02LjEuMzEVMBMGA1UECgwMVFNQLTQuMSBOYW1lMRYwFAYDVQQLDA1DRVJUIEZPUiBURVNUMQswCQYDVQQGEwJDWgIBKQ==</xades:IssuerSerialV2></xades:Cert></xades:SigningCertificateV2></xades:SignedSignatureProperties><xades:SignedDataObjectProperties><xades:DataObjectFormat ObjectReference="#r-id-fd8e16fdd821687224cf29370819cb26-1"><xades:MimeType>application/octet-stream</xades:MimeType></xades:DataObjectFormat></xades:SignedDataObjectProperties></xades:SignedProperties></xades:QualifyingProperties></ds:Object></ds:Signature></FILE> \ No newline at end of file
diff --git a/moaSig/moa-sig/src/test/resources/testdata/xades/6.2.1-TEST FILE.xml b/moaSig/moa-sig/src/test/resources/testdata/xades/6.2.1-TEST FILE.xml
new file mode 100644
index 0000000..4844c6e
--- /dev/null
+++ b/moaSig/moa-sig/src/test/resources/testdata/xades/6.2.1-TEST FILE.xml
@@ -0,0 +1,3 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?><FILE>
+ <TEST>SAMPLE</TEST>
+<ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#" Id="id-b435cc0559af7df1a96b80857b5d437f"><ds:SignedInfo><ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/><ds:SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"/><ds:Reference Id="r-id-b435cc0559af7df1a96b80857b5d437f-1" URI=""><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2002/06/xmldsig-filter2"><dsig-filter2:XPath xmlns:dsig-filter2="http://www.w3.org/2002/06/xmldsig-filter2" Filter="subtract">/descendant::ds:Signature</dsig-filter2:XPath></ds:Transform><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>kfsK43NJaZNZwDUkwbME+Sn+ziU/Rl4K0N2bvfbuwvk=</ds:DigestValue></ds:Reference><ds:Reference Type="http://uri.etsi.org/01903#SignedProperties" URI="#xades-id-b435cc0559af7df1a96b80857b5d437f"><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>j8sfIA+RcZPze2qBJcqNHabfCFvq6coiyLbcixOgI+o=</ds:DigestValue></ds:Reference></ds:SignedInfo><ds:SignatureValue Id="value-id-b435cc0559af7df1a96b80857b5d437f">aDlOOYRPIJqarKlfgtyk581cbt3s30gdL9B2SYPhMEMNt7/6d1Ab1R0n7OoL0muojZqapy4+HVQ6D5yUcC64/F2WCSSO6J4RW56qUVPhWzmpcSHQG9+5E8umQZsDBHCA8trbbiyyNVtZVFPke9zwnfqZoJ3oWbU2kb9+VhX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q4vELHD5t4vFucrE4M40GfbPUiyatmWr7G+Mg3JEie24l6YGWD7zG/9ksxvPwjIe2GXArRXm6QAB+IQeRTBO1RwqEPZngUb2Pmyk7KHnZ5OvAbqDYUxSMKNxR4zGeLHKUIEn5MpsZ+iz9QIEuFnAYJSr96lBpLjQMJu5HFaMg8ZUFJ42D7XaNIwx6NcKwrU1b+U3uVDK1RZ+dX4pSe4IqL1hLn+/5OrOEy8e2R2BTHsqtBLL2jXIUeKxxPVs2LAgMBAAGjQjBAMA4GA1UdDwEB/wQEAwIBBjAdBgNVHQ4EFgQUk9IaY4K3M8J6qLd/OyGLvgIA2qswDwYDVR0TAQH/BAUwAwEB/zANBgkqhkiG9w0BAQsFAAOCAQEAQpNr2++LWNx8YbLxAAIxpRvtDeno2TeMEEcwXfFT4WNbpqmMfOWnVbO4keszxzact6vpNifbUeNsbsJ/KMrS36+3ocP32qBpiqDOAfq8+XoNeQVev3jfGM2UGfWZthVk2NjBNgGWp2JANGo9FKCB6yvzHTUa243DPQEehbsnWzSoOkhcAL9ipG1g9gFkS1sdr7CIZ4B9XV8rGgTjfHqsYDKztLMOjOFeSm5XpjbGmspUPE80pYCfq8mO/GBrarM2yI1FksiIeSvegV1X+c+bHzKAKxwloCjuvhi02wLZWsCcxzDAEl6vaFJ7I37TUXvX6vMtpW6Ab3oWP5fWz2JD8A==</ds:X509Certificate></ds:X509Data></ds:KeyInfo><ds:Object><xades:QualifyingProperties xmlns:xades="http://uri.etsi.org/01903/v1.3.2#" Target="#id-b435cc0559af7df1a96b80857b5d437f"><xades:SignedProperties Id="xades-id-b435cc0559af7df1a96b80857b5d437f"><xades:SignedSignatureProperties><xades:SigningTime>2021-03-21T00:01:14Z</xades:SigningTime><xades:SigningCertificateV2><xades:Cert><xades:CertDigest><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha512"/><ds:DigestValue>DFF1sxCM58UNIMKnjjYZogn77elO3PO2U4MFD1ExyEKIprr6mutvwMX3agStPQfHZgAtIpMEiHJ+nsIC9O0ssA==</ds:DigestValue></xades:CertDigest><xades:IssuerSerialV2>MFkwVKRSMFAxEjAQBgNVBAMMCVNESS02LjIuMTEVMBMGA1UECgwMVFNQLTYuMiBOYW1lMRYwFAYDVQQLDA1DRVJUIEZPUiBURVNUMQswCQYDVQQGEwJDWgIBAw==</xades:IssuerSerialV2></xades:Cert></xades:SigningCertificateV2></xades:SignedSignatureProperties><xades:SignedDataObjectProperties><xades:DataObjectFormat ObjectReference="#r-id-b435cc0559af7df1a96b80857b5d437f-1"><xades:MimeType>application/octet-stream</xades:MimeType></xades:DataObjectFormat></xades:SignedDataObjectProperties></xades:SignedProperties></xades:QualifyingProperties></ds:Object></ds:Signature></FILE> \ No newline at end of file
diff --git a/moaSig/moa-sig/src/test/resources/testdata/xades/6.2.2-TEST FILE.xml b/moaSig/moa-sig/src/test/resources/testdata/xades/6.2.2-TEST FILE.xml
new file mode 100644
index 0000000..3a9084e
--- /dev/null
+++ b/moaSig/moa-sig/src/test/resources/testdata/xades/6.2.2-TEST FILE.xml
@@ -0,0 +1,3 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?><FILE>
+ <TEST>SAMPLE</TEST>
+<ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#" Id="id-3005d59a17f96a71b6d26bc922b3e712"><ds:SignedInfo><ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/><ds:SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"/><ds:Reference Id="r-id-3005d59a17f96a71b6d26bc922b3e712-1" URI=""><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2002/06/xmldsig-filter2"><dsig-filter2:XPath xmlns:dsig-filter2="http://www.w3.org/2002/06/xmldsig-filter2" Filter="subtract">/descendant::ds:Signature</dsig-filter2:XPath></ds:Transform><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>kfsK43NJaZNZwDUkwbME+Sn+ziU/Rl4K0N2bvfbuwvk=</ds:DigestValue></ds:Reference><ds:Reference Type="http://uri.etsi.org/01903#SignedProperties" URI="#xades-id-3005d59a17f96a71b6d26bc922b3e712"><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>DX/1LzQid6kUpfn70jW7WKrxJ9ht58Q9Ue0N4Qt3byU=</ds:DigestValue></ds:Reference></ds:SignedInfo><ds:SignatureValue Id="value-id-3005d59a17f96a71b6d26bc922b3e712">JmYtzFQ2CjQ2UiLtfl50NiNGcIHWkzCgr6IaAscAINNA1EOcpmIuglsNGG0zE9h6eI3vz+4Yv9AJDVUg0czHylMPAOJ4gj16zHGJquMSPiG0y6M+Th6KHK4fJU05z3IwpsEwLnDXIuRRdREcVxWbSlo9Ex2D6hJ0LjuR/g66lFIggTqniv1Up6R0Uwjw9x5hA5/9afWnZ+0q5pkeX+LcoSewUx16LEfwBYFkfvMZjPPLLcORTxOKKZIH1NM2WREevvfXEVRycgsvQHVzu+uVBuL6xZDkXI5X00OuJapulCWcNkbohkq6ysc4ycyGinji1DuEzzYFe5InXWBHdvtMng==</ds:SignatureValue><ds:KeyInfo><ds:X509Data><ds:X509Certificate>MIIEQTCCAymgAwIBAgIBBTANBgkqhkiG9w0BAQsFADBQMRIwEAYDVQQDDAlTREktNi4yLjIxFTATBgNVBAoMDFRTUC02LjIgTmFtZTEWMBQGA1UECwwNQ0VSVCBGT1IgVEVTVDELMAkGA1UEBhMCQ1owHhcNMjAwMzIxMDAwMDEyWhcNMjIwMzIxMDAwMDEyWjBaMRgwFgYDVQQDDA9DRVJULVRFU1QtNi4yLjIxGTAXBgNVBAoMEFRMNiBPcmdhbml6YXRpb24xFjAUBgNVBAsMDUNFUlQgRk9SIFRFU1QxCzAJBg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EY924Ajz9TiQSe4QxojevZ45ahtFhXhaWO09rrBtOSzRH+owsAWie+Xrgkjpl8opdFlt9rh4owSShk0nz8lWeF3sGRwZZd98Jouby946JLZcfZq7sJ+qv9ne+i3XLlVuVYpZ5BkCmjjbjZxD+o8c2NUksnUMBCWN+k/o72WQsPGrcrN4nD3FQ==</ds:X509Certificate></ds:X509Data></ds:KeyInfo><ds:Object><xades:QualifyingProperties xmlns:xades="http://uri.etsi.org/01903/v1.3.2#" Target="#id-3005d59a17f96a71b6d26bc922b3e712"><xades:SignedProperties Id="xades-id-3005d59a17f96a71b6d26bc922b3e712"><xades:SignedSignatureProperties><xades:SigningTime>2021-03-21T00:01:15Z</xades:SigningTime><xades:SigningCertificateV2><xades:Cert><xades:CertDigest><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha512"/><ds:DigestValue>06fA6nB5v1+KD9tCojJIsTX/csz/qfDzP02H1sRFsQ7pnkTAH7jssrNTr66XoZ4vGR5ngenrIeeHVRRG/ST9qw==</ds:DigestValue></xades:CertDigest><xades:IssuerSerialV2>MFkwVKRSMFAxEjAQBgNVBAMMCVNESS02LjIuMjEVMBMGA1UECgwMVFNQLTYuMiBOYW1lMRYwFAYDVQQLDA1DRVJUIEZPUiBURVNUMQswCQYDVQQGEwJDWgIBBQ==</xades:IssuerSerialV2></xades:Cert></xades:SigningCertificateV2></xades:SignedSignatureProperties><xades:SignedDataObjectProperties><xades:DataObjectFormat ObjectReference="#r-id-3005d59a17f96a71b6d26bc922b3e712-1"><xades:MimeType>application/octet-stream</xades:MimeType></xades:DataObjectFormat></xades:SignedDataObjectProperties></xades:SignedProperties></xades:QualifyingProperties></ds:Object></ds:Signature></FILE> \ No newline at end of file
diff --git a/moaSig/moa-sig/src/test/resources/testdata/xades/6.2.3-TEST FILE.xml b/moaSig/moa-sig/src/test/resources/testdata/xades/6.2.3-TEST FILE.xml
new file mode 100644
index 0000000..828e7c7
--- /dev/null
+++ b/moaSig/moa-sig/src/test/resources/testdata/xades/6.2.3-TEST FILE.xml
@@ -0,0 +1,3 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?><FILE>
+ <TEST>SAMPLE</TEST>
+<ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#" Id="id-046fa738ceafc7baf2cd7350c80ca2f9"><ds:SignedInfo><ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/><ds:SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"/><ds:Reference Id="r-id-046fa738ceafc7baf2cd7350c80ca2f9-1" URI=""><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2002/06/xmldsig-filter2"><dsig-filter2:XPath xmlns:dsig-filter2="http://www.w3.org/2002/06/xmldsig-filter2" Filter="subtract">/descendant::ds:Signature</dsig-filter2:XPath></ds:Transform><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>kfsK43NJaZNZwDUkwbME+Sn+ziU/Rl4K0N2bvfbuwvk=</ds:DigestValue></ds:Reference><ds:Reference Type="http://uri.etsi.org/01903#SignedProperties" URI="#xades-id-046fa738ceafc7baf2cd7350c80ca2f9"><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>js3STFcb2DKIsIkiRnwxGSHX605dfXt8idN284bkpFo=</ds:DigestValue></ds:Reference></ds:SignedInfo><ds:SignatureValue Id="value-id-046fa738ceafc7baf2cd7350c80ca2f9">Ptl4rAFpPB6qqVMJ27rGYDptqAvqgH8aHHB8aEDKMcF3dyaVC8gczcKfGpP4EgjF94GSga4btK+2hCu2Ir+s9zjMQIlFmQIVCv8EoYzGWgR7tVfHeiKQbb2Z5NXJNOtzY/He+Vm/GlIksSFiMzNpkd90FkMS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6tJV+9zcAsi43w3hdpbJGrXj/QYKdC8fTk/dmyEXpMuWJKsnjLDuNQ1+jdVnyYKm9TRP1usj4AKihxjOunwD7vIXCdCTiHk8axbvl08l3qv+pABaCWIBPpDPxCU83wVrz/60byEIzxjO9PMFRD7yszGFJnBX+Mi1yDbkeunsTrCnliVCdfR6+Em3PLowJtlTdrUsDhPMrc6xrMI/93o6kpkTm4Kv7kMKTR7U/iDZMHHXySDCcd2Y3+Xu1OXa7YFSeyv0pdlAgMBAAGjQjBAMA4GA1UdDwEB/wQEAwIBBjAdBgNVHQ4EFgQUxaFpwycf2J+9fKUixhzlLrB4BoAwDwYDVR0TAQH/BAUwAwEB/zANBgkqhkiG9w0BAQsFAAOCAQEAXIhgXJfIAliHN6jAIFhVUNH/N5e20WR85EpPgKrBECBJtP+4Q8WcaCdjdVl+2xTPSFVQWWcwHlmAhUhrJfbU93sEgQUHz2rEceHv7eSkq8CKcUz350pbEPNgvfiUKyb+H1tPRHHC/7waMMxkOxvB2WBzz012WHQgvNVRRCdM5DgXNUWjPwCHtCdyfuMd1xMwsRvLp1L4ANdAmolRZ/jD4XdAuJrMrLri7Tt13KsP+J9BAnKqm6JTaZ0J1qzl+REzaSKHmmVHHnzD0h0tLRgoGaJW9cDA7LE7GPAxO1VwZsVxQDvnCRG45HRy0YIjB3E7+Wva9u5xB2XDq5Rid4VOQA==</ds:X509Certificate></ds:X509Data></ds:KeyInfo><ds:Object><xades:QualifyingProperties xmlns:xades="http://uri.etsi.org/01903/v1.3.2#" Target="#id-046fa738ceafc7baf2cd7350c80ca2f9"><xades:SignedProperties Id="xades-id-046fa738ceafc7baf2cd7350c80ca2f9"><xades:SignedSignatureProperties><xades:SigningTime>2021-03-21T00:01:15Z</xades:SigningTime><xades:SigningCertificateV2><xades:Cert><xades:CertDigest><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha512"/><ds:DigestValue>4b9P731vJn9uyrPyvuMxGXEbZ5f4zzp1GQAv8UqosVdJqbaYI/aVKL2eaI/+AyVZXVniketPhxO1xJqaUcPFDg==</ds:DigestValue></xades:CertDigest><xades:IssuerSerialV2>MFkwVKRSMFAxEjAQBgNVBAMMCVNESS02LjIuMzEVMBMGA1UECgwMVFNQLTYuMiBOYW1lMRYwFAYDVQQLDA1DRVJUIEZPUiBURVNUMQswCQYDVQQGEwJDWgIBBw==</xades:IssuerSerialV2></xades:Cert></xades:SigningCertificateV2></xades:SignedSignatureProperties><xades:SignedDataObjectProperties><xades:DataObjectFormat ObjectReference="#r-id-046fa738ceafc7baf2cd7350c80ca2f9-1"><xades:MimeType>application/octet-stream</xades:MimeType></xades:DataObjectFormat></xades:SignedDataObjectProperties></xades:SignedProperties></xades:QualifyingProperties></ds:Object></ds:Signature></FILE> \ No newline at end of file
diff --git a/moaSig/moa-sig/src/test/resources/testdata/xades/6.2.4-TEST FILE.xml b/moaSig/moa-sig/src/test/resources/testdata/xades/6.2.4-TEST FILE.xml
new file mode 100644
index 0000000..bd10d63
--- /dev/null
+++ b/moaSig/moa-sig/src/test/resources/testdata/xades/6.2.4-TEST FILE.xml
@@ -0,0 +1,3 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?><FILE>
+ <TEST>SAMPLE</TEST>
+<ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#" Id="id-320516c7b14cc750fee9ef1b074ff630"><ds:SignedInfo><ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/><ds:SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"/><ds:Reference Id="r-id-320516c7b14cc750fee9ef1b074ff630-1" URI=""><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2002/06/xmldsig-filter2"><dsig-filter2:XPath xmlns:dsig-filter2="http://www.w3.org/2002/06/xmldsig-filter2" Filter="subtract">/descendant::ds:Signature</dsig-filter2:XPath></ds:Transform><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>kfsK43NJaZNZwDUkwbME+Sn+ziU/Rl4K0N2bvfbuwvk=</ds:DigestValue></ds:Reference><ds:Reference Type="http://uri.etsi.org/01903#SignedProperties" URI="#xades-id-320516c7b14cc750fee9ef1b074ff630"><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>AYFhjxw24h0buGaZgZj0SLKYi++CgB651rZkQLn271A=</ds:DigestValue></ds:Reference></ds:SignedInfo><ds:SignatureValue Id="value-id-320516c7b14cc750fee9ef1b074ff630">IKFZ2PZ7tPdXjtaZDCYGDXMWru1APKKrKjHVbSC7K/FrwJAMs9LKBWZfHnVbZvHbHv6+Ds1PJZ5MZ0kxTXDnN69SHJ09kAeCcbJo9pCTnYmJwTPhikAMsZQDVLc++RTh/azsGXgNGq+ZLY19wh39ZAzdOT/oLvwzvjdwU6LMz15wrx+qdj12HmWnOV3102rXo5HxCqad0snA/jwcUx3AbHeQu9n7nuTzWQs9ePnvsse2SG806lVbIUlppMBuPoDqGwTxi8+YzUWzhQ1cgrI7MErL9xx7QWN0wfYzrQI0BNosJpVeAQMTRvghpnbDpGwnNO0/f0QLUyMMAb1+p8sN2A==</ds:SignatureValue><ds:KeyInfo><ds:X509Data><ds:X509Certificate>MIIENjCCAx6gAwIBAgIBCTANBgkqhkiG9w0BAQsFADBQMRIwEAYDVQQDDAlTREktNi4yLjQxFTATBgNVBAoMDFRTUC02LjIgTmFtZTEWMBQGA1UECwwNQ0VSVCBGT1IgVEVTVDELMAkGA1UEBhMCQ1owHhcNMTYwMzIxMDAwMDEzWhcNMjYwMzIxMDAwMDEzWjBaMRgwFgYDVQQDDA9DRVJULVRFU1QtNi4yLjQxGTAXBgNVBAoMEFRMNiBPcmdhbml6YXRpb24xFjAUBgNVBAsMDUNFUlQgRk9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dqPyp7GQO7j3UxgNkrCnR97Uc7ZtePxkYWbt1Bcp24qo2hvmWONQquJvdAfiKBhGHp3J9HFmV72l6xt0lJyuADszOR8nXl5YAz1UL9mTJ+4JzCMtxVXNcbMX7DWZIEBIG88Z6FiESsc5ih3/NXKPBlbhqdGbIsQEgl5gfo8BpsPm4/biX42gKG8465C3f3g==</ds:X509Certificate></ds:X509Data></ds:KeyInfo><ds:Object><xades:QualifyingProperties xmlns:xades="http://uri.etsi.org/01903/v1.3.2#" Target="#id-320516c7b14cc750fee9ef1b074ff630"><xades:SignedProperties Id="xades-id-320516c7b14cc750fee9ef1b074ff630"><xades:SignedSignatureProperties><xades:SigningTime>2015-06-01T12:00:00Z</xades:SigningTime><xades:SigningCertificateV2><xades:Cert><xades:CertDigest><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha512"/><ds:DigestValue>cE0X0wsh5Gss/0Y817DXtrQZxkwJamDJuSj8J2fryGVCT7AGTnTYDgXEadHY3xFFfa8pGOEFw9pJ81SqMeSbdg==</ds:DigestValue></xades:CertDigest><xades:IssuerSerialV2>MFkwVKRSMFAxEjAQBgNVBAMMCVNESS02LjIuNDEVMBMGA1UECgwMVFNQLTYuMiBOYW1lMRYwFAYDVQQLDA1DRVJUIEZPUiBURVNUMQswCQYDVQQGEwJDWgIBCQ==</xades:IssuerSerialV2></xades:Cert></xades:SigningCertificateV2></xades:SignedSignatureProperties><xades:SignedDataObjectProperties><xades:DataObjectFormat ObjectReference="#r-id-320516c7b14cc750fee9ef1b074ff630-1"><xades:MimeType>application/octet-stream</xades:MimeType></xades:DataObjectFormat></xades:SignedDataObjectProperties></xades:SignedProperties><xades:UnsignedProperties><xades:UnsignedSignatureProperties><xades:SignatureTimeStamp Id="TS-9fd96bb1-b02f-427a-9ca1-c31baca5de39"><ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/><xades:EncapsulatedTimeStamp Id="ETS-9fd96bb1-b02f-427a-9ca1-c31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QELBQAEggEAKRVnsS1z3S04PxT/2C0VRPH2hrpYvisx00f2bICrfVdcD+BHpsPxRy8YrDuqL8yIjpXnHvXLzx9Wgd3CVK+amVtxTZxgas3Oi3FXXRuqs3iSfkSg/rk+djuM91tdCpa+35qUy39wt5Tk9cuL8CSNmaavZ0KD25mXbujyU/TjtPxnHPXvj6U9Rb5pVHkN/qsxk4nZIrtarva+Ehh74LO+1HEW0Xnlk6d9pXNqpx2j0f/4+M//lJ2W4RoUT5fKawx+Giq5r7Cry90sC8bT/Cafi3Df6UUxjoIH6qHzk/gSFePnwsOqjEVFtq9nk617SoH+SlmP5dXIBrJ/TzwIh8E0aw==</xades:EncapsulatedTimeStamp></xades:SignatureTimeStamp></xades:UnsignedSignatureProperties></xades:UnsignedProperties></xades:QualifyingProperties></ds:Object></ds:Signature></FILE> \ No newline at end of file
diff --git a/moaSig/moa-sig/src/test/resources/testdata/xades/6.2.5-TEST FILE.xml b/moaSig/moa-sig/src/test/resources/testdata/xades/6.2.5-TEST FILE.xml
new file mode 100644
index 0000000..a7eacbd
--- /dev/null
+++ b/moaSig/moa-sig/src/test/resources/testdata/xades/6.2.5-TEST FILE.xml
@@ -0,0 +1,3 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?><FILE>
+ <TEST>SAMPLE</TEST>
+<ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#" Id="id-de7133d4409ea6a705fe255d9e4e3c83"><ds:SignedInfo><ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/><ds:SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"/><ds:Reference Id="r-id-de7133d4409ea6a705fe255d9e4e3c83-1" URI=""><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2002/06/xmldsig-filter2"><dsig-filter2:XPath xmlns:dsig-filter2="http://www.w3.org/2002/06/xmldsig-filter2" Filter="subtract">/descendant::ds:Signature</dsig-filter2:XPath></ds:Transform><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>kfsK43NJaZNZwDUkwbME+Sn+ziU/Rl4K0N2bvfbuwvk=</ds:DigestValue></ds:Reference><ds:Reference Type="http://uri.etsi.org/01903#SignedProperties" URI="#xades-id-de7133d4409ea6a705fe255d9e4e3c83"><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>9IsSavloww6fzWx4nOUIABkNs9cMmP+bwTJXLJnapJ8=</ds:DigestValue></ds:Reference></ds:SignedInfo><ds:SignatureValue Id="value-id-de7133d4409ea6a705fe255d9e4e3c83">K1bun3TGjvLcxk8upE28nZav2QlS/dfR9pTiSskccWkygm6mTWKYKmKcsTS3xIDVF2OJ6bvIz7XWcfGoXHYt+QX9OSYr2f1KxLWd8AcLhJpK6lI1UmHinTIg3PF1TZE8XfFQvRuDCLgKYdTvZLcL5IPsjbsBYAH6cLTzD/S46ZfpTQiGyhdMmMvdqv2v5Id9hkwq9VngSqzFDm/1Fw4f3hq73BIvKcCiQh61jKrxVk50Uz3/H94UgCFUCP2HockeRREDWsMDkJPhlwY7TyNLOlaR0Zq2RrY5VNv5MI2vChmFqPRACkf4KGEpW9Vuy/RBvtSWEAA+dXTiw8UJDncUbQ==</ds:SignatureValue><ds:KeyInfo><ds:X509Data><ds:X509Certificate>MIIESzCCAzOgAwIBAgIBCzANBgkqhkiG9w0BAQsFADBQMRIwEAYDVQQDDAlTREktNi4yLjUxFTATBgNVBAoMDFRTUC02LjIgTmFtZTEWMBQGA1UECwwNQ0VSVCBGT1IgVEVTVDELMAkGA1UEBhMCQ1owHhcNMjAwMzIxMDAwMDE0WhcNMjIwMzIxMDAwMDE0WjBaMRgwFgYDVQQDDA9DRVJULVRFU1QtNi4yLjUxGTAXBgNV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lu/7kiZIISmkRCRGyzgSnGnBEovzIFgqT1c5k66RG7WGVHHVM01yb5oWA1DJj7V4Aw/vyCSzFwO5b3B3/oMdO8r0fHa8EvQi0+WBS0cQiDNkvfmWproIqfMfZBsESIVdHlbP99AuQoFVyn9y3Wqpmv6XlPthFszt4xVr/YkSjDLAlFSarkDi2aynCKGK6nD8DjmPMSNJ9PoZugEXfaN1nzzUB5nFk9PxYHt7TRSu65rGPAwz9C07e8bgPeS53gIvnUonQ==</ds:X509Certificate></ds:X509Data></ds:KeyInfo><ds:Object><xades:QualifyingProperties xmlns:xades="http://uri.etsi.org/01903/v1.3.2#" Target="#id-de7133d4409ea6a705fe255d9e4e3c83"><xades:SignedProperties Id="xades-id-de7133d4409ea6a705fe255d9e4e3c83"><xades:SignedSignatureProperties><xades:SigningTime>2021-03-21T00:01:16Z</xades:SigningTime><xades:SigningCertificateV2><xades:Cert><xades:CertDigest><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha512"/><ds:DigestValue>Iu7eBcrvxcSu0cvZeWBxwECatmf0zwQ70yzzfyd6+eIFAzMZo/FWqvENIFK4FwI/YwSjbM3CVDChmfqaEqJigA==</ds:DigestValue></xades:CertDigest><xades:IssuerSerialV2>MFkwVKRSMFAxEjAQBgNVBAMMCVNESS02LjIuNTEVMBMGA1UECgwMVFNQLTYuMiBOYW1lMRYwFAYDVQQLDA1DRVJUIEZPUiBURVNUMQswCQYDVQQGEwJDWgIBCw==</xades:IssuerSerialV2></xades:Cert></xades:SigningCertificateV2></xades:SignedSignatureProperties><xades:SignedDataObjectProperties><xades:DataObjectFormat ObjectReference="#r-id-de7133d4409ea6a705fe255d9e4e3c83-1"><xades:MimeType>application/octet-stream</xades:MimeType></xades:DataObjectFormat></xades:SignedDataObjectProperties></xades:SignedProperties></xades:QualifyingProperties></ds:Object></ds:Signature></FILE> \ No newline at end of file
diff --git a/moaSig/moa-sig/src/test/resources/testdata/xades/6.3.1-TEST FILE.xml b/moaSig/moa-sig/src/test/resources/testdata/xades/6.3.1-TEST FILE.xml
new file mode 100644
index 0000000..61f4293
--- /dev/null
+++ b/moaSig/moa-sig/src/test/resources/testdata/xades/6.3.1-TEST FILE.xml
@@ -0,0 +1,3 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?><FILE>
+ <TEST>SAMPLE</TEST>
+<ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#" Id="id-c202858d0a937f23ecd2cea3b693356e"><ds:SignedInfo><ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/><ds:SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"/><ds:Reference Id="r-id-c202858d0a937f23ecd2cea3b693356e-1" URI=""><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2002/06/xmldsig-filter2"><dsig-filter2:XPath xmlns:dsig-filter2="http://www.w3.org/2002/06/xmldsig-filter2" Filter="subtract">/descendant::ds:Signature</dsig-filter2:XPath></ds:Transform><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>kfsK43NJaZNZwDUkwbME+Sn+ziU/Rl4K0N2bvfbuwvk=</ds:DigestValue></ds:Reference><ds:Reference Type="http://uri.etsi.org/01903#SignedProperties" URI="#xades-id-c202858d0a937f23ecd2cea3b693356e"><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>jw6idpAfhpB/M0sLebXi5VoLh1+YcSgD9NYn9E0Qg2g=</ds:DigestValue></ds:Reference></ds:SignedInfo><ds:SignatureValue Id="value-id-c202858d0a937f23ecd2cea3b693356e">RjGmaz994mAHGfHbsJ7pDwCGzq2HpAI5aDcz4PJxYUMaskzOo2jo7+Z4z+ligrquLngfK33//Q6nzVQN8rd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4IBDwAwggEKAoIBAQDh2oFdTQZCZQUbDJixiG4CzziXW30KOqZZZjfHxDCo4Djx/Wj+nsrdaWIhou93/SOw7nELcmqbTddjLoWmW5Puhik1d9y934PZW9bCyJcqTMiZ8nRwCqJbRo1pefFeIqqcKINiUqPCdkLFsyEh/NRdPoV3HRf9Navq7BEergmJEnh/0JVDwqfRkFR70ENXQKT/ufpfa4u8Rk0k2oQwG7GqAQC8lLiQ8HkZvs8WAhSZx1LmUSLrQlLeRyS6AOKPX0yb2ZUT4U7tbIC8SQ4aF9yhSSPJtaylYLKTfnDwhQc7DRu3wLe5S8gnGzetCP5e0sqfma5ltktpPS3MnPj4CAO3AgMBAAGjQjBAMA4GA1UdDwEB/wQEAwIBBjAdBgNVHQ4EFgQU1jhFncgrUgXXimBceFUjliqLxpUwDwYDVR0TAQH/BAUwAwEB/zANBgkqhkiG9w0BAQsFAAOCAQEAKy78BsymJKVwR2mEUCrJ7OD89qjNon9ML/0KsukFcdv9VoUj7ITcOyh04bg9+HLDxHEr/ipkgeJ+spoW/2Z9la/Ir8cKJgeIgIU3B3GE6mHp3BkdgoiXcBoVpUzNmBgcCEN569F1Yl4UxC01F6qSOQbkEIhoZTJzoaBelfAiLgGbCyPu7U3F847Ixog8JBbBRUlAhFKefYwOt4M0fmAlIUQsrUiNLvngWbfUT1IEmTcLnsSHu8aWF5TN8qxbzRx85CBli/laO3AaFhnnengiLVzR7eQbzq7QzBcP9JAjDwmbNQhANBVW/z/820TNe9DAO1bXQiBq6TvQ6l+1GcZPVA==</ds:X509Certificate></ds:X509Data></ds:KeyInfo><ds:Object><xades:QualifyingProperties xmlns:xades="http://uri.etsi.org/01903/v1.3.2#" Target="#id-c202858d0a937f23ecd2cea3b693356e"><xades:SignedProperties Id="xades-id-c202858d0a937f23ecd2cea3b693356e"><xades:SignedSignatureProperties><xades:SigningTime>2021-03-21T00:01:16Z</xades:SigningTime><xades:SigningCertificateV2><xades:Cert><xades:CertDigest><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha512"/><ds:DigestValue>R7uKh+cpwQEdwgzgyEPmUNbMF5/ty5xvZMDrm7ANl8H1Ynb8ZPyHhzGj+zOuyq5ZMYotBwkKJ1DdcgwsxbO/7Q==</ds:DigestValue></xades:CertDigest><xades:IssuerSerialV2>MFkwVKRSMFAxEjAQBgNVBAMMCVNESS02LjMuMTEVMBMGA1UECgwMVFNQLTYuMyBOYW1lMRYwFAYDVQQLDA1DRVJUIEZPUiBURVNUMQswCQYDVQQGEwJDWgIBDQ==</xades:IssuerSerialV2></xades:Cert></xades:SigningCertificateV2></xades:SignedSignatureProperties><xades:SignedDataObjectProperties><xades:DataObjectFormat ObjectReference="#r-id-c202858d0a937f23ecd2cea3b693356e-1"><xades:MimeType>application/octet-stream</xades:MimeType></xades:DataObjectFormat></xades:SignedDataObjectProperties></xades:SignedProperties></xades:QualifyingProperties></ds:Object></ds:Signature></FILE> \ No newline at end of file
diff --git a/moaSig/moa-sig/src/test/resources/testdata/xades/6.3.2-TEST FILE.xml b/moaSig/moa-sig/src/test/resources/testdata/xades/6.3.2-TEST FILE.xml
new file mode 100644
index 0000000..0f7c401
--- /dev/null
+++ b/moaSig/moa-sig/src/test/resources/testdata/xades/6.3.2-TEST FILE.xml
@@ -0,0 +1,3 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?><FILE>
+ <TEST>SAMPLE</TEST>
+<ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#" Id="id-e386a091b522acd13a8cafb8e9d0465d"><ds:SignedInfo><ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/><ds:SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"/><ds:Reference Id="r-id-e386a091b522acd13a8cafb8e9d0465d-1" URI=""><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2002/06/xmldsig-filter2"><dsig-filter2:XPath xmlns:dsig-filter2="http://www.w3.org/2002/06/xmldsig-filter2" Filter="subtract">/descendant::ds:Signature</dsig-filter2:XPath></ds:Transform><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>kfsK43NJaZNZwDUkwbME+Sn+ziU/Rl4K0N2bvfbuwvk=</ds:DigestValue></ds:Reference><ds:Reference Type="http://uri.etsi.org/01903#SignedProperties" URI="#xades-id-e386a091b522acd13a8cafb8e9d0465d"><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>czoos7F+AwQHT7K3UReUrWV9GHYZ+YaztC4t2x5vvA8=</ds:DigestValue></ds:Reference></ds:SignedInfo><ds:SignatureValue Id="value-id-e386a091b522acd13a8cafb8e9d0465d">IfW3sm7s89wDWwMmRzSnkrNSkLFKqN3jb/0CvjWOoQ+yZVVNTrfIfGzEP7sgOzylcdvyiuXPTElHnjq+o2teqZcsosqVSbLZ7xYhx19BaFZa0o0THxr5Zbk6IwgGvobz1H1Y5kvv48lEJ+ny7yWJUSxIRtnegPI+ln9N73NcuziqUAuIuVnhBlV/uSOCvURC5wnNawYe6wY+811OCpM6lA3atdEZGvG+rk8oueQYeDovXP1PvMqXEikDOJB0ukaEV1hzT3gZRlVpy8AfKxHxKjDCwkypmz+YoEYR/L7j4Bqe8QBpTBJnNZvvnlq0qkKTRJNNh4fnZSs9sYqYfYh0RA==</ds:SignatureValue><ds:KeyInfo><ds:X509Data><ds:X509Certificate>MIIEVjCCAz6gAwIBAgIBDzANBgkqhkiG9w0BAQsFADBQMRIwEAYDVQQDDAlTREktNi4zLjIxFTATBgNVBAoMDFRTUC02LjMgTmFtZTEWMBQGA1UECwwNQ0VSVCBGT1IgVEVTVDELMAkGA1UEBhMCQ1owHhcNMTYwMzIxMDAwMDE1WhcNMjYwMzIxMDAwMDE1WjBa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k0eG+o4behnkJEvjqJY3p9tbPOBoJjtZCef0bYz3BjxdzdQkRklBToXbaN45ei8X5btOYMF88KkOYM7BDIdF5mmuxTXobWIfGlUNi046A7O2c9PFbbO+aaP7iEeZxZUqSqwfYzVOV+j1T1CJgtuLGDA3Zhvsrmy6aJdyUbmvAdWFQF2GIshZWaTwx697asdk7HCRruW/ykST0xipEOH1CV5lAdQMb5ZxwD1ZEMlpQrMKe03ox0beB9eWgofSV+yH26TPEybKPI2wfIN9mFPDOsw7F+7YbL3y6TBtBjDcbUD1VQ4T+LQ==</ds:X509Certificate></ds:X509Data></ds:KeyInfo><ds:Object><xades:QualifyingProperties xmlns:xades="http://uri.etsi.org/01903/v1.3.2#" Target="#id-e386a091b522acd13a8cafb8e9d0465d"><xades:SignedProperties Id="xades-id-e386a091b522acd13a8cafb8e9d0465d"><xades:SignedSignatureProperties><xades:SigningTime>2015-06-01T12:00:00Z</xades:SigningTime><xades:SigningCertificateV2><xades:Cert><xades:CertDigest><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha512"/><ds:DigestValue>0/juamMmtxbx4X2ft+KbBRq0tTHg01vMixgSc8txi8j0aecov8JI/KSk+e83Nf7K1CpI4VNJhRMsrnz5eQNYpw==</ds:DigestValue></xades:CertDigest><xades:IssuerSerialV2>MFkwVKRSMFAxEjAQBgNVBAMMCVNESS02LjMuMjEVMBMGA1UECgwMVFNQLTYuMyBOYW1lMRYwFAYDVQQLDA1DRVJUIEZPUiBURVNUMQswCQYDVQQGEwJDWgIBDw==</xades:IssuerSerialV2></xades:Cert></xades:SigningCertificateV2></xades:SignedSignatureProperties><xades:SignedDataObjectProperties><xades:DataObjectFormat ObjectReference="#r-id-e386a091b522acd13a8cafb8e9d0465d-1"><xades:MimeType>application/octet-stream</xades:MimeType></xades:DataObjectFormat></xades:SignedDataObjectProperties></xades:SignedProperties><xades:UnsignedProperties><xades:UnsignedSignatureProperties><xades:SignatureTimeStamp Id="TS-a421efca-8559-45a9-a09e-a667035cdf8e"><ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/><xades:EncapsulatedTimeStamp Id="ETS-a421efca-8559-45a9-a09e-a667035cdf8e">MIIHUwYJKoZIhvcNAQcCoIIHRDCCB0ACAQMxDzANBglghkgBZQMEAgEFADByBgsqhkiG9w0BCRABBKBjBGEwXwIBAQYDKgMEMDEwDQYJYIZIAWUDBAIBBQAEINSX818xDW3znxiihUbfjtopkBd7ehb4SxDuMXiBjfNcAhEAm1Jrd1QZQVDbCGTZh4trnRgPMjAxNTA2MDExMjAwMDBaoIIEUjCCBE4wggM2oAMCAQICAQIwDQYJKoZIhvcNAQELBQAwWDEVMBMGA1UEAwwMdGltZXN0YW1waW5nMRowGAYDVQQKDBFUTC04IE9yZ2FuaXphdGlvbjEWMBQGA1UECwwNQ0VSVCBGT1IgVEVTVDELMAkGA1UEBhMCVUswHhcNMDEwMzIxMDAwMDQ5WhcNNDEwMzIxMDAwMDQ5WjBYMRUwEwYDVQQDDAx0aW1lc3RhbXBpbmcxGjAYBgNVBAoMEVRMLTggT3JnYW5pemF0aW9uMRYwFAYDVQQLDA1DRVJUIEZPUiBURVNUMQswCQYDVQQGEwJVSzCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAK7hMYRDxP/7sy1hZbJKwhrkGJ00gu3aCGZSIfwvOOQK6O8Y1eGS2OTbb/ncI733223HnLJPlskizEqLh806wixXwxSkFquDqqbb3OR7C6F6IwlgeuciIco6PUEKg0H1qJ/uVwXMY1cqN/s5KVig5Zt5fKY5qYLDoPOMd2/InXV1fpvon5R5jGxFyvMQSJezpUqewt5dzgdW27j1zt57RXSBcWiIoEOor9x3WKU6oZTSXHzgAAV4+o0VEATopCJZTyWOMlOdTE1ymC2cqHABxixUhuMwspk9xqZua53EozT4vQCKhlkHS4oeBozdYxMwE6PSf+VHb51Mlrof6q55+m8CAwEAAaOCASEwggEdMA4GA1UdDwEB/wQEAwIHgDAWBgNVHSUBA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QjFSMCPwowNwYLKoZIhvcNAQkQAi8xKDAmMCQwIgQg9RNIYV1C37SU61fg0gkHa7rh5AbFx6c8n/4OxmcYXOQwDQYJKoZIhvcNAQELBQAEggEAU/1nPRENgXcxfosNqi3gASVoY59b+hSdk3tRi2xBzlXMDzhCTwg1V9tshn+zlz8f2uoR4HpujX9wOqDSUtTykNFAhXkntQnWxemA3Q3IBvhzoU+bKdv2cUcDY8jjIQSJyiA/bXFgZTJN6qlktHyhNr3KaN17bJfpdXukt2MnVLFmz51DzrSmWu++TwiGdsLkBsiISkAtb9cNNcyIcfCq8XNcb15XdewiQglYip6lxHAe+bAJlDOgzg4k9aXOqq6/sO7gqQhxJ4LVjg/2zsFda7GLdtN66IaX8JUPPFkU37C5/pNsTRzkd7WnzZhqDcDEgewNcWJY1gAyrCNIOzeRvA==</xades:EncapsulatedTimeStamp></xades:SignatureTimeStamp></xades:UnsignedSignatureProperties></xades:UnsignedProperties></xades:QualifyingProperties></ds:Object></ds:Signature></FILE> \ No newline at end of file
diff --git a/moaSig/moa-sig/src/test/resources/testdata/xades/6.3.3-TEST FILE.xml b/moaSig/moa-sig/src/test/resources/testdata/xades/6.3.3-TEST FILE.xml
new file mode 100644
index 0000000..663b21f
--- /dev/null
+++ b/moaSig/moa-sig/src/test/resources/testdata/xades/6.3.3-TEST FILE.xml
@@ -0,0 +1,3 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?><FILE>
+ <TEST>SAMPLE</TEST>
+<ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#" Id="id-407a6f9de8da73404d494c6cdac67863"><ds:SignedInfo><ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/><ds:SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"/><ds:Reference Id="r-id-407a6f9de8da73404d494c6cdac67863-1" URI=""><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2002/06/xmldsig-filter2"><dsig-filter2:XPath xmlns:dsig-filter2="http://www.w3.org/2002/06/xmldsig-filter2" Filter="subtract">/descendant::ds:Signature</dsig-filter2:XPath></ds:Transform><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>kfsK43NJaZNZwDUkwbME+Sn+ziU/Rl4K0N2bvfbuwvk=</ds:DigestValue></ds:Reference><ds:Reference Type="http://uri.etsi.org/01903#SignedProperties" URI="#xades-id-407a6f9de8da73404d494c6cdac67863"><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>eXUQ81IwwCumATpQSDAsJY5OgFZ2RgU/UOrTMUElS5E=</ds:DigestValue></ds:Reference></ds:SignedInfo><ds:SignatureValue Id="value-id-407a6f9de8da73404d494c6cdac67863">wDeNIqEG5j1zqq54tV9pVPlUqDYc/Zo03Z0Zn6yXtSSHJkXJo8e2UHeCzTvvCcr6qMiTMcmNhjNVAwfKMtSKlVtW18Ln9DnvGgwp9LzJiV9gziwUd1iibA17/8BqwCJO5FyZrbpWqebOsS8HBe66Skq5TuKfPXc3HAPLdMZyGjN9OPNb0JmSosduEyl1rxnlel64V0gTQuH3Gk8l+LMaz3sw/PRRtH1RcA9NLty0ldtJbLvbE8dP2ZH7JjpqCEescDSpZdNbyVBbplXPghnI5tqOPjNoEOyLPg7eZzXwo9yLLaNGH2Y0PT9PEygtb4+jUNk/ePZGUfnDmYPKBGwN9g==</ds:SignatureValue><ds:KeyInfo><ds:X509Data><ds:X509Certificate>MIIEVTCCAz2gAwIBAgIBETANBgkqhkiG9w0BAQsFADBQMRIwEAYDVQQDDAlTREktNi4zLjMxFTATBgNVBAoMDFRTUC02LjMgTmFtZTEWMBQGA1UECwwNQ0VSVCBGT1IgVEVTVDELMAkGA1UEBhMCQ1owHhcNMjAwM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TAQH/BAUwAwEB/zANBgkqhkiG9w0BAQsFAAOCAQEAjD3rh52UX9w9NtjZlj626ECgmkjbHt9vAjAqKSnFgsMz+EmZ5T96DSvKZtvI+3yK+EAScaBhUNUd/z/uKR9NTptS4UE5zYASIKvvbAf0s9shdHPpwYxrfAvbg5lPMxSID98nnfuUzh/97JL/dQi34+inYJ/k+i/igB76IqOJj/azhAb/paaZlijuF94+mD5+V0ctq3rSlEXFCMtFfPu5koGaQZEPpDuCVVwbuu9cw5vub0I3KyJyCDJPQ5s3tzvD7P6rLTlygwbd70GUjg7H0Awbn+Mt1wAKygKh3vMa5NKgeXYweM/5VywlUQMkQ3m3jK6cKEvR3yDKCC55JxzRSw==</ds:X509Certificate></ds:X509Data></ds:KeyInfo><ds:Object><xades:QualifyingProperties xmlns:xades="http://uri.etsi.org/01903/v1.3.2#" Target="#id-407a6f9de8da73404d494c6cdac67863"><xades:SignedProperties Id="xades-id-407a6f9de8da73404d494c6cdac67863"><xades:SignedSignatureProperties><xades:SigningTime>2021-03-21T00:01:17Z</xades:SigningTime><xades:SigningCertificateV2><xades:Cert><xades:CertDigest><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha512"/><ds:DigestValue>2rzV6EpPSlEZVjBE3oyx2+y7Ldlj3EYvGivCRXXpeOyILQo/hktso9JgLxXRWO2ac91v5wC6AKpWwN+S3anIUw==</ds:DigestValue></xades:CertDigest><xades:IssuerSerialV2>MFkwVKRSMFAxEjAQBgNVBAMMCVNESS02LjMuMzEVMBMGA1UECgwMVFNQLTYuMyBOYW1lMRYwFAYDVQQLDA1DRVJUIEZPUiBURVNUMQswCQYDVQQGEwJDWgIBEQ==</xades:IssuerSerialV2></xades:Cert></xades:SigningCertificateV2></xades:SignedSignatureProperties><xades:SignedDataObjectProperties><xades:DataObjectFormat ObjectReference="#r-id-407a6f9de8da73404d494c6cdac67863-1"><xades:MimeType>application/octet-stream</xades:MimeType></xades:DataObjectFormat></xades:SignedDataObjectProperties></xades:SignedProperties></xades:QualifyingProperties></ds:Object></ds:Signature></FILE> \ No newline at end of file
diff --git a/moaSig/moa-sig/src/test/resources/testdata/xades/6.3.4-TEST FILE.xml b/moaSig/moa-sig/src/test/resources/testdata/xades/6.3.4-TEST FILE.xml
new file mode 100644
index 0000000..6320d3b
--- /dev/null
+++ b/moaSig/moa-sig/src/test/resources/testdata/xades/6.3.4-TEST FILE.xml
@@ -0,0 +1,3 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?><FILE>
+ <TEST>SAMPLE</TEST>
+<ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#" Id="id-5f42571d862c738f9d76cc67ac7d900e"><ds:SignedInfo><ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/><ds:SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"/><ds:Reference Id="r-id-5f42571d862c738f9d76cc67ac7d900e-1" URI=""><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2002/06/xmldsig-filter2"><dsig-filter2:XPath xmlns:dsig-filter2="http://www.w3.org/2002/06/xmldsig-filter2" Filter="subtract">/descendant::ds:Signature</dsig-filter2:XPath></ds:Transform><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>kfsK43NJaZNZwDUkwbME+Sn+ziU/Rl4K0N2bvfbuwvk=</ds:DigestValue></ds:Reference><ds:Reference Type="http://uri.etsi.org/01903#SignedProperties" URI="#xades-id-5f42571d862c738f9d76cc67ac7d900e"><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>t2+lACwpf10wnmo+wuALFYDIwfhAHt+gMM2XUk7B2jg=</ds:DigestValue></ds:Reference></ds:SignedInfo><ds:SignatureValue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oMDFRTUC02LjMgTmFtZTEWMBQGA1UECwwNQ0VSVCBGT1IgVEVTVDELMAkGA1UEBhMCQ1owggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCqn3PGTr6KYSIpQ4ILHBQq758Aijmc++0/b33fogrQia+uRxrk9BqecZs5K1USfqtHKe4nL2qg6/JgLInqMSWhuir80lxlEJCIt8bCgVnRGuCKlx81qDIsE0xQkCurQUmmAKkn05s+tgmCuWSSLGvhSA6O8jPB+KLb7KxLu5NGxwercyS+a6w/RhB5iE8thw6Uy8zNl4mtu6YlL3gLrtyfKNlJ73ywlE9+8uNAFshfKdD2C16MKeaLAwpaTb0py3Pat/zYn1ofhQBuijP8vtNQArdex4ZQYD6QNYH7CcWTpg07YGnIvg5SwHY6yhcOoQ6ReQZjzqh0WDIaHwF/aau1AgMBAAGjQjBAMA4GA1UdDwEB/wQEAwIBBjAdBgNVHQ4EFgQUeT/3TNCAIx5Ci2ewPa99pJx29FEwDwYDVR0TAQH/BAUwAwEB/zANBgkqhkiG9w0BAQsFAAOCAQEAjZD+fEzfVeFq3pO7pzrOdaL14mAYER9CwJSqhsOl8Uqg326CII0iJJcyzwbhWg+z8KMRQaEvLsKgiAurdbQAkwl7BhEkBSJQkIcn7Z7iztldHF5a49oDNLvn6jCEO0y37DBzDvOiORnpr/EmIKTjFbzSqRfUHEhj2IxxmRr2vGwLobgoFknj54xCA8ayXsBA16vyVM3Fn3W8nIjwvmtaFQsK1rb5yk0zkOHPnNPDtE7Vl4F1wtjFPXt2Ru8uV1DndNKXx1YK3MecKTCr84zeUu0v1Zq9GnhqYhe7P39tJ841IpROqWCemDyQgUR5igbF6FFARE2sCKYdHTOyfY3mDQ==</ds:X509Certificate></ds:X509Data></ds:KeyInfo><ds:Object><xades:QualifyingProperties xmlns:xades="http://uri.etsi.org/01903/v1.3.2#" Target="#id-5f42571d862c738f9d76cc67ac7d900e"><xades:SignedProperties Id="xades-id-5f42571d862c738f9d76cc67ac7d900e"><xades:SignedSignatureProperties><xades:SigningTime>2021-03-21T00:01:17Z</xades:SigningTime><xades:SigningCertificateV2><xades:Cert><xades:CertDigest><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha512"/><ds:DigestValue>+bWzpGvaQIBNSMnuvajp1O3K8Drh8hyT92n3YgdBqSEtQpiAzb8J3kGoOeloQU2dNEhq3wGBv0uTh3Kolzentg==</ds:DigestValue></xades:CertDigest><xades:IssuerSerialV2>MFkwVKRSMFAxEjAQBgNVBAMMCVNESS02LjMuNDEVMBMGA1UECgwMVFNQLTYuMyBOYW1lMRYwFAYDVQQLDA1DRVJUIEZPUiBURVNUMQswCQYDVQQGEwJDWgIBEw==</xades:IssuerSerialV2></xades:Cert></xades:SigningCertificateV2></xades:SignedSignatureProperties><xades:SignedDataObjectProperties><xades:DataObjectFormat ObjectReference="#r-id-5f42571d862c738f9d76cc67ac7d900e-1"><xades:MimeType>application/octet-stream</xades:MimeType></xades:DataObjectFormat></xades:SignedDataObjectProperties></xades:SignedProperties></xades:QualifyingProperties></ds:Object></ds:Signature></FILE> \ No newline at end of file
diff --git a/moaSig/moa-sig/src/test/resources/testdata/xades/6.4.1-TEST FILE.xml b/moaSig/moa-sig/src/test/resources/testdata/xades/6.4.1-TEST FILE.xml
new file mode 100644
index 0000000..591090a
--- /dev/null
+++ b/moaSig/moa-sig/src/test/resources/testdata/xades/6.4.1-TEST FILE.xml
@@ -0,0 +1,3 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?><FILE>
+ <TEST>SAMPLE</TEST>
+<ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#" Id="id-38041bd92f9189b77ffa511ca6822887"><ds:SignedInfo><ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/><ds:SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"/><ds:Reference Id="r-id-38041bd92f9189b77ffa511ca6822887-1" URI=""><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2002/06/xmldsig-filter2"><dsig-filter2:XPath xmlns:dsig-filter2="http://www.w3.org/2002/06/xmldsig-filter2" Filter="subtract">/descendant::ds:Signature</dsig-filter2:XPath></ds:Transform><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>kfsK43NJaZNZwDUkwbME+Sn+ziU/Rl4K0N2bvfbuwvk=</ds:DigestValue></ds:Reference><ds:Reference Type="http://uri.etsi.org/01903#SignedProperties" URI="#xades-id-38041bd92f9189b77ffa511ca6822887"><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>HQgUZfI+RlqA13fXgADlTtK0/1BYHjCfN/Dv1vFCnaU=</ds:DigestValue></ds:Reference></ds:SignedInfo><ds:SignatureValue Id="value-id-38041bd92f9189b77ffa511ca6822887">ERhA7XAobRX3bPVKnX5ERlaI2ae9iMmNE8f8VSFnA+RhMeyjCjk6WJ2RwiVezV+w2KBIcEQAOI2TQNnKgiC3MP9mc5PvQqlp8/mIvGynxJnQ8tKufpIpRzmlBuhCbcAJ0740HhVchy5vZMD3aySG8KoEA7CKRbIIwnNwxhcOuBAMZ5CHBhCsPllyM/23ju35Od4+NNYoqCe5Jn8AQuEumfhlt2VifQn/AMjvm6wSGZ9ROvyzSNrek0UHxYys9r8mKT61KhX1AgT1Mg3NPQymGUmiWfrhQqBJSCk2WXzkwqfSX1hNlnrJNnuJ4RghlLLNf45Gwab2lZHwXpk6fWfrJA==</ds:SignatureValue><ds:KeyInfo><ds:X509Data><ds:X509Certificate>MIIESzCCAzOgAwIBAgIBFTANBgkqhkiG9w0BAQsFADBQMRIwEAYDVQQDDAlTREktNi40LjExFTATBgNVBAoMDFRTUC02LjQgTmFtZTEWMBQGA1UECwwNQ0VS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zANBgkqhkiG9w0BAQsFAAOCAQEAlHXisaSu8oeUoVR/H5BXru0ndh0U9TKacHxH0JJQQRLdR/nph97IQy9gqrQe5Uu3yoEmOcYwNJCcHpmp57GCckG4RuaB+EU+NN3kiXbc9Sc9axiXIFqYi5stb9pj+irONUV0pFWnB9fA272ImIIpwzSZ9I95Yz31UZmI3+Q4cuFdXd1Pcwe/HSkiWi5scRDY+q6S+2cZF+9qUZxwU3lQAAmOf5F9x/7kAFCX4HuVR+SiXv3/VOi8J8NSSqnI1NxRHwbws+bAINeDWCj9aaSglyyQQUR7RizlHKlnZRjiC01A1RXwmEIZuWsIkk4jwGlhHnAjuAVCMaOjQIDSRNDlAQ==</ds:X509Certificate></ds:X509Data></ds:KeyInfo><ds:Object><xades:QualifyingProperties xmlns:xades="http://uri.etsi.org/01903/v1.3.2#" Target="#id-38041bd92f9189b77ffa511ca6822887"><xades:SignedProperties Id="xades-id-38041bd92f9189b77ffa511ca6822887"><xades:SignedSignatureProperties><xades:SigningTime>2021-03-21T00:01:17Z</xades:SigningTime><xades:SigningCertificateV2><xades:Cert><xades:CertDigest><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha512"/><ds:DigestValue>AWgRQ2MYBgO7ymu0IBij+Xw/vSfuQuJ17PU4FOEXFouEL+2rCDkapHjLLvLWHVUAXVOtl1pgqonZfNMPYMbetg==</ds:DigestValue></xades:CertDigest><xades:IssuerSerialV2>MFkwVKRSMFAxEjAQBgNVBAMMCVNESS02LjQuMTEVMBMGA1UECgwMVFNQLTYuNCBOYW1lMRYwFAYDVQQLDA1DRVJUIEZPUiBURVNUMQswCQYDVQQGEwJDWgIBFQ==</xades:IssuerSerialV2></xades:Cert></xades:SigningCertificateV2></xades:SignedSignatureProperties><xades:SignedDataObjectProperties><xades:DataObjectFormat ObjectReference="#r-id-38041bd92f9189b77ffa511ca6822887-1"><xades:MimeType>application/octet-stream</xades:MimeType></xades:DataObjectFormat></xades:SignedDataObjectProperties></xades:SignedProperties></xades:QualifyingProperties></ds:Object></ds:Signature></FILE> \ No newline at end of file
diff --git a/moaSig/moa-sig/src/test/resources/testdata/xades/6.4.2-TEST FILE.xml b/moaSig/moa-sig/src/test/resources/testdata/xades/6.4.2-TEST FILE.xml
new file mode 100644
index 0000000..f0426fb
--- /dev/null
+++ b/moaSig/moa-sig/src/test/resources/testdata/xades/6.4.2-TEST FILE.xml
@@ -0,0 +1,3 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?><FILE>
+ <TEST>SAMPLE</TEST>
+<ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#" Id="id-0fa4f979b64688d184b529388bdd8926"><ds:SignedInfo><ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/><ds:SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"/><ds:Reference Id="r-id-0fa4f979b64688d184b529388bdd8926-1" URI=""><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2002/06/xmldsig-filter2"><dsig-filter2:XPath xmlns:dsig-filter2="http://www.w3.org/2002/06/xmldsig-filter2" Filter="subtract">/descendant::ds:Signature</dsig-filter2:XPath></ds:Transform><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>kfsK43NJaZNZwDUkwbME+Sn+ziU/Rl4K0N2bvfbuwvk=</ds:DigestValue></ds:Reference><ds:Reference Type="http://uri.etsi.org/01903#SignedProperties" URI="#xades-id-0fa4f979b64688d184b529388bdd8926"><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>i2A7AYv1XOVFEdS8Qib/an5nTMxYIzHncERQlljmGSc=</ds:DigestValue></ds:Reference></ds:SignedInfo><ds:SignatureValue Id="value-id-0fa4f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0VSVCBGT1IgVEVTVDELMAkGA1UEBhMCQ1owggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQC6UV9H/qQizwiPlbEIP2/iE8cqYegUPRDdkuMN1ORbzP3xZ1f5IcRN6ZWMWVyTBupykupSQiCDOUOEPaHNgy4xdZW1xrsj1mRhnRI0htCGD6LRNnTLkiVztItq4as6LXFs+bhIjSC/Xyq1UDVWilJDP8QNn29l9av2/QjHhzwF7VEzHJ1IzsDlADIid+whOeVFSVNn+FWN8XO9Iqs8+Ifka+DgV4D9oYxEJ6Pozsp+bltZDrrzq6t50N6HDyUmAbqvBJxzmrTFq4pV3LKBZs6vxIrRW9R2rY9ucZOZ4e7x/L5xJ7Brr7jRQqP5YlKZWAq9s7Z5GwPLMKVzS8Z+tYc7AgMBAAGjQjBAMA4GA1UdDwEB/wQEAwIBBjAdBgNVHQ4EFgQUIH3nUwk8pv6/vUzvs4bmc86ekCkwDwYDVR0TAQH/BAUwAwEB/zANBgkqhkiG9w0BAQsFAAOCAQEAIZXUS+pSBc9RBNMUxH6glyVbC98gaNhh+kCzI6eolXykCA2it4pFlYzonZLHYeCUAjYt0y9Qk9ftiNtOLviKVpzoAplO6reNPA3dOq6ValNVxFcQzjEOxUomAnX6RH2FqOMtwcz9qfaDZ6n1UJ6AkaJrREuxSV4vmm2BHLt4FfdEvBrVvsbrYjte563LJVMlBQja+ZHct8JE74p9zTL/vmXzLWtQ4/Dux2S9jSYfLPBN1yt9qv2EfUt0D2t8KwSV4FUGZCku6pLyCtKd21PrDUMH9OVwF/xIJTuPunZLY5L0U3KmTJB21kWft/3DUO122JbuG1AUpVXjZPJ+khboGg==</ds:X509Certificate></ds:X509Data></ds:KeyInfo><ds:Object><xades:QualifyingProperties xmlns:xades="http://uri.etsi.org/01903/v1.3.2#" Target="#id-0fa4f979b64688d184b529388bdd8926"><xades:SignedProperties Id="xades-id-0fa4f979b64688d184b529388bdd8926"><xades:SignedSignatureProperties><xades:SigningTime>2021-03-21T00:01:17Z</xades:SigningTime><xades:SigningCertificateV2><xades:Cert><xades:CertDigest><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha512"/><ds:DigestValue>SO7slegsRXEudp2dST9yqHtNyxsQu3O1epiqXtXzvd1XNAAZHNydtvQ0dZh3rBwTuWo8HsbUtlA0QD16xAoNag==</ds:DigestValue></xades:CertDigest><xades:IssuerSerialV2>MFkwVKRSMFAxEjAQBgNVBAMMCVNESS02LjQuMjEVMBMGA1UECgwMVFNQLTYuNCBOYW1lMRYwFAYDVQQLDA1DRVJUIEZPUiBURVNUMQswCQYDVQQGEwJDWgIBFw==</xades:IssuerSerialV2></xades:Cert></xades:SigningCertificateV2></xades:SignedSignatureProperties><xades:SignedDataObjectProperties><xades:DataObjectFormat ObjectReference="#r-id-0fa4f979b64688d184b529388bdd8926-1"><xades:MimeType>application/octet-stream</xades:MimeType></xades:DataObjectFormat></xades:SignedDataObjectProperties></xades:SignedProperties></xades:QualifyingProperties></ds:Object></ds:Signature></FILE> \ No newline at end of file
diff --git a/moaSig/moa-sig/src/test/resources/testdata/xades/6.4.3-TEST FILE.xml b/moaSig/moa-sig/src/test/resources/testdata/xades/6.4.3-TEST FILE.xml
new file mode 100644
index 0000000..16d4505
--- /dev/null
+++ b/moaSig/moa-sig/src/test/resources/testdata/xades/6.4.3-TEST FILE.xml
@@ -0,0 +1,3 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?><FILE>
+ <TEST>SAMPLE</TEST>
+<ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#" Id="id-748b9bc2cabfb8b676be603091d480b7"><ds:SignedInfo><ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/><ds:SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"/><ds:Reference Id="r-id-748b9bc2cabfb8b676be603091d480b7-1" URI=""><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2002/06/xmldsig-filter2"><dsig-filter2:XPath xmlns:dsig-filter2="http://www.w3.org/2002/06/xmldsig-filter2" Filter="subtract">/descendant::ds:Signature</dsig-filter2:XPath></ds:Transform><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>kfsK43NJaZNZwDUkwbME+Sn+ziU/Rl4K0N2bvfbuwvk=</ds:DigestValue></ds:Reference><ds:Reference Type="http://uri.etsi.org/01903#SignedProperties" URI="#xades-id-748b9bc2cabfb8b676be603091d480b7"><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>+zINZf+5StygTAi8nbu9CQq9n1fiLqWyvGxHDp6Cp6w=</ds:DigestValue></ds:Reference></ds:SignedInfo><ds:SignatureValue Id="value-id-748b9bc2cabfb8b676be603091d480b7">jC4Fm5hatITnudI5EKgmXPvNmFeoKGOK954mdUO7DyMfXMUb8B34JGgqJBfbk9o70kZyi6d9FABKYak4ODIAXLNa5SidUgJo6J6CDgRXJrfkveDOCUES8tkR2ySXFewsEhlLfidlBLtkDmq5YTgxQpW7eVzSGTzf19KDbYtaoz485r0kWQvQBzKNiWCqQlOUXGGvZN5LGuZHrISEEblP/KtSKJziHyDuc2thiiOeYvR4ytVVbPoia7v4r/02+Lj6zk8HILMXL/5Gny6No+r1T0Sii5ailIVneEVdRXrMSFtRxWGh1Fhsh2Yd6Uy7qpH7qq9moOnOaS7M/1vCC6W2kw==</ds:SignatureValue><ds:KeyInfo><ds:X509Data><ds:X509Certificate>MIIESzCCAzOgAwIBAgIBGTANBgkqhkiG9w0BAQsFADBQMRIwEAYDVQQDDAlTREktNi40LjMxFTATBgNVBAoMDFRTUC02LjQgTmFtZTEWMBQGA1UECwwNQ0VSVCBGT1IgVEVTVDELMAkGA1UEBhMCQ1owHhcNMjAw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T5bQi2zQp0CqnyiHCUSzdW0rc1h+Town2WkvahC1dzzAaaa7NXGz7GJmuVmr618VnLtPULr37uY17LCMHZ82Q9GX07D7qm0lC/5BJFEvuBuBPZu6EajVeyhy1mYkYimfhnep/zhoz7dv65VVdwM94yxNHgPHxJHvPv3uP341HrXp16ri+3Z4eseNWIZIDOOshwbjBDcvq/oOTeNQZ6SwelmUp08Nx5rOpbGORQrSFNx2/Bt7X78IsFJsneLbPH4VOp9b9breVtIIzoo+EmAsOljRyRZXzyeYGcZnAlkzXnQBPNMANtjtxVXApb2HBqYhiKalh6ig==</ds:X509Certificate></ds:X509Data></ds:KeyInfo><ds:Object><xades:QualifyingProperties xmlns:xades="http://uri.etsi.org/01903/v1.3.2#" Target="#id-748b9bc2cabfb8b676be603091d480b7"><xades:SignedProperties Id="xades-id-748b9bc2cabfb8b676be603091d480b7"><xades:SignedSignatureProperties><xades:SigningTime>2021-03-21T00:01:18Z</xades:SigningTime><xades:SigningCertificateV2><xades:Cert><xades:CertDigest><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha512"/><ds:DigestValue>q7n4GlnZUu4tkbGeJO6C7zFi9QRK2WqfqrGwzH7LcMFycbc3lanW+040SZp6oVAnkDaFJCtr71o7Qyp5qyrUdw==</ds:DigestValue></xades:CertDigest><xades:IssuerSerialV2>MFkwVKRSMFAxEjAQBgNVBAMMCVNESS02LjQuMzEVMBMGA1UECgwMVFNQLTYuNCBOYW1lMRYwFAYDVQQLDA1DRVJUIEZPUiBURVNUMQswCQYDVQQGEwJDWgIBGQ==</xades:IssuerSerialV2></xades:Cert></xades:SigningCertificateV2></xades:SignedSignatureProperties><xades:SignedDataObjectProperties><xades:DataObjectFormat ObjectReference="#r-id-748b9bc2cabfb8b676be603091d480b7-1"><xades:MimeType>application/octet-stream</xades:MimeType></xades:DataObjectFormat></xades:SignedDataObjectProperties></xades:SignedProperties></xades:QualifyingProperties></ds:Object></ds:Signature></FILE> \ No newline at end of file
diff --git a/moaSig/moa-sig/src/test/resources/testdata/xades/6.4.4-TEST FILE.xml b/moaSig/moa-sig/src/test/resources/testdata/xades/6.4.4-TEST FILE.xml
new file mode 100644
index 0000000..d1ad05b
--- /dev/null
+++ b/moaSig/moa-sig/src/test/resources/testdata/xades/6.4.4-TEST FILE.xml
@@ -0,0 +1,3 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?><FILE>
+ <TEST>SAMPLE</TEST>
+<ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#" Id="id-b7162af86fb33a3a40a7fd1dbde4467e"><ds:SignedInfo><ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/><ds:SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"/><ds:Reference Id="r-id-b7162af86fb33a3a40a7fd1dbde4467e-1" URI=""><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2002/06/xmldsig-filter2"><dsig-filter2:XPath xmlns:dsig-filter2="http://www.w3.org/2002/06/xmldsig-filter2" Filter="subtract">/descendant::ds:Signature</dsig-filter2:XPath></ds:Transform><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>kfsK43NJaZNZwDUkwbME+Sn+ziU/Rl4K0N2bvfbuwvk=</ds:DigestValue></ds:Reference><ds:Reference Type="http://uri.etsi.org/01903#SignedProperties" URI="#xades-id-b7162af86fb33a3a40a7fd1dbde4467e"><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>adPwBVzxU1et/dpycu97VPzRVOqLld58ukdjeVd3FoM=</ds:DigestValue></ds:Reference></ds:SignedInfo><ds:SignatureValue Id="value-id-b7162af86fb33a3a40a7fd1dbde4467e">WFKsFp1RHIBJ/n2K/X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EVTVDELMAkGA1UEBhMCQ1owggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDHQ4/iF9q3iyw/UU3z2l/c6OC18TcfV8TPHJkU7gNCs1oEJ1KUagR/eGTQSS4Iw8UtECCNWEG49IAVZCoelIIXkBiAdrFKO7maYs3gnEb8AzbkagvPd4FBTadj7sKpsQFIi3cjWGgMiWvzZ4d1PxW4btkKx3JUGtuEwJug/nmbEhwwJ4OC3zkLkLGoTyJyeY74N3tiunAh/nBUa7JXIIbyT6MQvHBpk/qz2XHcu7NQ0zjjAmavfdKqlGFxJWMUFV2ROFchydwonG5p3H7XSdIrr5G1XlM/0GuX7yQzTQ4gnZ9I9XB18S1cL385mFjtIeWGUsFkbiNkCSKcvPLwNl4vAgMBAAGjQjBAMA4GA1UdDwEB/wQEAwIBBjAdBgNVHQ4EFgQU9Ike59CpHdUg6BeO2tD0FoyEQxMwDwYDVR0TAQH/BAUwAwEB/zANBgkqhkiG9w0BAQsFAAOCAQEAIeNdEyaKc6usK5pjYXLS9g5T7UKg/EGwIm/ubVhFTBJfjZrlrirfPv8Y69mA7AL4NNDHOgFTRLTggUFlSchAUInsO1tftvfYcmDQuZF1XPZEH2yOJqrLUQz6AONWVzPxQZ4E9lTO+V0qhogx9hbRf8OaorJuwZHciAxoHAh1KROwQwfU1V6beBfe7Rvn5lKIEzUk27mdMjxnnsLdEA61nw29pNo0SmVz5OATEw2kiTMj/wxAIuzqnaOF7KImoJxgRh2aj7Jg0maPTTimVQHqoHD1/6w1M0YryH3G+UZ/ana50ydTylrelUm9n43lGeuQOAF+FC4HMbCodOlIh1ykQQ==</ds:X509Certificate></ds:X509Data></ds:KeyInfo><ds:Object><xades:QualifyingProperties xmlns:xades="http://uri.etsi.org/01903/v1.3.2#" Target="#id-b7162af86fb33a3a40a7fd1dbde4467e"><xades:SignedProperties Id="xades-id-b7162af86fb33a3a40a7fd1dbde4467e"><xades:SignedSignatureProperties><xades:SigningTime>2021-03-21T00:01:18Z</xades:SigningTime><xades:SigningCertificateV2><xades:Cert><xades:CertDigest><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha512"/><ds:DigestValue>FK4FY4egjd60eflnqZ/Vm9Pv1N53J/24lbY4WUBeAfKskb/iiUMtj2MEV0U8b/N4IsL4IEBa2sFi62s17m1sAw==</ds:DigestValue></xades:CertDigest><xades:IssuerSerialV2>MFkwVKRSMFAxEjAQBgNVBAMMCVNESS02LjQuNDEVMBMGA1UECgwMVFNQLTYuNCBOYW1lMRYwFAYDVQQLDA1DRVJUIEZPUiBURVNUMQswCQYDVQQGEwJDWgIBGw==</xades:IssuerSerialV2></xades:Cert></xades:SigningCertificateV2></xades:SignedSignatureProperties><xades:SignedDataObjectProperties><xades:DataObjectFormat ObjectReference="#r-id-b7162af86fb33a3a40a7fd1dbde4467e-1"><xades:MimeType>application/octet-stream</xades:MimeType></xades:DataObjectFormat></xades:SignedDataObjectProperties></xades:SignedProperties></xades:QualifyingProperties></ds:Object></ds:Signature></FILE> \ No newline at end of file
diff --git a/moaSig/moa-sig/src/test/resources/testdata/xades/6.4.5-TEST FILE.xml b/moaSig/moa-sig/src/test/resources/testdata/xades/6.4.5-TEST FILE.xml
new file mode 100644
index 0000000..e4c2176
--- /dev/null
+++ b/moaSig/moa-sig/src/test/resources/testdata/xades/6.4.5-TEST FILE.xml
@@ -0,0 +1,3 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?><FILE>
+ <TEST>SAMPLE</TEST>
+<ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#" Id="id-5ed1bb7e71f3f57a2040a2df17f5c2b7"><ds:SignedInfo><ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/><ds:SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"/><ds:Reference Id="r-id-5ed1bb7e71f3f57a2040a2df17f5c2b7-1" URI=""><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2002/06/xmldsig-filter2"><dsig-filter2:XPath xmlns:dsig-filter2="http://www.w3.org/2002/06/xmldsig-filter2" Filter="subtract">/descendant::ds:Signature</dsig-filter2:XPath></ds:Transform><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>kfsK43NJaZNZwDUkwbME+Sn+ziU/Rl4K0N2bvfbuwvk=</ds:DigestValue></ds:Reference><ds:Reference Type="http://uri.etsi.org/01903#SignedProperties" URI="#xades-id-5ed1bb7e71f3f57a2040a2df17f5c2b7"><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>eeYB0m5slUa1rcd15dIMOXGipKUhj/ts3UVYS/KgozQ=</ds:DigestValue></ds:Reference></ds:SignedInfo><ds:SignatureValue Id="value-id-5ed1bb7e71f3f57a2040a2df17f5c2b7">EayfQ0yVMH4DaPZPi/VzLv0AnZtB/fb0xb20KFX2K8aoEZRGXDbTmCkKzXQCdRZvQxw9Ui1zPFwY4rqNjxw6wZOKTteZX7JSg+55X8qAnCenOP+zYu92nXiGpFp+KrVHiRS783eyqU37D+6tUmX96jXnIffOFEnVR6FATstm51tLlYkXd9TQXf+nR454QBHPKRTI79O0yNs9X0iX0pCptOQMr8kAwyHdERhjyvG18JDqIg5ioBeAhlb3rZ1SsuQOo6aZa8crq/1xT8R3cZ6RDnTIz8rkBYmd4/UqwAFAmf7r1Q2+N0kSSPCcuGpsCU/SEH0b+DHVQ+awNMuFNZtzfQ==</ds:SignatureValue><ds:KeyInfo><ds:X509Data><ds:X509Certificate>MIIENjCCAx6gAwIBAgIBHTANBgkqhkiG9w0BAQsFADBQMRIwEAYDVQQDDAlTREktNi40LjUxFTATBgNVBAoMDFRTUC02LjQgTmFtZTEWMBQGA1UECwwNQ0VSVCBGT1IgV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kiG9w0BAQsFAAOCAQEAHkCBTjZ7bPku4rBKFPLGY4qmIv5KfyfgAdGHmy4CvRB240ZdQSPt+RQmutpBJ5nuDfFyy1kAE1Iq5tr6wmClvCEyE/DOltcpr86lPNHM6xTm2WTOU2B78RJ8IXKW7kj/h/vOzzDN7dmAFPo0KDbAmYNDWmdYp71BOhwWvmQCkJwqot5DQr9IIJx8HJncUH2uvPIWtbFJDwvsx1hYfwH90HwKEhKo/avME8cr1zgmpDq6FL8W3uNN7O9z6U4S6x1QsicfvzemhnRPwA/d0/Z4nWdc0i57pXbKtV6L771M1v4lPX1rREm+QnQXl+VtwXVkS258yObJ8+BZIaxq4+OmkQ==</ds:X509Certificate></ds:X509Data></ds:KeyInfo><ds:Object><xades:QualifyingProperties xmlns:xades="http://uri.etsi.org/01903/v1.3.2#" Target="#id-5ed1bb7e71f3f57a2040a2df17f5c2b7"><xades:SignedProperties Id="xades-id-5ed1bb7e71f3f57a2040a2df17f5c2b7"><xades:SignedSignatureProperties><xades:SigningTime>2015-06-01T12:00:00Z</xades:SigningTime><xades:SigningCertificateV2><xades:Cert><xades:CertDigest><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha512"/><ds:DigestValue>aR7ksvaTuJdaJzX9eVtisAfhAtiOxywElmjv/kkZZyVKtabb29O+ALobkRjcth3Lr3wA/LLN984WfSNWjRQgfA==</ds:DigestValue></xades:CertDigest><xades:IssuerSerialV2>MFkwVKRSMFAxEjAQBgNVBAMMCVNESS02LjQuNTEVMBMGA1UECgwMVFNQLTYuNCBOYW1lMRYwFAYDVQQLDA1DRVJUIEZPUiBURVNUMQswCQYDVQQGEwJDWgIBHQ==</xades:IssuerSerialV2></xades:Cert></xades:SigningCertificateV2></xades:SignedSignatureProperties><xades:SignedDataObjectProperties><xades:DataObjectFormat ObjectReference="#r-id-5ed1bb7e71f3f57a2040a2df17f5c2b7-1"><xades:MimeType>application/octet-stream</xades:MimeType></xades:DataObjectFormat></xades:SignedDataObjectProperties></xades:SignedProperties><xades:UnsignedProperties><xades:UnsignedSignatureProperties><xades:SignatureTimeStamp Id="TS-d43682d2-ef19-4855-bcb8-05833fc738f9"><ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/><xades:EncapsulatedTimeStamp Id="ETS-d43682d2-ef19-4855-bcb8-05833fc738f9">MIIHUwYJKoZIhvcNAQcCoIIHRDCCB0ACAQMxDzANBglghkgBZQMEAgEFADByBgsqhkiG9w0BCRABBKBjBGEwXwIBAQYDKgMEMDEwDQYJYIZIAWUDBAIBBQAEIHnUpzJcNYCqe14damwSR7FCIys4svO9CI46NIkQkqIYAhEAjtUU4UZ4uSxRECcx/B/3DBgPMjAxNTA2MDExMjAwMDBaoIIEUjCCBE4wggM2oAMCAQICAQIwDQYJKoZIhvcNAQELBQAwWDEVMBMGA1UEAwwMdGltZXN0YW1waW5nMRowGAYDVQQKDBFUTC04IE9yZ2FuaXphdGlvbjEWMBQGA1UECwwNQ0VSVCBGT1IgVEVTVDELMAkGA1UEBhMCVUswHhcNMDEwMzIxMDAwMDQ5WhcNNDEwMzIxMDAwMDQ5WjBYMRUwEwYDVQQDDAx0aW1lc3RhbXBpbmcxGjAYBgNVBAoMEVRMLTggT3JnYW5pemF0aW9uMRYwFAYDVQQLDA1DRVJUIEZPUiBURVNUMQswCQYDVQQGEwJVSzCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAK7hMYRDxP/7sy1hZbJKwhrkGJ00gu3aCGZSIfwvOOQK6O8Y1eGS2OTbb/ncI733223HnLJPlskizEqLh806wixXwxSkFquDqqbb3OR7C6F6IwlgeuciIco6PUEKg0H1qJ/uVwXMY1cqN/s5KVig5Zt5fKY5qYLDoPOMd2/InXV1fpvon5R5jGxFyvMQSJezpUqewt5dzgdW27j1zt57RXSBcWiIoEOor9x3WKU6oZTSXHzgAAV4+o0VEATopCJZTyWOMlOdTE1ymC2cqHABxixUhuMwspk9xqZua53EozT4vQCKhlkHS4oeBoz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BgkqhkiG9w0BAQsFADAvBgkqhkiG9w0BCQQxIgQguKrpXxnn9Vb9qVm/9G5zb8X2bKj1G1/HDmII031SwCwwNwYLKoZIhvcNAQkQAi8xKDAmMCQwIgQg9RNIYV1C37SU61fg0gkHa7rh5AbFx6c8n/4OxmcYXOQwDQYJKoZIhvcNAQELBQAEggEAnDera24tK70Ergjfpx9mNOHn6jToKU1LZSNznYcgu1dguZF2DRcPewJ8WJSsoAqcKr/kBzpnJy3hqmmDjS3Sb4iA/TK0rep1wANSYjOE3AU6HpJ/XSMO9iRMQl/nl8MsdC4mAdgoH/Ee8x5o9UySW5kmzzFo4sUPHAlrRe3yC5q3bW3n077L7KReaYs73YV6oRN2xk8+87DA2W80iqoFGlopsC3GFf63LceGEEFfjTZyUqtMf0mECMR6b+yn8DwsxJXZlSCTaCiQEbQNmgn/WGM1QJDCfdGsp5v+lOIh5Yn7rARQkW5lXLzUk6FIUcZPdbDhuJ4HoDuu/OqXYiCrig==</xades:EncapsulatedTimeStamp></xades:SignatureTimeStamp></xades:UnsignedSignatureProperties></xades:UnsignedProperties></xades:QualifyingProperties></ds:Object></ds:Signature></FILE> \ No newline at end of file
diff --git a/moaSig/moa-sig/src/test/resources/testdata/xades/6.4.6-TEST FILE.xml b/moaSig/moa-sig/src/test/resources/testdata/xades/6.4.6-TEST FILE.xml
new file mode 100644
index 0000000..d91e25f
--- /dev/null
+++ b/moaSig/moa-sig/src/test/resources/testdata/xades/6.4.6-TEST FILE.xml
@@ -0,0 +1,3 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?><FILE>
+ <TEST>SAMPLE</TEST>
+<ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#" Id="id-d7f9defd13f4f17ac5b8f6c3a004d47a"><ds:SignedInfo><ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/><ds:SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"/><ds:Reference Id="r-id-d7f9defd13f4f17ac5b8f6c3a004d47a-1" URI=""><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2002/06/xmldsig-filter2"><dsig-filter2:XPath xmlns:dsig-filter2="http://www.w3.org/2002/06/xmldsig-filter2" Filter="subtract">/descendant::ds:Signature</dsig-filter2:XPath></ds:Transform><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>kfsK43NJaZNZwDUkwbME+Sn+ziU/Rl4K0N2bvfbuwvk=</ds:DigestValue></ds:Reference><ds:Reference Type="http://uri.etsi.org/01903#SignedProperties" URI="#xades-id-d7f9defd13f4f17ac5b8f6c3a004d47a"><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>NV4KD5/lJ9zry/CZYt/4RTyI64ldcI3mp5h/NCIO9rE=</ds:DigestValue></ds:Reference></ds:SignedInfo><ds:SignatureValue Id="value-id-d7f9defd13f4f17ac5b8f6c3a004d47a">nLiDtE3SApOeig9AJ1AnvmFoPEvtn2nzyFuot05Ardpvjl7xT/GzUnVzfOLjd2pmU6nKNc83sgDXvovSrk85O7ref9Qz8y4ShPg4RwbpHFrTN099Ee1rP77dp39Cco4FKAoitK8+KOzWS555OPU/fiMu6eTmOmZnARxcJquC7+FUQZiHcUMHIGleCNxIkbqA/cJnnpTHx2BKgpD/in2lsaYLc9rRA0OlZST0w5Fqhp4bvdJeIRdZ/Fm4Csw/SjvbQ1T0PhEwA29h+ZSzShh5cyXas49j8Ch6C7Ub3Y315eKlw4TbTdx2Q4CFYhqJ9eJN6S8+6Iy1GyZVkPQWaPsVYw==</ds:SignatureValue><ds:KeyInfo><ds:X509Data><ds:X509Certificate>MIIESzCCAzOgAwIBAgIBHzANBgkqhkiG9w0BAQsFADBQMRIwEAYDVQQD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BBjAdBgNVHQ4EFgQUtmCCeZwNdHdK8yjAbwkDqUNNJFUwDwYDVR0TAQH/BAUwAwEB/zANBgkqhkiG9w0BAQsFAAOCAQEAr1H9llmrjp1dX+Ye/xmbvN5gaQkPEIIzlRJ0roxzzSrwc37rpAM0pW0wAOgJNGsSA02dIqyLAJEPswHuYZFDlONZeILS6heBFsdhVeiGc6pH4FzSJTI1CliNxGXxhaf/3mi8q2Ytm/Np336c5FMB2CikEjNoto9oEqreWQ/JlUkEarrolf+Kx59uv4DEZkNmBgImIM3poAaMK5G6UK4+I78mdY1ZT1Tt2HMZgPKj6V3uBMf+VKjAnVAm1HyZpm76K9NTJ/3CpF5MsfbbhWMt413Jo101V6i6duDSyKYsUDu+KPtgGp4YmngMcJAcW8IJqEmNCou3QQOhAwxGh9qizg==</ds:X509Certificate></ds:X509Data></ds:KeyInfo><ds:Object><xades:QualifyingProperties xmlns:xades="http://uri.etsi.org/01903/v1.3.2#" Target="#id-d7f9defd13f4f17ac5b8f6c3a004d47a"><xades:SignedProperties Id="xades-id-d7f9defd13f4f17ac5b8f6c3a004d47a"><xades:SignedSignatureProperties><xades:SigningTime>2021-03-21T00:01:19Z</xades:SigningTime><xades:SigningCertificateV2><xades:Cert><xades:CertDigest><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha512"/><ds:DigestValue>3VaIDMGbZGC27I2fnDUkd1sAy5x980vSuqvowrI3nb9a2ENl/gFqIvqhYL23YhVvSdS8eCaWKe95DvFLMaHa1g==</ds:DigestValue></xades:CertDigest><xades:IssuerSerialV2>MFkwVKRSMFAxEjAQBgNVBAMMCVNESS02LjQuNjEVMBMGA1UECgwMVFNQLTYuNCBOYW1lMRYwFAYDVQQLDA1DRVJUIEZPUiBURVNUMQswCQYDVQQGEwJDWgIBHw==</xades:IssuerSerialV2></xades:Cert></xades:SigningCertificateV2></xades:SignedSignatureProperties><xades:SignedDataObjectProperties><xades:DataObjectFormat ObjectReference="#r-id-d7f9defd13f4f17ac5b8f6c3a004d47a-1"><xades:MimeType>application/octet-stream</xades:MimeType></xades:DataObjectFormat></xades:SignedDataObjectProperties></xades:SignedProperties></xades:QualifyingProperties></ds:Object></ds:Signature></FILE> \ No newline at end of file
diff --git a/moaSig/moa-sig/src/test/resources/testdata/xades/6.4.7-TEST FILE.xml b/moaSig/moa-sig/src/test/resources/testdata/xades/6.4.7-TEST FILE.xml
new file mode 100644
index 0000000..34002e6
--- /dev/null
+++ b/moaSig/moa-sig/src/test/resources/testdata/xades/6.4.7-TEST FILE.xml
@@ -0,0 +1,3 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?><FILE>
+ <TEST>SAMPLE</TEST>
+<ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#" Id="id-89c1c3aeed8a8f798b93d4286b363d09"><ds:SignedInfo><ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/><ds:SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"/><ds:Reference Id="r-id-89c1c3aeed8a8f798b93d4286b363d09-1" URI=""><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2002/06/xmldsig-filter2"><dsig-filter2:XPath xmlns:dsig-filter2="http://www.w3.org/2002/06/xmldsig-filter2" Filter="subtract">/descendant::ds:Signature</dsig-filter2:XPath></ds:Transform><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>kfsK43NJaZNZwDUkwbME+Sn+ziU/Rl4K0N2bvfbuwvk=</ds:DigestValue></ds:Reference><ds:Reference Type="http://uri.etsi.org/01903#SignedProperties" URI="#xades-id-89c1c3aeed8a8f798b93d4286b363d09"><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>1pivOxN3Y8YYDSUbEFKfUtth2jq3iAS9ZaSodtnO1FU=</ds:DigestValue></ds:Reference></ds:SignedInfo><ds:SignatureValue Id="value-id-89c1c3aeed8a8f798b93d4286b363d09">e1lvQiMVfVswfJ9c5mOynbYmghwUgu5l6dH18eZJQTD3cWcXwg0bEAv8p8B2F+Jhb964xjoh6sMw0PQjnF7I4KlKYsw+LlWZOUxtntNQsNB3Pt7vHbl+9QiT5zPiyenYbCQLxUUdmIC0w/ms9fb/jTqxaTRM6sGxmuUpNq3IBJfOBblv5IluxhvA06eG97IrIDS9enxqg5s8Le50P4iFab/QX77YU9rUFOxjtMQzPQFih8tZkU1G7MHefPgBndw/Hi0+C/1C+1kSsrov21daVnaRiPd2Ke8UvEkYCKpxpwYmacSqVBMhsdDTb30XIZrSEmBQ6YKgC6MpsnnYcM0xjQ==</ds:SignatureValue><ds:KeyInfo><ds:X509Data><ds:X509Certificate>MIIENjCCAx6gAwIBAgIBITANBgkqhkiG9w0BAQsFADBQMRIwEAYDVQQDDAlTREktNi40LjcxFTATBgNVBAoMDFRTUC02LjQgTmFtZTEWMBQGA1UECwwNQ0VSVCBGT1IgVEVTVDELMAkGA1UEBhMCQ1owHhcNMTYwMzIxMDAwMDIxWhcNMjYwMzIxMDAwMDIxWjBaMRgwFgYDVQQDDA9DRVJULVRFU1QtNi40LjcxGTAXBgNVBAoMEFRMNiBPcmdhbml6YXRpb24xFjAUBgNVBAsMDUNFUlQgRk9SIFRFU1QxCzAJBgNVBAYTAkNaMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA7oGBUMmUrpyqhtUcXL3t2daOz6a4tDGkQPtIv00q8OGTMl6jbO3uhPszC50wh6IK3PPsm8t4VGG36MbDdvQdPLIfbLtLm90nE/AJp/lIYMKxaz7RYAWFa6p+gjQT8DEtZm8dRc2xLsUw3nhjQX/ZGYQbwpUDFSAzYZVEU6wA9Dlce+PsvuGgZsgC5HRt18QPa5vg1byiuE0ZACADFVrWL2M5m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cNMjYwMzIxMDAwMDIwWjBQMRIwEAYDVQQDDAlTREktNi40LjcxFTATBgNVBAoMDFRTUC02LjQgTmFtZTEWMBQGA1UECwwNQ0VSVCBGT1IgVEVTVDELMAkGA1UEBhMCQ1owggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCn0g2AYOhKYb15+JeWe/a3OD02hiy8EPmYykjGtTTwHWHglU3GQwCTubfxERCO2bHPZXCCR66+4sfOxVOlfkfwR+QKBuL8WDHmWp99uAL2XFLR/ZEmIREqT2Jh1cunAbXL02P2iGOXCnn9jSOHBu+5zTBuFddzzyMnUNY2kFQQOCOnHh6QVgpgvxl9K/asmuHpA6vGS3+4zpLLRlKQ15AjaBA6gCsav7TirUU1SlP3fYoAfQeaAHgo1La4XSOYVncIg8YOcY1N5ZMI8unynNoT1tmXuWfmSVVneEscX8kmuX+Jr8gC+XvpMHOc2/ogtgsOTdjlFd/25eemTFExiv5xAgMBAAGjQjBAMA4GA1UdDwEB/wQEAwIBBjAdBgNVHQ4EFgQUhZqrDEEmJpo+6209U7EiE0psJZIwDwYDVR0TAQH/BAUwAwEB/zANBgkqhkiG9w0BAQsFAAOCAQEABQHhAuqIM+MDBPz7mXv1dVSkHLke8sMTGxFkhpuuns/wXqMNA7Gz8j6CP28OfueITYNpOfuqok96AP1t7N4aW3BfPMetUpMk/9nU6FwNEqDNSeO60Dr+dJadOm6M8OEjApVF2sktdMenscGI4vFAeH6JmG1bxvdXvgMrcmKRaOHVvFqW/pqJaQ0tAYurq9uv+maoq0i1lVAZjWgNKiHBPO7vmwcLkfJq1sg92t6PbdNQHyCOcWItbcLzS5lRZy5Zvjp9gx1SgyB58+2QhEVynsSC1+bNw7T5y9VC+gzKjzK46mmpT/5ffcIl0FFfk97lvpGG83meiNEkLR6/V+JRwQ==</ds:X509Certificate></ds:X509Data></ds:KeyInfo><ds:Object><xades:QualifyingProperties xmlns:xades="http://uri.etsi.org/01903/v1.3.2#" Target="#id-89c1c3aeed8a8f798b93d4286b363d09"><xades:SignedProperties Id="xades-id-89c1c3aeed8a8f798b93d4286b363d09"><xades:SignedSignatureProperties><xades:SigningTime>2015-06-01T12:00:00Z</xades:SigningTime><xades:SigningCertificateV2><xades:Cert><xades:CertDigest><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha512"/><ds:DigestValue>yn1OgTnzqAdcw80jqcSlqTEfIeJD13nin3hgZv7u2gnH8GxF6yB3s2fQf7aA/AVEkHfqs3+1qfuVkT4a1DpZaQ==</ds:DigestValue></xades:CertDigest><xades:IssuerSerialV2>MFkwVKRSMFAxEjAQBgNVBAMMCVNESS02LjQuNzEVMBMGA1UECgwMVFNQLTYuNCBOYW1lMRYwFAYDVQQLDA1DRVJUIEZPUiBURVNUMQswCQYDVQQGEwJDWgIBIQ==</xades:IssuerSerialV2></xades:Cert></xades:SigningCertificateV2></xades:SignedSignatureProperties><xades:SignedDataObjectProperties><xades:DataObjectFormat ObjectReference="#r-id-89c1c3aeed8a8f798b93d4286b363d09-1"><xades:MimeType>application/octet-stream</xades:MimeType></xades:DataObjectFormat></xades:SignedDataObjectProperties></xades:SignedProperties><xades:UnsignedProperties><xades:UnsignedSignatureProperties><xades:SignatureTimeStamp Id="TS-a72ce1ff-3764-404b-9375-611e3d04c02a"><ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/><xades:EncapsulatedTimeStamp Id="ETS-a72ce1ff-3764-404b-9375-611e3d04c02a">MIIHUwYJKoZIhvcNAQcCoIIHRDCCB0ACAQMxDzANBglghkgBZQMEAgEFADByBgsqhkiG9w0BCRABBKBjBGEwXwIBAQYDKgMEMDEwDQYJYIZIAWUDBAIBBQAEIF9S3YbZLqiVeIAjeE2P+KsreG9ki0IFyNeXGk3Sl1l9AhEAvhQvj/ZE5sbq1/9ZhtsqYxgPMjAxNTA2MDExMjAwMDBaoIIEUjCCBE4wggM2oAMCAQICAQIwDQYJKoZIhvcNAQELBQAwWDEVMBMGA1UEAww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iW2tGy8F/sibNRhmYJVPpBqn11eokoLR0dVXQo3Ud4VCoePE9pf5LRmglUoxMfn594SornQ==</xades:EncapsulatedTimeStamp></xades:SignatureTimeStamp></xades:UnsignedSignatureProperties></xades:UnsignedProperties></xades:QualifyingProperties></ds:Object></ds:Signature></FILE> \ No newline at end of file
diff --git a/moaSig/moa-sig/src/test/resources/testdata/xades/6.4.8-TEST FILE.xml b/moaSig/moa-sig/src/test/resources/testdata/xades/6.4.8-TEST FILE.xml
new file mode 100644
index 0000000..fc7ff11
--- /dev/null
+++ b/moaSig/moa-sig/src/test/resources/testdata/xades/6.4.8-TEST FILE.xml
@@ -0,0 +1,3 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?><FILE>
+ <TEST>SAMPLE</TEST>
+<ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#" Id="id-48b2cb674421462833061e283e34abef"><ds:SignedInfo><ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/><ds:SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"/><ds:Reference Id="r-id-48b2cb674421462833061e283e34abef-1" URI=""><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2002/06/xmldsig-filter2"><dsig-filter2:XPath xmlns:dsig-filter2="http://www.w3.org/2002/06/xmldsig-filter2" Filter="subtract">/descendant::ds:Signature</dsig-filter2:XPath></ds:Transform><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>kfsK43NJaZNZwDUkwbME+Sn+ziU/Rl4K0N2bvfbuwvk=</ds:DigestValue></ds:Reference><ds:Reference Type="http://uri.etsi.org/01903#SignedProperties" URI="#xades-id-48b2cb674421462833061e283e34abef"><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>vA3hLZ1eC6OXCnqEyxjQOrpfUyCyK008kZYqfuyXzaQ=</ds:DigestValue></ds:Reference></ds:SignedInfo><ds:SignatureValue Id="value-id-48b2cb674421462833061e283e34abef">F8XNa+329eMB/ke9I1PoHhe9hLrcib0jlP2GxggawPqonLCHMOANBuiYOUoO0FFuiOznsVcZn+DSjKwqRveB7Dixcy9rCqphW4D+jaUq77mYK9c7utlcEHP+8W1tbXVNxBAnzFEoaUsDUoSHjSUuTO4x11nhv117Tgx/NpLIRBGAP7kog4mHdPFIwj4o0/J5rE/e6yHLkCSCPmdKj6uav44c/Y4w9WGj77RGDHlQugVpUkH/yUeD+o12UxSbIzWLNzcxYo8CfW5LKPDOpW5j/Ef0BWNaRB0uMQPPoyhKETF6bQDK8E+r5cXGPgVXzFViSk1BUTOvGCRr9VYn9kj/sA==</ds:SignatureValue><ds:KeyInfo><ds:X509Data><ds:X509Certificate>MIIESzCCAzOgAwIBAgIBIzANBgkqhkiG9w0BAQsFADBQMRIwEAYDVQQDDAlTREktNi40LjgxFTATBgNVBAoMDFRTUC02LjQgTmFtZTEWMBQGA1UECwwNQ0VSVCBGT1IgVEVTVDELMAkGA1UEBhMCQ1owHhcNMjAwMzIxMDAwMDIxWhcNMjIwMzIxMDAwMDIxWjBaMRgwFgYDVQQDDA9DRVJULVRFU1QtNi40LjgxGTAXBgNVBAoMEFRMNiBPcmdhbml6YXRpb24xFjAUBgNVBAsMDUNFUlQgRk9SIFRFU1QxCzAJBgNVBAYTAkNaMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAuaMLJ13CvsZ7dtyW/wSEX8tVhzXdE+OBXdZ0PNYAWjRTsjWfcNl3RgFukA+pbZj4Mt18xSBuzBGf6dmHqFV/7iFMHXmWgPuNOVsSp+/DnnkaGIwLyJuic3fmtwTVRjnUSNSjbwoaxjnMU+UHo/4H00ZCnDBtrP1/kf0VHbgYbAyszelexUtjnZe+4YJ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perties xmlns:xades="http://uri.etsi.org/01903/v1.3.2#" Target="#id-48b2cb674421462833061e283e34abef"><xades:SignedProperties Id="xades-id-48b2cb674421462833061e283e34abef"><xades:SignedSignatureProperties><xades:SigningTime>2021-03-21T00:01:19Z</xades:SigningTime><xades:SigningCertificateV2><xades:Cert><xades:CertDigest><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha512"/><ds:DigestValue>ydHFgvkVZ9jfaBI8H82pLRZi2H/83B2h1egW5FB3F3g8oJzcXAbG/7cGB89zI3V8gyjYAcWKYUb6I1CNpIYtEg==</ds:DigestValue></xades:CertDigest><xades:IssuerSerialV2>MFkwVKRSMFAxEjAQBgNVBAMMCVNESS02LjQuODEVMBMGA1UECgwMVFNQLTYuNCBOYW1lMRYwFAYDVQQLDA1DRVJUIEZPUiBURVNUMQswCQYDVQQGEwJDWgIBIw==</xades:IssuerSerialV2></xades:Cert></xades:SigningCertificateV2></xades:SignedSignatureProperties><xades:SignedDataObjectProperties><xades:DataObjectFormat ObjectReference="#r-id-48b2cb674421462833061e283e34abef-1"><xades:MimeType>application/octet-stream</xades:MimeType></xades:DataObjectFormat></xades:SignedDataObjectProperties></xades:SignedProperties></xades:QualifyingProperties></ds:Object></ds:Signature></FILE> \ No newline at end of file
diff --git a/moaSig/moa-sig/src/test/resources/testdata/xades/7.1.1-TEST FILE.xml b/moaSig/moa-sig/src/test/resources/testdata/xades/7.1.1-TEST FILE.xml
new file mode 100644
index 0000000..dce4acb
--- /dev/null
+++ b/moaSig/moa-sig/src/test/resources/testdata/xades/7.1.1-TEST FILE.xml
@@ -0,0 +1,3 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?><FILE>
+ <TEST>SAMPLE</TEST>
+<ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#" Id="id-f8e15da73753f760ece73c33308cbd59"><ds:SignedInfo><ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/><ds:SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"/><ds:Reference Id="r-id-f8e15da73753f760ece73c33308cbd59-1" URI=""><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2002/06/xmldsig-filter2"><dsig-filter2:XPath xmlns:dsig-filter2="http://www.w3.org/2002/06/xmldsig-filter2" Filter="subtract">/descendant::ds:Signature</dsig-filter2:XPath></ds:Transform><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>kfsK43NJaZNZwDUkwbME+Sn+ziU/Rl4K0N2bvfbuwvk=</ds:DigestValue></ds:Reference><ds:Reference Type="http://uri.etsi.org/01903#SignedProperties" URI="#xades-id-f8e15da73753f760ece73c33308cbd59"><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>032Stf7AitkCp5NF3evNZQJZ5D2m9NatmbL3RZMzooE=</ds:DigestValue></ds:Reference></ds:SignedInfo><ds:SignatureValue Id="value-id-f8e15da73753f760ece73c33308cbd59">FixxM+CGCaIHIiNbZhA9JIisUDLggcdUjOzJ0eXr+yqfIJWHicYQrL03wcDNoFszZcfKamjGh3zVcFSmgrB4PcJVrk60jKihxbprvIJ+9XXmJr/ZCGQqMXDC8n/OGn/jaREY0ki6k8CBwr08nBD7KsoTUnewqhQlgW65g2y7Ed/a0NNWifOxnsJqEF3T+QVSAqghHlahrff7OdiA3X8wv6FagNjZSVGP12P40+4EBOeUwY2xyCYGj2sU6zpma04hPqZIYq/Um4xx3yvgOEO5SogjKb6V1R6HDjen6RARFQzyld/5ecQCpiBM0CAjX6vBHVvCKMLuitjRseQDba2+bQ==</ds:SignatureValue><ds:KeyInfo><ds:X509Data><ds:X509Certificate>MIIEVTCCAz2gAwIBAgIBAzANBgkqhkiG9w0BAQsF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1L2ilTcE4OTEuRiM0ynwGuFmxsSs0eLkMMT1AgMBAAGjQjBAMA4GA1UdDwEB/wQEAwIBBjAdBgNVHQ4EFgQUYG8Qo6WBgtR5JpFv2eBMKmo54RAwDwYDVR0TAQH/BAUwAwEB/zANBgkqhkiG9w0BAQsFAAOCAQEAYS3P4A6lTF+1Xmy8KYcPp74OdEE8Q8H5DGsS8pZ8tZDpjQyuoY3BvCpW7mw2vQg9930/rhEqs5vzL5cEJOmGxrvuG3CmaJryp1ScqoGVbbySpRoK+pHyf9VzFXlEREdU+ykWHg/J0P1eT1FMV9wy56a5wA0LeuvQ6oU//EnBYWBOQU+7uJlRTvf+F6N5E8bi/8ZQNE9gusbZcuKEP4q1JHz4e360PmERqyvQn2gTvfCRGEBCy2NMC2k20SEYGhYtEZGQt0LrIenAFVrnovzUzPyef4Ca2z2pF4pNDWq8gHnFS9PXW/F1eixEwBFqKefzYQGq9ejWDvqb5W+x8vVUZw==</ds:X509Certificate></ds:X509Data></ds:KeyInfo><ds:Object><xades:QualifyingProperties xmlns:xades="http://uri.etsi.org/01903/v1.3.2#" Target="#id-f8e15da73753f760ece73c33308cbd59"><xades:SignedProperties Id="xades-id-f8e15da73753f760ece73c33308cbd59"><xades:SignedSignatureProperties><xades:SigningTime>2021-03-21T00:01:20Z</xades:SigningTime><xades:SigningCertificateV2><xades:Cert><xades:CertDigest><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha512"/><ds:DigestValue>6j25hr7u68j4A0isJgGWcSOQn1Bs/goEaCnrRAbRxr8fKW1ZLCuVuKfWPj1oWSzwJS1lbF6Lihed2WQOaPq4Tw==</ds:DigestValue></xades:CertDigest><xades:IssuerSerialV2>MFkwVKRSMFAxEjAQBgNVBAMMCVNESS03LjEuMTEVMBMGA1UECgwMVFNQLTcuMSBOYW1lMRYwFAYDVQQLDA1DRVJUIEZPUiBURVNUMQswCQYDVQQGEwJCRwIBAw==</xades:IssuerSerialV2></xades:Cert></xades:SigningCertificateV2></xades:SignedSignatureProperties><xades:SignedDataObjectProperties><xades:DataObjectFormat ObjectReference="#r-id-f8e15da73753f760ece73c33308cbd59-1"><xades:MimeType>application/octet-stream</xades:MimeType></xades:DataObjectFormat></xades:SignedDataObjectProperties></xades:SignedProperties></xades:QualifyingProperties></ds:Object></ds:Signature></FILE> \ No newline at end of file
diff --git a/moaSig/moa-sig/src/test/resources/testdata/xades/7.1.2-TEST FILE.xml b/moaSig/moa-sig/src/test/resources/testdata/xades/7.1.2-TEST FILE.xml
new file mode 100644
index 0000000..4f0fc48
--- /dev/null
+++ b/moaSig/moa-sig/src/test/resources/testdata/xades/7.1.2-TEST FILE.xml
@@ -0,0 +1,3 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?><FILE>
+ <TEST>SAMPLE</TEST>
+<ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#" Id="id-1fedb566be81fae5e4adf38bd87416fd"><ds:SignedInfo><ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/><ds:SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"/><ds:Reference Id="r-id-1fedb566be81fae5e4adf38bd87416fd-1" URI=""><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2002/06/xmldsig-filter2"><dsig-filter2:XPath xmlns:dsig-filter2="http://www.w3.org/2002/06/xmldsig-filter2" Filter="subtract">/descendant::ds:Signature</dsig-filter2:XPath></ds:Transform><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>kfsK43NJaZNZwDUkwbME+Sn+ziU/Rl4K0N2bvfbuwvk=</ds:DigestValue></ds:Reference><ds:Reference Type="http://uri.etsi.org/01903#SignedProperties" URI="#xades-id-1fedb566be81fae5e4adf38bd87416fd"><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>75R17Sq4lt9UnnsUBbHtuqsCUaT4JUMOZsap5Uo+zSU=</ds:DigestValue></ds:Reference></ds:SignedInfo><ds:SignatureValue Id="value-id-1fedb566be81fae5e4adf38bd87416fd">Ous3Z5QDJ/oj7wcnsxnGuqB5QwMVq+S4QNKowrCeY4PkH4ecBJMOhPHrW/+eS8mjWma+z49iCQxDy3Z61I9WN2rXsYB/aVAuWcUxBYzSHLmLl363L23XUjQDod9/QFOk5L5TMRdUv+NZp0U1RT4nq286tRIm3uom1CbppjItpSO7p+BLzn0cxZsP09SdwwQ+vmyC9hYtt9VY7WyPDTOnxLIoaqMusthKCFsqRd1IiAIv2AYa7XxkI9AQ1+wfqP48y3cgyC22a13SfRifcp4q0R/UJ2UpSYpLaDsXP6DZgSpvqtugMX70uM0ByT6leWgqYInVxILvyA6qzCGMUaEsGw==</ds:SignatureValue><ds:KeyInfo><ds:X509Data><ds:X509Certificate>MIIEVTCCAz2gAwIBAgIBBTANBgkqhkiG9w0BAQsFADBQMRIwEAYDVQQDDAlTREktNy4xLjIxFTATBgNVBAoMDFRTUC03LjEgTmFtZTEWMBQGA1UECwwNQ0VSVCBGT1IgVEVTVDELMAkGA1UEBhMCQkcwHhcNMTkwMzIxMDAwMDA4WhcNMjMwMzIxMDAwMDA4WjBaMRgwFgYDVQQDDA9DRVJULVRFU1QtNy4xLjIxGTAXBgNVBAoMEFRMNyBPcmdhbml6YXRpb24xFjAUBgNVBAsMDUNFUlQgRk9SIFRFU1QxCzAJBgNVBAYTAkJHMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAuEmqCidi7FJ3SAe9pk5ndKkCMCEow4I7ZmKa5F0uZSi0CJCk0rK9VIch2itWjlINadFf5NR+G+QuGaNxr3zxN+tPJ5F2nksFn5SfA/bDE0P0CvevwdVFljPmi1/cv7zbu34gvkiHdWIQZTrFl6TNDDt4wownce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dbEGug==</ds:X509Certificate></ds:X509Data></ds:KeyInfo><ds:Object><xades:QualifyingProperties xmlns:xades="http://uri.etsi.org/01903/v1.3.2#" Target="#id-1fedb566be81fae5e4adf38bd87416fd"><xades:SignedProperties Id="xades-id-1fedb566be81fae5e4adf38bd87416fd"><xades:SignedSignatureProperties><xades:SigningTime>2021-03-21T00:01:20Z</xades:SigningTime><xades:SigningCertificateV2><xades:Cert><xades:CertDigest><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha512"/><ds:DigestValue>5XWtAqhU2rTvJsGuvIDgJFAob7AEFWoxLKKM9t9DmRs5vE8Od3Ooph8S25j45FeO24f+2FGQuoIydcC0rsJ/jQ==</ds:DigestValue></xades:CertDigest><xades:IssuerSerialV2>MFkwVKRSMFAxEjAQBgNVBAMMCVNESS03LjEuMjEVMBMGA1UECgwMVFNQLTcuMSBOYW1lMRYwFAYDVQQLDA1DRVJUIEZPUiBURVNUMQswCQYDVQQGEwJCRwIBBQ==</xades:IssuerSerialV2></xades:Cert></xades:SigningCertificateV2></xades:SignedSignatureProperties><xades:SignedDataObjectProperties><xades:DataObjectFormat ObjectReference="#r-id-1fedb566be81fae5e4adf38bd87416fd-1"><xades:MimeType>application/octet-stream</xades:MimeType></xades:DataObjectFormat></xades:SignedDataObjectProperties></xades:SignedProperties></xades:QualifyingProperties></ds:Object></ds:Signature></FILE> \ No newline at end of file
diff --git a/moaSig/moa-sig/src/test/resources/testdata/xades/7.2.1-TEST FILE.xml b/moaSig/moa-sig/src/test/resources/testdata/xades/7.2.1-TEST FILE.xml
new file mode 100644
index 0000000..dc1c1ce
--- /dev/null
+++ b/moaSig/moa-sig/src/test/resources/testdata/xades/7.2.1-TEST FILE.xml
@@ -0,0 +1,3 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?><FILE>
+ <TEST>SAMPLE</TEST>
+<ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#" Id="id-efec11ed5d62d2d8ce09b3a50af6c495"><ds:SignedInfo><ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/><ds:SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"/><ds:Reference Id="r-id-efec11ed5d62d2d8ce09b3a50af6c495-1" URI=""><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2002/06/xmldsig-filter2"><dsig-filter2:XPath xmlns:dsig-filter2="http://www.w3.org/2002/06/xmldsig-filter2" Filter="subtract">/descendant::ds:Signature</dsig-filter2:XPath></ds:Transform><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>kfsK43NJaZNZwDUkwbME+Sn+ziU/Rl4K0N2bvfbuwvk=</ds:DigestValue></ds:Reference><ds:Reference Type="http://uri.etsi.org/01903#SignedProperties" URI="#xades-id-efec11ed5d62d2d8ce09b3a50af6c495"><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>3hDeMbeR9KUv9WnhSU2FZLSaN1Wwy4zPdTtvuVjaN8c=</ds:DigestValue></ds:Reference></ds:SignedInfo><ds:SignatureValue Id="value-id-efec11ed5d62d2d8ce09b3a50af6c495">j1uiPawQd5T8ylCPodRjrj+Kz1hJYD5mo/8f1mUAjwxtj7hzMi1vy3d9evpIypsCLxNL2wJa2Sdxckcwaie85DxBSC6BnAf7tojeh+gjVOeLqdgFY9GqkqXkeKrBLJkRPAD/H0og78UVDvvH1Sv7Ulz2JFLcutaV61oUhJopN0TouKhG/1ad8/8GOYxh3+5rn9mazLoFcbvwvcO3si7GCOGO9IJxokbxv/83aYA2jBrIIs0bkvMhd+gGecQ/b5awIgnEpmXzvgQvZ00wHEeDN0Dm6clTJ8PdGoTMx5JKrAT+4pQrPQTV7BbCum6Xw94562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5FaybUZbVkqmg20P1wWBVZpIc6T/w+u0qt4qR7+DWJAq4OPa0iSXE129fz6uATdCjA27GcfVjruule5Ptnl4GSAHDRIfdU6HRm3Qb6KQ/wDAgMBAAGjQjBAMA4GA1UdDwEB/wQEAwIBBjAdBgNVHQ4EFgQUxZJuFeL8lrvT0VARxwNv81kSknEwDwYDVR0TAQH/BAUwAwEB/zANBgkqhkiG9w0BAQsFAAOCAQEAk5BDJT1x/yna5dzOoLp0tdqGXM7nCZtFo0z3MJwtPIXrNopLrVpoR/xpRBLLcmhW3f1zdsYF/mLUWqONlfW5tk3WEFih0+8M1mlv4XhaHyDyNEE/zTbC/lVHldpJi0YkAlOGwyB7hwXap4euJe3nEJ9eKQKZwWFVlbzjb77FYCZoOyVgmPtzKyUk3RPoCsvewV3VA0qeDsJ/pOjhD6C3q7uCnvZ8t92CZFo3h5RxQv7OC/V8StcaNQliitjitolkBYhpVgzfNqGdjF2QI056pxR+7jfNLNJ5G2YkvjTJgfVrrHh1N8iUzWWUu7ADhtqUvqKVSUcUHQ+wmLjvSXw6KQ==</ds:X509Certificate></ds:X509Data></ds:KeyInfo><ds:Object><xades:QualifyingProperties xmlns:xades="http://uri.etsi.org/01903/v1.3.2#" Target="#id-efec11ed5d62d2d8ce09b3a50af6c495"><xades:SignedProperties Id="xades-id-efec11ed5d62d2d8ce09b3a50af6c495"><xades:SignedSignatureProperties><xades:SigningTime>2021-03-21T00:01:20Z</xades:SigningTime><xades:SigningCertificateV2><xades:Cert><xades:CertDigest><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha512"/><ds:DigestValue>mURPW8N3sMjHUAAfJOONZKcAJIJQPFQ4JF4pfGa5M11PycZw11UH20XefVXZAWv+NFu7IX0EN8hMCXlbAU7ZHg==</ds:DigestValue></xades:CertDigest><xades:IssuerSerialV2>MFkwVKRSMFAxEjAQBgNVBAMMCVNESS03LjIuMTEVMBMGA1UECgwMVFNQLTcuMiBOYW1lMRYwFAYDVQQLDA1DRVJUIEZPUiBURVNUMQswCQYDVQQGEwJCRwIBBw==</xades:IssuerSerialV2></xades:Cert></xades:SigningCertificateV2></xades:SignedSignatureProperties><xades:SignedDataObjectProperties><xades:DataObjectFormat ObjectReference="#r-id-efec11ed5d62d2d8ce09b3a50af6c495-1"><xades:MimeType>application/octet-stream</xades:MimeType></xades:DataObjectFormat></xades:SignedDataObjectProperties></xades:SignedProperties></xades:QualifyingProperties></ds:Object></ds:Signature></FILE> \ No newline at end of file
diff --git a/moaSig/moa-sig/src/test/resources/testdata/xades/7.3.1-TEST FILE.xml b/moaSig/moa-sig/src/test/resources/testdata/xades/7.3.1-TEST FILE.xml
new file mode 100644
index 0000000..63ee7e7
--- /dev/null
+++ b/moaSig/moa-sig/src/test/resources/testdata/xades/7.3.1-TEST FILE.xml
@@ -0,0 +1,3 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?><FILE>
+ <TEST>SAMPLE</TEST>
+<ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#" Id="id-00074ff8c1a103b7276b9f1666c354b2"><ds:SignedInfo><ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/><ds:SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"/><ds:Reference Id="r-id-00074ff8c1a103b7276b9f1666c354b2-1" URI=""><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2002/06/xmldsig-filter2"><dsig-filter2:XPath xmlns:dsig-filter2="http://www.w3.org/2002/06/xmldsig-filter2" Filter="subtract">/descendant::ds:Signature</dsig-filter2:XPath></ds:Transform><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>kfsK43NJaZNZwDUkwbME+Sn+ziU/Rl4K0N2bvfbuwvk=</ds:DigestValue></ds:Reference><ds:Reference Type="http://uri.etsi.org/01903#SignedProperties" URI="#xades-id-00074ff8c1a103b7276b9f1666c354b2"><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>MFqN2N8ANokSQDruYxCc9hqhTe25Unsd3thB+sWcWZ8=</ds:DigestValue></ds:Reference></ds:SignedInfo><ds:SignatureValue Id="value-id-00074ff8c1a103b7276b9f1666c354b2">havedffdGrBvU0KpFWY6xnWnEcbd1f71IC+mX1+TcdKsD9W9yqcqbnblgF1N+1QFI5fX5wFDgBAwTl+rWanVNmpGOkXTIl1RdGmJ4RbfxisTbhMs8U3qWRPiKCiPsp+rZQE7Mm5e6+hXcLpFAx+W9cP3xtSTUMVfQaJXWRO3a8lG4aiSGB7bDg3J+euR26x70LbjkSRV2AdDCYsbAfnxWQ5BKBNKm/gElKQKdhoTXr2OXY+7WfGN55UImowbM9I6J6lpz2va78wxeW+sJCHz94Uqn8e3UeFxRHpbtpOudJNc5U7XnVkOB0Phi9g5qdJ1nR5cG/AbHwjUDTkwEYjSUQ==</ds:SignatureValue><ds:KeyInfo><ds:X509Data><ds:X509Certificate>MIIESzCCAzOgAwIBAgIBCTANBgkqhkiG9w0BAQsFADBQMRIwEAYDVQQDDAlTREktNy4zLjExFTATBgNVBAoMDFRTUC03LjMgTmFtZTEWMBQGA1UECwwNQ0VSVCBGT1IgVEVTVDELMAkGA1UEBhMCQkcwHhcNMTYwMzIxMDAwMDA5WhcNMjYwMzIxMDAwMDA5WjBaMRgwFgYDVQQDDA9DRVJULVRFU1QtNy4zLjExGTAXBgNVBAoMEFRMNyBPcmdhbml6YXRpb24xFjAUBgNVBAsMDUNFUlQgRk9SIFRFU1QxCzAJBgNVBAYTAkJHMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA74Wz1K6hI+Q/9/AExsvT++p3BgFXrlqZEUGF4tli2/jjhJ63kOSVEt750iSIX0j93Oe+VJnu+C/bJCg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wYrJ/4t2xBbdxutcwit/LUm1SG/jTsu7DigWP95EL5fhIIpA==</ds:X509Certificate></ds:X509Data></ds:KeyInfo><ds:Object><xades:QualifyingProperties xmlns:xades="http://uri.etsi.org/01903/v1.3.2#" Target="#id-00074ff8c1a103b7276b9f1666c354b2"><xades:SignedProperties Id="xades-id-00074ff8c1a103b7276b9f1666c354b2"><xades:SignedSignatureProperties><xades:SigningTime>2021-03-21T00:01:20Z</xades:SigningTime><xades:SigningCertificateV2><xades:Cert><xades:CertDigest><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha512"/><ds:DigestValue>J7nHNazVqNbZxtj4X9KPxqRjCQuHYAXiIoicYF40RLe9LXqmNxp1XDrCr3tnwT0J3QVJyTwKx9tcX7VQaytGqA==</ds:DigestValue></xades:CertDigest><xades:IssuerSerialV2>MFkwVKRSMFAxEjAQBgNVBAMMCVNESS03LjMuMTEVMBMGA1UECgwMVFNQLTcuMyBOYW1lMRYwFAYDVQQLDA1DRVJUIEZPUiBURVNUMQswCQYDVQQGEwJCRwIBCQ==</xades:IssuerSerialV2></xades:Cert></xades:SigningCertificateV2></xades:SignedSignatureProperties><xades:SignedDataObjectProperties><xades:DataObjectFormat ObjectReference="#r-id-00074ff8c1a103b7276b9f1666c354b2-1"><xades:MimeType>application/octet-stream</xades:MimeType></xades:DataObjectFormat></xades:SignedDataObjectProperties></xades:SignedProperties></xades:QualifyingProperties></ds:Object></ds:Signature></FILE> \ No newline at end of file
diff --git a/moaSig/moa-sig/src/test/resources/testdata/xades/7.3.2-TEST FILE.xml b/moaSig/moa-sig/src/test/resources/testdata/xades/7.3.2-TEST FILE.xml
new file mode 100644
index 0000000..3bf36af
--- /dev/null
+++ b/moaSig/moa-sig/src/test/resources/testdata/xades/7.3.2-TEST FILE.xml
@@ -0,0 +1,3 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?><FILE>
+ <TEST>SAMPLE</TEST>
+<ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#" Id="id-71d80aa67ec7b20b8e4cf19a68b7f391"><ds:SignedInfo><ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/><ds:SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"/><ds:Reference Id="r-id-71d80aa67ec7b20b8e4cf19a68b7f391-1" URI=""><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2002/06/xmldsig-filter2"><dsig-filter2:XPath xmlns:dsig-filter2="http://www.w3.org/2002/06/xmldsig-filter2" Filter="subtract">/descendant::ds:Signature</dsig-filter2:XPath></ds:Transform><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>kfsK43NJaZNZwDUkwbME+Sn+ziU/Rl4K0N2bvfbuwvk=</ds:DigestValue></ds:Reference><ds:Reference Type="http://uri.etsi.org/01903#SignedProperties" URI="#xades-id-71d80aa67ec7b20b8e4cf19a68b7f391"><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>9XuG2dOBjVAPr1y2a/DyVmXkBS6O2rlzrmXZ1rJFWvk=</ds:DigestValue></ds:Reference></ds:SignedInfo><ds:SignatureValue Id="value-id-71d80aa67ec7b20b8e4cf19a68b7f391">a5lA6Wa8N9s2W/zs3gOapeD13K9wHrjBpH3JEheADIvOdK5ZLZkCSTZqECv4oGp7Ucn8xChvsYTxnjxoL18ik7S6PCEeiRcI1fe5MgxIMhbD27XWnyVlJvqv/8QcDM4nO/14LQxIu6rWIBa31+Hb06X6+DOWiynzqodub2ShdTGYLw7alzEKQn1KKNg8Q27dH25exq6wf5HikdY2lGSiXAkyiQnS99i5JjYHUB3o8j9QCgFFt0PYZq3DA7VmSutxM31aEFQjNzEmQWu1TccDUusK1mv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qku6i8PpnOZ/CWw59xHZvWErtHqYBKa1xkGgDqK4/ePRJ6GyYBDa7BTOj3NMIiZMKeQ6/P7l1TR/iI8RhppgfO2iZflELffQNxLPoIjq244tciSo7ZwNCId2nuR+xv57U7TAKCa1R+ZjtpPDSjquam9sDAgMBAAGjQjBAMA4GA1UdDwEB/wQEAwIBBjAdBgNVHQ4EFgQUWR+QSJtTS13ijCwoFyFNMfln8FYwDwYDVR0TAQH/BAUwAwEB/zANBgkqhkiG9w0BAQsFAAOCAQEAh0cxgQrA1YtYFMqmjNMtDjLgAUIlEF1dzibBTun/5ZJ7iHtuu6eU1kXCRSixCeawrok83lsMh+71f7RC1c1iLqpk70G6P6aZhJSgkakg5LGHSv2GV3z+cZv7AcRh+IXhOg9J80jEKyBvJOIEOddDEenBtOYO6UwQHCpc6Mod7r5u6wGyNP4OhP01MpExZh5bddeG7Xq7W1o4yRPvLkTva95RUhxjoMjPW/GpNl1GeEeFPucrpP1HPVTW6EidGfoIj9IuIIr8Tb8inr5rbWYSoJ6e+Pl8+kLC/CJ/DUZzIvfdCJugl1zmkj+PIrQgj1i9tDq9uxlTESgDmwbj2ykkTw==</ds:X509Certificate></ds:X509Data></ds:KeyInfo><ds:Object><xades:QualifyingProperties xmlns:xades="http://uri.etsi.org/01903/v1.3.2#" Target="#id-71d80aa67ec7b20b8e4cf19a68b7f391"><xades:SignedProperties Id="xades-id-71d80aa67ec7b20b8e4cf19a68b7f391"><xades:SignedSignatureProperties><xades:SigningTime>2021-03-21T00:01:21Z</xades:SigningTime><xades:SigningCertificateV2><xades:Cert><xades:CertDigest><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha512"/><ds:DigestValue>ntZeV0sHGAklTjXeuhtXldqHcVA5ocMVqJagN9I2NTMyuyIIvs56Dp4wOqe7hdp2lV4a2dIKoCIlkAw9iI9P2Q==</ds:DigestValue></xades:CertDigest><xades:IssuerSerialV2>MFkwVKRSMFAxEjAQBgNVBAMMCVNESS03LjMuMjEVMBMGA1UECgwMVFNQLTcuMyBOYW1lMRYwFAYDVQQLDA1DRVJUIEZPUiBURVNUMQswCQYDVQQGEwJCRwIBCw==</xades:IssuerSerialV2></xades:Cert></xades:SigningCertificateV2></xades:SignedSignatureProperties><xades:SignedDataObjectProperties><xades:DataObjectFormat ObjectReference="#r-id-71d80aa67ec7b20b8e4cf19a68b7f391-1"><xades:MimeType>application/octet-stream</xades:MimeType></xades:DataObjectFormat></xades:SignedDataObjectProperties></xades:SignedProperties></xades:QualifyingProperties></ds:Object></ds:Signature></FILE> \ No newline at end of file
diff --git a/moaSig/moa-sig/src/test/resources/testdata/xades/7.4.1-TEST FILE.xml b/moaSig/moa-sig/src/test/resources/testdata/xades/7.4.1-TEST FILE.xml
new file mode 100644
index 0000000..cb46aa3
--- /dev/null
+++ b/moaSig/moa-sig/src/test/resources/testdata/xades/7.4.1-TEST FILE.xml
@@ -0,0 +1,3 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?><FILE>
+ <TEST>SAMPLE</TEST>
+<ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#" Id="id-6b91fee4c39d2f34b361ca30ca299c9e"><ds:SignedInfo><ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/><ds:SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"/><ds:Reference Id="r-id-6b91fee4c39d2f34b361ca30ca299c9e-1" URI=""><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2002/06/xmldsig-filter2"><dsig-filter2:XPath xmlns:dsig-filter2="http://www.w3.org/2002/06/xmldsig-filter2" Filter="subtract">/descendant::ds:Signature</dsig-filter2:XPath></ds:Transform><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>kfsK43NJaZNZwDUkwbME+Sn+ziU/Rl4K0N2bvfbuwvk=</ds:DigestValue></ds:Reference><ds:Reference Type="http://uri.etsi.org/01903#SignedProperties" URI="#xades-id-6b91fee4c39d2f34b361ca30ca299c9e"><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>YebLTJF7ZNLbKet6mXw4LIfcvivrvb43HvLnbDVb+yQ=</ds:DigestValue></ds:Reference></ds:SignedInfo><ds:SignatureValue Id="value-id-6b91fee4c39d2f34b361ca30ca299c9e">qx+Cu0dSHWgJRTFPuECcWKu8REOKjq8q1zmJ2qKpYoDBjgG1+B6hlE3bDg1RiSCUEBxeud5enhyfINLxW7Osy5xOvRThamfpvKSvTCdDBwVC2xXxNjPK3Vwrv/6TRSfS10weZeneBfdHKWf75FQCyqaXS/pA+LFKpWY6rnzeOoOMvk9sObpXMxMjX3l4S8EJDu6l+vpp/68TXD3yeyLhpzwZwg4QDFL4cDkBOhAu4ie4aDO5JpwcIj07XBIAH1XNYGWLLlsRz47rOwgDSOsIK3bdSTY7GR3dekRPn2EfEY/UdYcKtkm93I5OjuhqiCSH1c2ncL6LzszQ4DaPMPhOmg==</ds:SignatureValue><ds:KeyInfo><ds:X509Data><ds:X509Certificate>MIIEVTCCAz2gAwIBAgIBDTANBgkqhkiG9w0BAQsFADBQMRIwEAYDVQQDDAlTREktNy40LjExFTATBgNVBAoMDFRTUC03LjQgTmFtZTEWMBQGA1UECwwNQ0VSVCBGT1IgVEVTVDELMAkGA1UEBhMCQkcwHhcNMTYwMzIxMDAwMDEwWhcNMjYwMzIxMDAwMDEwWjBaMRgwFgYDVQQDDA9DRVJULVRFU1QtNy40LjExGTAXBgNVBAoMEFRMNyBPcmdhbml6YXRpb24xFjAUBgNVBAsMDUNFUlQgRk9SIFRFU1QxCzAJBgNVBAYTAkJHMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArxKpjEG7ncxsz33yoEG+KaBA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/H1s7cmCCNWpO+UGvSyxZXN1klZxqQOX/+nWCYG9HiLhT3RouwCqHCu33AgwjylRARq7fO/X1DJbEIsmHgUMZ95kSiq6misR/qVCvorTUor285xmEEKZWdEUlVzYg==</ds:X509Certificate></ds:X509Data></ds:KeyInfo><ds:Object><xades:QualifyingProperties xmlns:xades="http://uri.etsi.org/01903/v1.3.2#" Target="#id-6b91fee4c39d2f34b361ca30ca299c9e"><xades:SignedProperties Id="xades-id-6b91fee4c39d2f34b361ca30ca299c9e"><xades:SignedSignatureProperties><xades:SigningTime>2021-03-21T00:01:21Z</xades:SigningTime><xades:SigningCertificateV2><xades:Cert><xades:CertDigest><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha512"/><ds:DigestValue>19OeyRd8nzTrBP8aaKfEZF+wUCV9urumrWdJX9CbND9OECnxrBtnnOPNXOxgHncJ29l6nnjfK7JHYQQg/wPvMg==</ds:DigestValue></xades:CertDigest><xades:IssuerSerialV2>MFkwVKRSMFAxEjAQBgNVBAMMCVNESS03LjQuMTEVMBMGA1UECgwMVFNQLTcuNCBOYW1lMRYwFAYDVQQLDA1DRVJUIEZPUiBURVNUMQswCQYDVQQGEwJCRwIBDQ==</xades:IssuerSerialV2></xades:Cert></xades:SigningCertificateV2></xades:SignedSignatureProperties><xades:SignedDataObjectProperties><xades:DataObjectFormat ObjectReference="#r-id-6b91fee4c39d2f34b361ca30ca299c9e-1"><xades:MimeType>application/octet-stream</xades:MimeType></xades:DataObjectFormat></xades:SignedDataObjectProperties></xades:SignedProperties></xades:QualifyingProperties></ds:Object></ds:Signature></FILE> \ No newline at end of file