java.lang.Object | |||
↳ | java.net.URLConnection | ||
↳ | java.net.HttpURLConnection | ||
↳ | javax.net.ssl.HttpsURLConnection |
This abstract subclass of HttpURLConnection
defines methods for
managing HTTPS connections according to the description given by RFC 2818.
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.net.HttpURLConnection
|
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
hostnameVerifier | The host name verifier used by this connection. |
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.net.HttpURLConnection
| |||||||||||
From class
java.net.URLConnection
|
Protected Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates a new
HttpsURLConnection with the specified URL . |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns the name of the cipher suite negotiated during the SSL handshake.
| |||||||||||
Returns the default hostname verifier.
| |||||||||||
Returns the default SSL socket factory for new instances.
| |||||||||||
Returns the hostname verifier used by this instance.
| |||||||||||
Returns the list of local certificates used during the handshake.
| |||||||||||
Returns the
Principal used to identify the local host during the handshake. | |||||||||||
Returns the
Principal identifying the peer. | |||||||||||
Returns the SSL socket factory used by this instance.
| |||||||||||
Return the list of certificates identifying the peer during the
handshake.
| |||||||||||
Sets the default hostname verifier to be used by new instances.
| |||||||||||
Sets the default SSL socket factory to be used by new instances.
| |||||||||||
Sets the hostname verifier for this instance.
| |||||||||||
Sets the SSL socket factory for this instance.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class java.net.HttpURLConnection
| |||||||||||
From class java.net.URLConnection
| |||||||||||
From class java.lang.Object
|
The host name verifier used by this connection. It is initialized from the default hostname verifier setDefaultHostnameVerifier(HostnameVerifier) or getDefaultHostnameVerifier().
Creates a new HttpsURLConnection
with the specified URL
.
url | the URL to connect to. |
---|
Returns the name of the cipher suite negotiated during the SSL handshake.
IllegalStateException | if no connection has been established yet. |
---|
Returns the default hostname verifier.
Returns the default SSL socket factory for new instances.
Returns the hostname verifier used by this instance.
Returns the list of local certificates used during the handshake. These certificates were sent to the peer.
null
if no certificates were used during the handshake.IllegalStateException | if no connection has been established yet. |
---|
Returns the Principal
used to identify the local host during the handshake.
Principal
used to identify the local host during the handshake, or
null
if none was used.IllegalStateException | if no connection has been established yet. |
---|
Returns the Principal
identifying the peer.
Principal
identifying the peer.SSLPeerUnverifiedException | if the identity of the peer has not been verified. |
---|---|
IllegalStateException | if no connection has been established yet. |
Returns the SSL socket factory used by this instance.
Return the list of certificates identifying the peer during the handshake.
SSLPeerUnverifiedException | if the identity of the peer has not been verified.. |
---|---|
IllegalStateException | if no connection has been established yet. |
Sets the default hostname verifier to be used by new instances.
v | the new default hostname verifier |
---|
IllegalArgumentException | if the specified verifier is null . |
---|
Sets the default SSL socket factory to be used by new instances.
sf | the new default SSL socket factory. |
---|
IllegalArgumentException | if the specified socket factory is null . |
---|
Sets the hostname verifier for this instance.
v | the hostname verifier for this instance. |
---|
IllegalArgumentException | if the specified verifier is null . |
---|
Sets the SSL socket factory for this instance.
sf | the SSL socket factory to be used by this instance. |
---|
IllegalArgumentException | if the specified socket factory is null . |
---|