public class HTTPSProperties
extends java.lang.Object
HttpsURLConnection.
An instance of this class may be added as a property of the Client
or ClientRequest using the property name
PROPERTY_HTTPS_PROPERTIES.
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
PROPERTY_HTTPS_PROPERTIES
HTTPS properties property.
|
| Constructor and Description |
|---|
HTTPSProperties()
Construct default properties with no
HostnameVerifier
and a SSLContext constructed using SSLContext.getInstance("SSL"). |
HTTPSProperties(javax.net.ssl.HostnameVerifier hv)
Construct with a
HostnameVerifier and a SSLContext
constructed using SSLContext.getInstance("SSL"). |
HTTPSProperties(javax.net.ssl.HostnameVerifier hv,
javax.net.ssl.SSLContext c)
Construct with a
HostnameVerifier and a SSLContext. |
| Modifier and Type | Method and Description |
|---|---|
javax.net.ssl.HostnameVerifier |
getHostnameVerifier()
Get the P
HostnameVerifier. |
javax.net.ssl.SSLContext |
getSSLContext()
Get the
SSLContext. |
void |
setConnection(javax.net.ssl.HttpsURLConnection connection)
Set the
HttpsURLConnection with the HTTPS properties. |
public static final java.lang.String PROPERTY_HTTPS_PROPERTIES
HTTPSProperties.
If the property is absent then HTTPS properties will not be used.public HTTPSProperties()
throws java.security.NoSuchAlgorithmException
HostnameVerifier
and a SSLContext constructed using SSLContext.getInstance("SSL").java.security.NoSuchAlgorithmException - if the SSLContext could not
be created.public HTTPSProperties(javax.net.ssl.HostnameVerifier hv)
throws java.security.NoSuchAlgorithmException
HostnameVerifier and a SSLContext
constructed using SSLContext.getInstance("SSL").hv - the HostnameVerifier.java.security.NoSuchAlgorithmException - if the SSLContext could not
be created.public HTTPSProperties(javax.net.ssl.HostnameVerifier hv,
javax.net.ssl.SSLContext c)
HostnameVerifier and a SSLContext.hv - the HostnameVerifier.c - the SSLContext. Must not be null.public javax.net.ssl.HostnameVerifier getHostnameVerifier()
HostnameVerifier.null if not set
at construction.public javax.net.ssl.SSLContext getSSLContext()
SSLContext.public void setConnection(javax.net.ssl.HttpsURLConnection connection)
HttpsURLConnection with the HTTPS properties.connection - the HttpsURLConnection.Copyright © 2016 Oracle Corporation. All Rights Reserved.