|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.jersey.client.urlconnection.HTTPSProperties
public class HTTPSProperties
HTTPS properties for SSL configuration of a HttpsURLConnection
.
An instance of this class may be added as a property of the Client
or ClientRequest
using the property name
PROPERTY_HTTPS_PROPERTIES
.
Field Summary | |
---|---|
static java.lang.String |
PROPERTY_HTTPS_PROPERTIES
HTTPS properties property. |
Constructor Summary | |
---|---|
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 . |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String PROPERTY_HTTPS_PROPERTIES
HTTPSProperties
.
If the property is absent then HTTPS properties will not be used.
Constructor Detail |
---|
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.Method Detail |
---|
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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |