public class HttpsURLConnection extends HttpURLConnection
defaultConnectTimeout, ignoreProxy, ignoreSystemNonProxyHosts, rememberedException
chunkLength, fixedContentLength, fixedContentLengthLong, HTTP_ACCEPTED, HTTP_BAD_GATEWAY, HTTP_BAD_METHOD, HTTP_BAD_REQUEST, HTTP_CLIENT_TIMEOUT, HTTP_CONFLICT, HTTP_CREATED, HTTP_ENTITY_TOO_LARGE, HTTP_FORBIDDEN, HTTP_GATEWAY_TIMEOUT, HTTP_GONE, HTTP_INTERNAL_ERROR, HTTP_LENGTH_REQUIRED, HTTP_MOVED_PERM, HTTP_MOVED_TEMP, HTTP_MULT_CHOICE, HTTP_NO_CONTENT, HTTP_NOT_ACCEPTABLE, HTTP_NOT_AUTHORITATIVE, HTTP_NOT_FOUND, HTTP_NOT_IMPLEMENTED, HTTP_NOT_MODIFIED, HTTP_OK, HTTP_PARTIAL, HTTP_PAYMENT_REQUIRED, HTTP_PRECON_FAILED, HTTP_PROXY_AUTH, HTTP_REQ_TOO_LONG, HTTP_RESET, HTTP_SEE_OTHER, HTTP_SERVER_ERROR, HTTP_UNAUTHORIZED, HTTP_UNAVAILABLE, HTTP_UNSUPPORTED_TYPE, HTTP_USE_PROXY, HTTP_VERSION, instanceFollowRedirects, method, responseCode, responseMessage
allowUserInteraction, connected, doInput, doOutput, ifModifiedSince, url, useCaches
Modifier and Type | Method and Description |
---|---|
void |
connect()
Make SSL connection to URL which was received in constructor.
|
String |
getCipherSuite()
Returns the cipher suite that was negotiatd for the SSL connection.
|
static SSLSocketFactory |
getDefaultSSLSocketFactory()
Gets the default static SSL socket factory to be used when
creating sockets for secure https URL connections.
|
HostnameVerifier |
getHostnameVerifier()
Gets the HostnameVerifier.
|
protected HttpClient |
getHttpClient() |
protected String |
getProtocol() |
X509Certificate[] |
getServerCertificateChain()
Returns the certificate chain that was received
from the server during the SSL handshake.
|
SSLSession |
getSSLSession()
Returns the SSL session for the connection.
|
SSLSocketFactory |
getSSLSocketFactory()
Gets the SSL socket factory to be used when creating sockets
for secure https URL connections.
|
TrustManager |
getTrustManager()
Gets the TrustManager.
|
void |
loadLocalIdentity(Certificate[] certs,
PrivateKey privateKey)
Load local identity cert chain and private key for client
|
void |
loadLocalIdentity(InputStream[] stream)
Deprecated.
As of 12.2.2.0, use
HttpsURLConnection.loadLocalIdentity(Certificate[], PrivateKey) |
void |
loadLocalIdentity(InputStream certStream,
InputStream keyStream,
char[] password)
Deprecated.
As of 12.2.2.0, use
HttpsURLConnection.loadLocalIdentity(Certificate[], PrivateKey) |
void |
setHostnameVerifier(HostnameVerifier hv)
Sets the HostnameVerifier.
|
void |
setSSLClientCertificate(InputStream[] certs)
Deprecated.
As of 12.2.2.0, use
HttpsURLConnection.loadLocalIdentity(Certificate[], PrivateKey) |
void |
setSSLSocketFactory(SSLSocketFactory sslSF)
Sets the SSL socket factory to be used when creating sockets
for secure https URL connections.
|
void |
setTrustManager(TrustManager tm)
Sets the TrustManager.
|
addRequestProperty, disconnect, doSetRequests, followRedirect, getAuthInfo, getConnectTimeout, getErrorStream, getHeaderField, getHeaderField, getHeaderFieldKey, getHeaderFields, getInputStream, getOutputStream, getProxyAuthString, getProxyBasicCredentials, getReadTimeout, getRequestProperties, getRequestProperty, getResponseCode, getServerBasicCredentials, getSocketFactory, getTimeout, setChunkedStreamingMode, setConnectTimeout, setDefaultSocketFactory, setEmptyRequestProperty, setFixedLengthStreamingMode, setIgnoreProxy, setIgnoreSystemNonProxyHosts, setMuxableSocket, setReadTimeout, setRequestMethod, setRequestProperty, setSocketFactory, setTimeout, usingProxy, writeRequests
getFollowRedirects, getHeaderFieldDate, getInstanceFollowRedirects, getPermission, getRequestMethod, getResponseMessage, setFixedLengthStreamingMode, setFollowRedirects, setInstanceFollowRedirects
getAllowUserInteraction, getContent, getContent, getContentEncoding, getContentLength, getContentLengthLong, getContentType, getDate, getDefaultAllowUserInteraction, getDefaultRequestProperty, getDefaultUseCaches, getDoInput, getDoOutput, getExpiration, getFileNameMap, getHeaderFieldInt, getHeaderFieldLong, getIfModifiedSince, getLastModified, getURL, getUseCaches, guessContentTypeFromName, guessContentTypeFromStream, setAllowUserInteraction, setContentHandlerFactory, setDefaultAllowUserInteraction, setDefaultRequestProperty, setDefaultUseCaches, setDoInput, setDoOutput, setFileNameMap, setIfModifiedSince, setUseCaches, toString
@Deprecated public void loadLocalIdentity(InputStream[] stream)
HttpsURLConnection.loadLocalIdentity(Certificate[], PrivateKey)
@Deprecated public void loadLocalIdentity(InputStream certStream, InputStream keyStream, char[] password)
HttpsURLConnection.loadLocalIdentity(Certificate[], PrivateKey)
public void loadLocalIdentity(Certificate[] certs, PrivateKey privateKey)
@Deprecated public void setSSLClientCertificate(InputStream[] certs)
HttpsURLConnection.loadLocalIdentity(Certificate[], PrivateKey)
public void setTrustManager(TrustManager tm)
public TrustManager getTrustManager()
public void setHostnameVerifier(HostnameVerifier hv)
public HostnameVerifier getHostnameVerifier()
public void setSSLSocketFactory(SSLSocketFactory sslSF)
public SSLSocketFactory getSSLSocketFactory()
public static SSLSocketFactory getDefaultSSLSocketFactory()
public String getCipherSuite()
public X509Certificate[] getServerCertificateChain() throws SSLPeerUnverifiedException
SSLPeerUnverifiedException
public SSLSession getSSLSession()
public void connect() throws IOException
connect
in class HttpURLConnection
IOException
protected String getProtocol()
getProtocol
in class HttpURLConnection
protected HttpClient getHttpClient() throws IOException
getHttpClient
in class HttpURLConnection
IOException