diff options
author | Thomas Lenz <thomas.lenz@egiz.gv.at> | 2020-10-07 20:32:11 +0200 |
---|---|---|
committer | Thomas Lenz <thomas.lenz@egiz.gv.at> | 2020-10-07 20:32:11 +0200 |
commit | c9cdc12f87ea6ee188de6862ce4935d9b8ef36ce (patch) | |
tree | 4c09c0355f23fa6c6eedfe632151e5d458999e37 /eaaf_modules/eaaf_module_moa-sig | |
parent | 9d471615cd30feb11de4a39a18ad5cdf476fa2a9 (diff) | |
download | EAAF-Components-c9cdc12f87ea6ee188de6862ce4935d9b8ef36ce.tar.gz EAAF-Components-c9cdc12f87ea6ee188de6862ce4935d9b8ef36ce.tar.bz2 EAAF-Components-c9cdc12f87ea6ee188de6862ce4935d9b8ef36ce.zip |
implement work-around to fix possible incompatibility between IAIK JCE/Eccelerate and JWS lib in case of ECC keys
Diffstat (limited to 'eaaf_modules/eaaf_module_moa-sig')
-rw-r--r-- | eaaf_modules/eaaf_module_moa-sig/src/main/java/at/gv/egiz/eaaf/modules/sigverify/moasig/impl/MoaSigInitializer.java | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/eaaf_modules/eaaf_module_moa-sig/src/main/java/at/gv/egiz/eaaf/modules/sigverify/moasig/impl/MoaSigInitializer.java b/eaaf_modules/eaaf_module_moa-sig/src/main/java/at/gv/egiz/eaaf/modules/sigverify/moasig/impl/MoaSigInitializer.java index ae8c2c97..880b3791 100644 --- a/eaaf_modules/eaaf_module_moa-sig/src/main/java/at/gv/egiz/eaaf/modules/sigverify/moasig/impl/MoaSigInitializer.java +++ b/eaaf_modules/eaaf_module_moa-sig/src/main/java/at/gv/egiz/eaaf/modules/sigverify/moasig/impl/MoaSigInitializer.java @@ -49,9 +49,11 @@ public class MoaSigInitializer { log.info("Initializing MOA-Sig signature-verification service ... "); log.info("Loading Java security providers."); - IAIK.addAsProvider(); - ECCelerate.addAsProvider(); - + //IAIK.addAsProvider(); + //ECCelerate.addAsProvider(); + Security.addProvider(new IAIK()); + Security.addProvider(new ECCelerate()); + try { LoggingContextManager.getInstance().setLoggingContext(new LoggingContext("startup")); log.debug("MOA-Sig library initialization process ... "); |