|
||||||||||
| 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(HostnameVerifier verifier)
Create SSL configuration with a HostnameVerifier and a default SSLContext
constructed using SSLContext.getInstance("SSL"). |
|
SslConfig(HostnameVerifier verifier,
SSLContext context)
Create SSL configuration with a HostnameVerifier and a SSLContext. |
|
SslConfig(SSLContext context)
Create SSL configuration with no HostnameVerifier and a specified
SSLContext. |
|
| Method Summary | |
|---|---|
HostnameVerifier |
getHostnameVerifier()
Get the hostname verifier. |
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 NoSuchAlgorithmException
HostnameVerifier
and a default SSLContext constructed using SSLContext.getInstance("SSL").
NoSuchAlgorithmException - if the SSLContext could not be created.
public SslConfig(HostnameVerifier verifier)
throws NoSuchAlgorithmException
HostnameVerifier and a default SSLContext
constructed using SSLContext.getInstance("SSL").
verifier - the HostnameVerifier.
NoSuchAlgorithmException - if the SSLContext could not be created.
public SslConfig(HostnameVerifier verifier,
SSLContext context)
HostnameVerifier and a SSLContext.
verifier - the hostname verifier.context - the SSL context. Must not be null.public SslConfig(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 HostnameVerifier getHostnameVerifier()
hostname verifier.
null if not set.public SSLContext getSSLContext()
SSLContext.
null.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||