Skip to content

Commit c782d4c

Browse files
author
Andrew Lu
committed
8312383: Log X509ExtendedKeyManager implementation class name in TLS/SSL connection
Reviewed-by: lucy Backport-of: bdd1aebea379b63ae405827074530ef8e8a7c239
1 parent 12a2863 commit c782d4c

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, 2020, 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
@@ -226,6 +226,10 @@ public SSLPossession createPossession(HandshakeContext context) {
226226
private SSLPossession createClientPossession(
227227
ClientHandshakeContext chc, String keyType) {
228228
X509ExtendedKeyManager km = chc.sslContext.getX509KeyManager();
229+
if (SSLLogger.isOn && SSLLogger.isOn("ssl")) {
230+
SSLLogger.finest("X509KeyManager class: " +
231+
km.getClass().getName());
232+
}
229233
String clientAlias = null;
230234
if (chc.conContext.transport instanceof SSLSocketImpl) {
231235
clientAlias = km.chooseClientAlias(
@@ -283,6 +287,10 @@ private SSLPossession createClientPossession(
283287
private SSLPossession createServerPossession(
284288
ServerHandshakeContext shc, String keyType) {
285289
X509ExtendedKeyManager km = shc.sslContext.getX509KeyManager();
290+
if (SSLLogger.isOn && SSLLogger.isOn("ssl")) {
291+
SSLLogger.finest("X509KeyManager class: " +
292+
km.getClass().getName());
293+
}
286294
String serverAlias = null;
287295
if (shc.conContext.transport instanceof SSLSocketImpl) {
288296
serverAlias = km.chooseServerAlias(keyType,

0 commit comments

Comments
 (0)