public class HttpsURLConnection extends HttpURLConnection
Modifier and Type | Class and Description |
---|---|
private static class |
HttpsURLConnection.KeyStoreConfig |
Modifier and Type | Field and Description |
---|---|
private static weblogic.security.acl.internal.AuthenticatedSubject |
kernelId |
private SSLClientInfo |
sslinfo |
private SSLSocketFactory |
sslSocketFactory
An SSLSocketFactory is needed in addition to the plain SocketFactory in
order to cater for proxies.
|
bufferedPostOS, debug, defaultConnectTimeout, http, ignoreProxy, ignoreSystemNonProxyHosts, inputStream, instProxy, rememberedException, requests, responses, setRequests, streamedPostOS, useHttp11
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
Constructor and Description |
---|
HttpsURLConnection(java.net.URL u) |
HttpsURLConnection(java.net.URL u,
java.net.Proxy p) |
HttpsURLConnection(java.net.URL u,
SSLClientInfo sslI) |
Modifier and Type | Method and Description |
---|---|
private void |
checkClientSSLInfo() |
void |
connect()
Make SSL connection to URL which was received in constructor.
|
java.lang.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.
|
(package private) HttpClient |
getHttp() |
protected HttpClient |
getHttpClient() |
protected java.lang.String |
getProtocol() |
javax.security.cert.X509Certificate[] |
getServerCertificateChain()
Returns the certificate chain that was received
from the server during the SSL handshake.
|
SSLClientInfo |
getSSLClientInfo() |
private SSLClientInfo |
getSSLInfo() |
javax.net.ssl.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.
|
private void |
loadIdentityToSSLClientInfo(SSLClientInfo sslinfo) |
void |
loadLocalIdentity(java.security.cert.Certificate[] certs,
java.security.PrivateKey privateKey)
Load local identity cert chain and private key for client
|
void |
loadLocalIdentity(java.io.InputStream[] stream)
Deprecated.
As of 12.2.2.0, use
HttpsURLConnection.loadLocalIdentity(Certificate[], PrivateKey) |
void |
loadLocalIdentity(java.io.InputStream certStream,
java.io.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(java.io.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.
|
private void |
updateFactoryClientInfo() |
addRequestProperty, disconnect, doSetRequests, finish, followRedirect, getAuthInfo, getConnectTimeout, getErrorStream, getHeaderField, getHeaderField, getHeaderFieldKey, getHeaderFields, getHttpVersion, getInputStream, getMethod, getMuxableSocket, getOutputStream, getProxyAuthString, getProxyBasicCredentials, getReadTimeout, getRequestProperties, getRequestProperty, getResponseCode, getServerBasicCredentials, getSocket, getSocketFactory, getTimeout, isConnected, p, setChunkedStreamingMode, setConnectTimeout, setDefaultSocketFactory, setEmptyRequestProperty, setFixedLengthStreamingMode, setIgnoreProxy, setIgnoreSystemNonProxyHosts, setInputStream, setMuxableSocket, setReadTimeout, setRequestMethod, setRequestProperty, setScavenger, setSocketFactory, setTimeout, u11, usingProxy, writeRequestForAsyncResponse, 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
private SSLSocketFactory sslSocketFactory
private SSLClientInfo sslinfo
private static final weblogic.security.acl.internal.AuthenticatedSubject kernelId
public HttpsURLConnection(java.net.URL u, SSLClientInfo sslI)
public HttpsURLConnection(java.net.URL u)
public HttpsURLConnection(java.net.URL u, java.net.Proxy p)
@Deprecated public void loadLocalIdentity(java.io.InputStream[] stream)
HttpsURLConnection.loadLocalIdentity(Certificate[], PrivateKey)
private SSLClientInfo getSSLInfo()
@Deprecated public void loadLocalIdentity(java.io.InputStream certStream, java.io.InputStream keyStream, char[] password)
HttpsURLConnection.loadLocalIdentity(Certificate[], PrivateKey)
public void loadLocalIdentity(java.security.cert.Certificate[] certs, java.security.PrivateKey privateKey)
@Deprecated public void setSSLClientCertificate(java.io.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 java.lang.String getCipherSuite()
public javax.security.cert.X509Certificate[] getServerCertificateChain() throws javax.net.ssl.SSLPeerUnverifiedException
javax.net.ssl.SSLPeerUnverifiedException
public javax.net.ssl.SSLSession getSSLSession()
public void connect() throws java.io.IOException
connect
in class HttpURLConnection
java.io.IOException
private void checkClientSSLInfo()
protected java.lang.String getProtocol()
getProtocol
in class HttpURLConnection
HttpClient getHttp()
protected HttpClient getHttpClient() throws java.io.IOException
getHttpClient
in class HttpURLConnection
java.io.IOException
public SSLClientInfo getSSLClientInfo()
private void updateFactoryClientInfo()
private void loadIdentityToSSLClientInfo(SSLClientInfo sslinfo)