From 23d920a9479ed021bdfbcab6aec8b1d5ef98defb Mon Sep 17 00:00:00 2001 From: Kun Wang Date: Sat, 11 May 2024 15:43:23 +0800 Subject: [PATCH] Unify the system property bgmprovider.t12gmciphersuite into Config management --- jsse/src/main/java/org/openeuler/BGMJSSEConfig.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/jsse/src/main/java/org/openeuler/BGMJSSEConfig.java b/jsse/src/main/java/org/openeuler/BGMJSSEConfig.java index 32abc1d..8c3ef97 100644 --- a/jsse/src/main/java/org/openeuler/BGMJSSEConfig.java +++ b/jsse/src/main/java/org/openeuler/BGMJSSEConfig.java @@ -34,6 +34,8 @@ public class BGMJSSEConfig { // Support RFC 8998 : ShangMi (SM) Cipher Suites for TLS 1.3 private static boolean enableRFC8998 = false; + private static boolean enableT12GmCipherSuite = false; + static { initConfig(); } @@ -45,6 +47,7 @@ public class BGMJSSEConfig { enableSSLContext = Config.enable("jsse.sslContext"); enableKeyStore = Config.enable("jsse.keystore"); enableRFC8998 = Config.enable("bgmprovider.tls.enableRFC8998", "false"); + enableT12GmCipherSuite = Config.enable("bgmprovider.t12gmciphersuite", "false"); } private BGMJSSEConfig() { @@ -74,4 +77,8 @@ public class BGMJSSEConfig { public static boolean enableRFC8998() { return enableRFC8998; } + + public static boolean enableT12GmCipherSuite() { + return enableT12GmCipherSuite; + } } -- Gitee