equal
deleted
inserted
replaced
40 |
40 |
41 import javax.crypto.BadPaddingException; |
41 import javax.crypto.BadPaddingException; |
42 import javax.net.ssl.*; |
42 import javax.net.ssl.*; |
43 import sun.misc.ManagedLocalsThread; |
43 import sun.misc.ManagedLocalsThread; |
44 |
44 |
45 import sun.misc.JavaNetInetAddressAccess; |
45 import jdk.internal.misc.JavaNetInetAddressAccess; |
46 import sun.misc.SharedSecrets; |
46 import jdk.internal.misc.SharedSecrets; |
47 |
47 |
48 /** |
48 /** |
49 * Implementation of an SSL socket. This is a normal connection type |
49 * Implementation of an SSL socket. This is a normal connection type |
50 * socket, implementing SSL over some lower level socket, such as TCP. |
50 * socket, implementing SSL over some lower level socket, such as TCP. |
51 * Because it is layered over some lower level socket, it MUST override |
51 * Because it is layered over some lower level socket, it MUST override |
2092 /* |
2092 /* |
2093 * Get the original application specified hostname. |
2093 * Get the original application specified hostname. |
2094 */ |
2094 */ |
2095 private static String getOriginalHostname(InetAddress inetAddress) { |
2095 private static String getOriginalHostname(InetAddress inetAddress) { |
2096 /* |
2096 /* |
2097 * Get the original hostname via sun.misc.SharedSecrets. |
2097 * Get the original hostname via jdk.internal.misc.SharedSecrets. |
2098 */ |
2098 */ |
2099 JavaNetInetAddressAccess jna = SharedSecrets.getJavaNetInetAddressAccess(); |
2099 JavaNetInetAddressAccess jna = SharedSecrets.getJavaNetInetAddressAccess(); |
2100 String originalHostname = jna.getOriginalHostName(inetAddress); |
2100 String originalHostname = jna.getOriginalHostName(inetAddress); |
2101 |
2101 |
2102 /* |
2102 /* |