Skip to content

Commit 6700a49

Browse files
author
Andrew Lu
committed
8312383: Log X509ExtendedKeyManager implementation class name in TLS/SSL connection
Backport-of: bdd1aebea379b63ae405827074530ef8e8a7c239
1 parent d554437 commit 6700a49

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/java.base/share/classes/sun/security/ssl/X509Authentication.java

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2018, 2021, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2018, 2024, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -203,6 +203,10 @@ public static SSLPossession createPossession(
203203
private static SSLPossession createClientPossession(
204204
ClientHandshakeContext chc, String[] keyTypes) {
205205
X509ExtendedKeyManager km = chc.sslContext.getX509KeyManager();
206+
if (SSLLogger.isOn && SSLLogger.isOn("ssl")) {
207+
SSLLogger.finest("X509KeyManager class: " +
208+
km.getClass().getName());
209+
}
206210
String clientAlias = null;
207211
if (chc.conContext.transport instanceof SSLSocketImpl socket) {
208212
clientAlias = km.chooseClientAlias(
@@ -272,6 +276,10 @@ private static SSLPossession createClientPossession(
272276
private static SSLPossession createServerPossession(
273277
ServerHandshakeContext shc, String[] keyTypes) {
274278
X509ExtendedKeyManager km = shc.sslContext.getX509KeyManager();
279+
if (SSLLogger.isOn && SSLLogger.isOn("ssl")) {
280+
SSLLogger.finest("X509KeyManager class: " +
281+
km.getClass().getName());
282+
}
275283
String serverAlias = null;
276284
for (String keyType : keyTypes) {
277285
if (shc.conContext.transport instanceof SSLSocketImpl socket) {

0 commit comments

Comments
 (0)