File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
extensions/tls-registry/runtime/src/main/java/io/quarkus/tls/runtime/keystores Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -84,6 +84,11 @@ public TrustManager[] apply(String s) throws Exception {
84
84
}
85
85
86
86
private TrustManager [] getWrappedTrustManagers (TrustManager [] tms ) {
87
+ // If we do not find any trust managers (for example in the SNI case, where we do not have a trust manager for
88
+ // a given name), return `null` and not an empty array.
89
+ if (tms == null ) {
90
+ return null ;
91
+ }
87
92
var wrapped = new TrustManager [tms .length ];
88
93
for (int i = 0 ; i < tms .length ; i ++) {
89
94
var manager = tms [i ];
@@ -161,4 +166,10 @@ public boolean equals(Object obj) {
161
166
}
162
167
return false ;
163
168
}
169
+
170
+ public String toString () {
171
+ return "ExpiryTrustOptions[" +
172
+ "delegate=" + delegate + ", " +
173
+ "policy=" + policy + ']' ;
174
+ }
164
175
}
You can’t perform that action at this time.
0 commit comments