File tree 1 file changed +14
-1
lines changed
src/jdk.crypto.cryptoki/share/classes/sun/security/pkcs11
1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change 25
25
26
26
/*
27
27
* ===========================================================================
28
- * (c) Copyright IBM Corp. 2023, 2023 All Rights Reserved
28
+ * (c) Copyright IBM Corp. 2023, 2025 All Rights Reserved
29
29
* ===========================================================================
30
30
*/
31
31
37
37
import java .nio .charset .StandardCharsets ;
38
38
import java .util .*;
39
39
40
+ import sun .security .util .Debug ;
40
41
import sun .security .util .PropertyExpander ;
41
42
42
43
import sun .security .pkcs11 .wrapper .*;
@@ -1084,11 +1085,23 @@ private void parseHandleStartupErrors(String keyword) throws IOException {
1084
1085
class ConfigurationException extends IOException {
1085
1086
@ Serial
1086
1087
private static final long serialVersionUID = 254492758807673194L ;
1088
+
1089
+ private static final Debug configDebug = Debug .getInstance ("sunpkcs11" );
1090
+
1091
+ private static void debug (String msg ) {
1092
+ // If debugging is enabled, use the Debug class for additional sunpkcs11 logging.
1093
+ if (configDebug != null ) {
1094
+ configDebug .println (msg );
1095
+ }
1096
+ }
1097
+
1087
1098
ConfigurationException (String msg ) {
1088
1099
super (msg );
1100
+ debug (msg );
1089
1101
}
1090
1102
1091
1103
ConfigurationException (String msg , Throwable e ) {
1092
1104
super (msg , e );
1105
+ debug (msg );
1093
1106
}
1094
1107
}
You can’t perform that action at this time.
0 commit comments