summaryrefslogtreecommitdiff
path: root/eaaf_modules
diff options
context:
space:
mode:
authorThomas <>2024-04-02 18:07:00 +0200
committerThomas <>2024-04-02 18:07:00 +0200
commit9ecefc83ada33a3f803431a21122f6389b9c0989 (patch)
treecd3d83af01ea9663d12000f939608db758da300c /eaaf_modules
parent285dcb02c86ee06c7b86a4b56dc1a78b15c17ad2 (diff)
downloadEAAF-Components-9ecefc83ada33a3f803431a21122f6389b9c0989.tar.gz
EAAF-Components-9ecefc83ada33a3f803431a21122f6389b9c0989.tar.bz2
EAAF-Components-9ecefc83ada33a3f803431a21122f6389b9c0989.zip
test(sl20): fix broken tests because default JAVA trust-store uses JKS
Diffstat (limited to 'eaaf_modules')
-rw-r--r--eaaf_modules/eaaf_module_auth_sl20/src/test/java/at/gv/egiz/eaaf/modules/auth/sl20/utils/AbstractJsonSecurityUtilsTest.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/eaaf_modules/eaaf_module_auth_sl20/src/test/java/at/gv/egiz/eaaf/modules/auth/sl20/utils/AbstractJsonSecurityUtilsTest.java b/eaaf_modules/eaaf_module_auth_sl20/src/test/java/at/gv/egiz/eaaf/modules/auth/sl20/utils/AbstractJsonSecurityUtilsTest.java
index 18ac843f..c9e6ea4e 100644
--- a/eaaf_modules/eaaf_module_auth_sl20/src/test/java/at/gv/egiz/eaaf/modules/auth/sl20/utils/AbstractJsonSecurityUtilsTest.java
+++ b/eaaf_modules/eaaf_module_auth_sl20/src/test/java/at/gv/egiz/eaaf/modules/auth/sl20/utils/AbstractJsonSecurityUtilsTest.java
@@ -55,6 +55,9 @@ public abstract class AbstractJsonSecurityUtilsTest {
*/
@BeforeClass
public static void classInitializer() {
+
+ System.setProperty("javax.net.ssl.trustStoreType", "jks");
+
IAIK.addAsProvider();
ECCelerate.addAsProvider();
@@ -68,7 +71,8 @@ public abstract class AbstractJsonSecurityUtilsTest {
public static final void classFinisher() {
Security.removeProvider(IAIK.getInstance().getName());
Security.removeProvider(ECCelerate.getInstance().getName());
-
+ System.clearProperty("javax.net.ssl.trustStoreType");
+
}
protected abstract void setRsaSigningKey();