HttpsURLConnection

public abstract class HttpsURLConnection extends HttpURLConnection

HttpsURLConnection extends HttpURLConnection with support for https-specific features.

See http://www.w3.org/pub/WWW/Protocols/ and RFC 2818 for more details on the https specification.

This class uses HostnameVerifier and SSLSocketFactory. There are default implementations defined for both classes. However, the implementations can be replaced on a per-class (static) or per-instance basis. All new HttpsURLConnections instances will be assigned the "default" static values at instance creation, but they can be overriden by calling the appropriate per-instance set method(s) before connecting.

Inherited Constant Summary

Field Summary

protected HostnameVerifier hostnameVerifier The hostnameVerifier for this object.

Inherited Field Summary

Protected Constructor Summary

HttpsURLConnection(URL url)
Creates an HttpsURLConnection using the URL specified.

Public Method Summary

abstract String
getCipherSuite()
Returns the cipher suite in use on this connection.
static HostnameVerifier
getDefaultHostnameVerifier()
Gets the default HostnameVerifier that is inherited by new instances of this class.
static SSLSocketFactory
getDefaultSSLSocketFactory()
Gets the default static SSLSocketFactory that is inherited by new instances of this class.
HostnameVerifier
getHostnameVerifier()
Gets the HostnameVerifier in place on this instance.
abstract Certificate[]
getLocalCertificates()
Returns the certificate(s) that were sent to the server during handshaking.
Principal
getLocalPrincipal()
Returns the principal that was sent to the server during handshaking.
Principal