< prev index next >

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

Print this page
*** 1,7 ***
  /*
!  * Copyright (c) 2018, 2022, Oracle and/or its affiliates. All rights reserved.
   * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   *
   * This code is free software; you can redistribute it and/or modify it
   * under the terms of the GNU General Public License version 2 only, as
   * published by the Free Software Foundation.  Oracle designates this
--- 1,7 ---
  /*
!  * Copyright (c) 2018, 2024, Oracle and/or its affiliates. All rights reserved.
   * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   *
   * This code is free software; you can redistribute it and/or modify it
   * under the terms of the GNU General Public License version 2 only, as
   * published by the Free Software Foundation.  Oracle designates this

*** 199,10 ***
--- 199,14 ---
  
      // Used by TLS 1.2 and TLS 1.3.
      private static SSLPossession createClientPossession(
              ClientHandshakeContext chc, String[] keyTypes) {
          X509ExtendedKeyManager km = chc.sslContext.getX509KeyManager();
+         if (SSLLogger.isOn && SSLLogger.isOn("ssl")) {
+             SSLLogger.finest("X509KeyManager class: " +
+                     km.getClass().getName());
+         }
          String clientAlias = null;
          if (chc.conContext.transport instanceof SSLSocketImpl socket) {
              clientAlias = km.chooseClientAlias(
                      keyTypes,
                      chc.peerSupportedAuthorities == null ? null :

*** 268,10 ***
--- 272,14 ---
      }
  
      private static SSLPossession createServerPossession(
              ServerHandshakeContext shc, String[] keyTypes) {
          X509ExtendedKeyManager km = shc.sslContext.getX509KeyManager();
+         if (SSLLogger.isOn && SSLLogger.isOn("ssl")) {
+             SSLLogger.finest("X509KeyManager class: " +
+                     km.getClass().getName());
+         }
          String serverAlias = null;
          for (String keyType : keyTypes) {
              if (shc.conContext.transport instanceof SSLSocketImpl socket) {
                  serverAlias = km.chooseServerAlias(keyType,
                          shc.peerSupportedAuthorities == null ? null :
< prev index next >