public abstract class

HttpsURLConnection

extends HttpURLConnection
java.lang.Object
   ↳ java.net.URLConnection
     ↳ java.net.HttpURLConnection
       ↳ com.sun.net.ssl.HttpsURLConnection

This class is deprecated.
As of JDK 1.4, this implementation-specific class was replaced by HttpsURLConnection.

Class Overview

HTTP URL connection with support for HTTPS-specific features. See the spec for details.

Summary

[Expand]
Inherited Constants
From class java.net.HttpURLConnection
Fields
protected HostnameVerifier hostnameVerifier
[Expand]
Inherited Fields
From class java.net.HttpURLConnection
From class java.net.URLConnection
Public Constructors
HttpsURLConnection(URL url)
Public Methods
abstract String getCipherSuite()
Returns the cipher suite in use on this connection.
static HostnameVerifier getDefaultHostnameVerifier()
Gets the default HostnameVerifier.
static SSLSocketFactory getDefaultSSLSocketFactory()
Gets the default SSL socket factory.
HostnameVerifier getHostnameVerifier()
Gets the HostnameVerifier.
SSLSocketFactory getSSLSocketFactory()
Gets the SSL socket factory.
abstract X509Certificate[] getServerCertificateChain()
Returns the server's X.509 certificate chain, or null if the server did not authenticate.
static void setDefaultHostnameVerifier(HostnameVerifier v)
Sets the default HostnameVerifier inherited when an instance of this class is created.
static void setDefaultSSLSocketFactory(SSLSocketFactory sf)
Sets the default SSL socket factory inherited when an instance of this class is created.
void setHostnameVerifier(HostnameVerifier v)
Sets the HostnameVerifier.
void setSSLSocketFactory(SSLSocketFactory sf)
Sets the SSL socket factory.
[Expand]
Inherited Methods
From class java.net.HttpURLConnection
From class java.net.URLConnection
From class java.lang.Object

Fields

protected HostnameVerifier hostnameVerifier

Public Constructors

public HttpsURLConnection (URL url)

Throws
IOException

Public Methods

public abstract String getCipherSuite ()

Returns the cipher suite in use on this connection.

Returns
  • the cipher suite

public static HostnameVerifier getDefaultHostnameVerifier ()

Gets the default HostnameVerifier.

Returns
  • the default host name verifier

public static SSLSocketFactory getDefaultSSLSocketFactory ()

Gets the default SSL socket factory.

Returns
  • the default SSL socket factory

public HostnameVerifier getHostnameVerifier ()

Gets the HostnameVerifier.

Returns
  • the host name verifier

public SSLSocketFactory getSSLSocketFactory ()

Gets the SSL socket factory.

Returns
  • the SSL socket factory

public abstract X509Certificate[] getServerCertificateChain ()

Returns the server's X.509 certificate chain, or null if the server did not authenticate.

Returns
  • the server certificate chain

public static void setDefaultHostnameVerifier (HostnameVerifier v)

Sets the default HostnameVerifier inherited when an instance of this class is created.

Parameters
v the default host name verifier

public static void setDefaultSSLSocketFactory (SSLSocketFactory sf)

Sets the default SSL socket factory inherited when an instance of this class is created.

Parameters
sf the default SSL socket factory

public void setHostnameVerifier (HostnameVerifier v)

Sets the HostnameVerifier.

Parameters
v the host name verifier

public void setSSLSocketFactory (SSLSocketFactory sf)

Sets the SSL socket factory.

Parameters
sf the SSL socket factory