|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassfish.jersey.client.SslConfig
public class SslConfig
SSL configuration for HTTPS connections.
An instance of this class may be added as a property of the ClientConfig
using ClientProperties.SSL_CONFIG.
| Constructor Summary | |
|---|---|
SslConfig()
Create SSL configuration with no HostnameVerifier
and a default SSLContext constructed using SSLContext.getInstance("SSL"). |
|
SslConfig(javax.net.ssl.HostnameVerifier verifier)
Create SSL configuration with a HostnameVerifier and a default SSLContext
constructed using SSLContext.getInstance("SSL"). |
|
SslConfig(javax.net.ssl.HostnameVerifier verifier,
javax.net.ssl.SSLContext context)
Create SSL configuration with a HostnameVerifier and a SSLContext. |
|
SslConfig(javax.net.ssl.SSLContext context)
Create SSL configuration with no HostnameVerifier and a specified
SSLContext. |
|
| Method Summary | |
|---|---|
javax.net.ssl.HostnameVerifier |
getHostnameVerifier()
Get the hostname verifier. |
javax.net.ssl.SSLContext |
getSSLContext()
Get the SSLContext. |
boolean |
isHostnameVerifierSet()
Check if a hostname verifier is configured in this SSL config. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SslConfig()
throws java.security.NoSuchAlgorithmException
HostnameVerifier
and a default SSLContext constructed using SSLContext.getInstance("SSL").
java.security.NoSuchAlgorithmException - if the SSLContext could not be created.
public SslConfig(javax.net.ssl.HostnameVerifier verifier)
throws java.security.NoSuchAlgorithmException
HostnameVerifier and a default SSLContext
constructed using SSLContext.getInstance("SSL").
verifier - the HostnameVerifier.
java.security.NoSuchAlgorithmException - if the SSLContext could not be created.
public SslConfig(javax.net.ssl.HostnameVerifier verifier,
javax.net.ssl.SSLContext context)
HostnameVerifier and a SSLContext.
verifier - the hostname verifier.context - the SSL context. Must not be null.public SslConfig(javax.net.ssl.SSLContext context)
HostnameVerifier and a specified
SSLContext.
context - the SSL context. Must not be null.| Method Detail |
|---|
public boolean isHostnameVerifierSet()
hostname verifier is configured in this SSL config.
true if a hostname verifier is configured, false otherwise.public javax.net.ssl.HostnameVerifier getHostnameVerifier()
hostname verifier.
null if not set.public javax.net.ssl.SSLContext getSSLContext()
SSLContext.
null.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||