public class ClientSSLSetupHandler extends Object implements org.apache.http.nio.reactor.ssl.SSLSetupHandler
| Modifier and Type | Field and Description |
|---|---|
static org.apache.http.conn.ssl.X509HostnameVerifier |
ALLOW_ALL
The ALLOW_ALL HostnameVerifier essentially turns hostname verification
off.
|
static org.apache.http.conn.ssl.X509HostnameVerifier |
DEFAULT
The DEFAULT HostnameVerifier works the same way as Curl and Firefox.
|
static org.apache.http.conn.ssl.X509HostnameVerifier |
DEFAULT_AND_LOCALHOST
The DEFAULT_AND_LOCALHOST HostnameVerifier works like the DEFAULT
one with one additional relaxation: a host of "localhost",
"localhost.localdomain", "127.0.0.1", "::1" will always pass, no matter
what is in the server's certificate.
|
static org.apache.http.conn.ssl.X509HostnameVerifier |
STRICT
The STRICT HostnameVerifier works the same way as java.net.URL in Sun
Java 1.4, Sun Java 5, Sun Java 6.
|
| Constructor and Description |
|---|
ClientSSLSetupHandler(org.apache.http.conn.ssl.X509HostnameVerifier hostnameVerifier,
RevocationVerificationManager verificationManager) |
| Modifier and Type | Method and Description |
|---|---|
void |
initalize(SSLEngine sslengine) |
void |
setHttpsProtocols(String[] httpsProtocols)
Set HTTPS protocols if mentioned in axis2 configuration
|
void |
setPreferredCiphers(String[] enabledCiphers)
Set the enabled Cipher suites.
|
void |
verify(org.apache.http.nio.reactor.IOSession iosession,
SSLSession sslsession) |
public static final org.apache.http.conn.ssl.X509HostnameVerifier DEFAULT
public static final org.apache.http.conn.ssl.X509HostnameVerifier DEFAULT_AND_LOCALHOST
public static final org.apache.http.conn.ssl.X509HostnameVerifier STRICT
public static final org.apache.http.conn.ssl.X509HostnameVerifier ALLOW_ALL
public ClientSSLSetupHandler(org.apache.http.conn.ssl.X509HostnameVerifier hostnameVerifier,
RevocationVerificationManager verificationManager)
public void initalize(SSLEngine sslengine)
initalize in interface org.apache.http.nio.reactor.ssl.SSLSetupHandlerpublic void verify(org.apache.http.nio.reactor.IOSession iosession,
SSLSession sslsession)
throws SSLException
verify in interface org.apache.http.nio.reactor.ssl.SSLSetupHandlerSSLExceptionpublic void setHttpsProtocols(String[] httpsProtocols)
httpsProtocols - Array of protocolspublic void setPreferredCiphers(String[] enabledCiphers)
enabledCiphers - Array of ciphersCopyright © 2005–2019 Apache Software Foundation. All rights reserved.