Skip to content
This repository was archived by the owner on Jul 17, 2024. It is now read-only.

Commit 2ec72f9

Browse files
Prajwal Kumaraswamycoffeys
authored andcommitted
8312383: Log X509ExtendedKeyManager implementation class name in TLS/SSL connection
Backport-of: bdd1aebea379b63ae405827074530ef8e8a7c239
1 parent 82c3743 commit 2ec72f9

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, 2022, 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
@@ -201,6 +201,10 @@ public static SSLPossession createPossession(
201201
private static SSLPossession createClientPossession(
202202
ClientHandshakeContext chc, String[] keyTypes) {
203203
X509ExtendedKeyManager km = chc.sslContext.getX509KeyManager();
204+
if (SSLLogger.isOn && SSLLogger.isOn("ssl")) {
205+
SSLLogger.finest("X509KeyManager class: " +
206+
km.getClass().getName());
207+
}
204208
String clientAlias = null;
205209
if (chc.conContext.transport instanceof SSLSocketImpl socket) {
206210
clientAlias = km.chooseClientAlias(
@@ -270,6 +274,10 @@ private static SSLPossession createClientPossession(
270274
private static SSLPossession createServerPossession(
271275
ServerHandshakeContext shc, String[] keyTypes) {
272276
X509ExtendedKeyManager km = shc.sslContext.getX509KeyManager();
277+
if (SSLLogger.isOn && SSLLogger.isOn("ssl")) {
278+
SSLLogger.finest("X509KeyManager class: " +
279+
km.getClass().getName());
280+
}
273281
String serverAlias = null;
274282
for (String keyType : keyTypes) {
275283
if (shc.conContext.transport instanceof SSLSocketImpl socket) {

0 commit comments

Comments
 (0)