< prev index next >

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

Print this page

        

*** 45,56 **** import javax.net.ssl.SSLParameters; import javax.net.ssl.SSLProtocolException; import javax.net.ssl.SSLServerSocket; import javax.net.ssl.SSLSession; import javax.net.ssl.SSLSocket; ! import jdk.internal.misc.JavaNetInetAddressAccess; ! import jdk.internal.misc.SharedSecrets; /** * Implementation of an SSL socket. * <P> * This is a normal connection type socket, implementing SSL over some lower --- 45,56 ---- import javax.net.ssl.SSLParameters; import javax.net.ssl.SSLProtocolException; import javax.net.ssl.SSLServerSocket; import javax.net.ssl.SSLSession; import javax.net.ssl.SSLSocket; ! import jdk.internal.access.JavaNetInetAddressAccess; ! import jdk.internal.access.SharedSecrets; /** * Implementation of an SSL socket. * <P> * This is a normal connection type socket, implementing SSL over some lower
*** 1227,1237 **** // Note: If the local name service is not trustworthy, reverse // host name resolution should not be performed for endpoint // identification. Use the application original specified // hostname or IP address instead. ! // Get the original hostname via jdk.internal.misc.SharedSecrets InetAddress inetAddress = getInetAddress(); if (inetAddress == null) { // not connected return; } --- 1227,1237 ---- // Note: If the local name service is not trustworthy, reverse // host name resolution should not be performed for endpoint // identification. Use the application original specified // hostname or IP address instead. ! // Get the original hostname via jdk.internal.access.SharedSecrets InetAddress inetAddress = getInetAddress(); if (inetAddress == null) { // not connected return; }
< prev index next >