@Deprecated public class SSLLayeringStrategy extends java.lang.Object implements LayeringStrategy
Modifier and Type | Field and Description |
---|---|
private org.apache.http.conn.ssl.X509HostnameVerifier |
hostnameVerifier
Deprecated.
|
static java.lang.String |
SSL
Deprecated.
|
private javax.net.ssl.SSLContext |
sslContext
Deprecated.
|
static java.lang.String |
SSLV2
Deprecated.
|
static java.lang.String |
TLS
Deprecated.
|
Constructor and Description |
---|
SSLLayeringStrategy(java.security.KeyStore truststore)
Deprecated.
|
SSLLayeringStrategy(java.security.KeyStore keystore,
java.lang.String keystorePassword)
Deprecated.
|
SSLLayeringStrategy(java.security.KeyStore keystore,
java.lang.String keystorePassword,
java.security.KeyStore truststore)
Deprecated.
|
SSLLayeringStrategy(javax.net.ssl.SSLContext sslContext)
Deprecated.
|
SSLLayeringStrategy(javax.net.ssl.SSLContext sslContext,
org.apache.http.conn.ssl.X509HostnameVerifier hostnameVerifier)
Deprecated.
|
SSLLayeringStrategy(java.lang.String algorithm,
java.security.KeyStore keystore,
java.lang.String keystorePassword,
java.security.KeyStore truststore,
java.security.SecureRandom random,
org.apache.http.conn.ssl.TrustStrategy trustStrategy,
org.apache.http.conn.ssl.X509HostnameVerifier hostnameVerifier)
Deprecated.
|
SSLLayeringStrategy(java.lang.String algorithm,
java.security.KeyStore keystore,
java.lang.String keystorePassword,
java.security.KeyStore truststore,
java.security.SecureRandom random,
org.apache.http.conn.ssl.X509HostnameVerifier hostnameVerifier)
Deprecated.
|
SSLLayeringStrategy(org.apache.http.conn.ssl.TrustStrategy trustStrategy)
Deprecated.
|
SSLLayeringStrategy(org.apache.http.conn.ssl.TrustStrategy trustStrategy,
org.apache.http.conn.ssl.X509HostnameVerifier hostnameVerifier)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
private static javax.net.ssl.SSLContext |
createSSLContext(java.lang.String algorithm,
java.security.KeyStore keystore,
java.lang.String keystorePassword,
java.security.KeyStore truststore,
java.security.SecureRandom random,
org.apache.http.conn.ssl.TrustStrategy trustStrategy)
Deprecated.
|
static SSLLayeringStrategy |
getDefaultStrategy()
Deprecated.
|
static SSLLayeringStrategy |
getSystemDefaultStrategy()
Deprecated.
|
protected void |
initializeEngine(javax.net.ssl.SSLEngine engine)
Deprecated.
|
boolean |
isSecure()
Deprecated.
|
org.apache.http.nio.reactor.ssl.SSLIOSession |
layer(org.apache.http.nio.reactor.IOSession iosession)
Deprecated.
|
protected void |
verifySession(org.apache.http.nio.reactor.IOSession iosession,
javax.net.ssl.SSLSession sslsession)
Deprecated.
|
public static final java.lang.String TLS
public static final java.lang.String SSL
public static final java.lang.String SSLV2
private final javax.net.ssl.SSLContext sslContext
private final org.apache.http.conn.ssl.X509HostnameVerifier hostnameVerifier
public SSLLayeringStrategy(java.lang.String algorithm, java.security.KeyStore keystore, java.lang.String keystorePassword, java.security.KeyStore truststore, java.security.SecureRandom random, org.apache.http.conn.ssl.X509HostnameVerifier hostnameVerifier) throws java.security.NoSuchAlgorithmException, java.security.KeyManagementException, java.security.KeyStoreException, java.security.UnrecoverableKeyException
java.security.NoSuchAlgorithmException
java.security.KeyManagementException
java.security.KeyStoreException
java.security.UnrecoverableKeyException
public SSLLayeringStrategy(java.lang.String algorithm, java.security.KeyStore keystore, java.lang.String keystorePassword, java.security.KeyStore truststore, java.security.SecureRandom random, org.apache.http.conn.ssl.TrustStrategy trustStrategy, org.apache.http.conn.ssl.X509HostnameVerifier hostnameVerifier) throws java.security.NoSuchAlgorithmException, java.security.KeyManagementException, java.security.KeyStoreException, java.security.UnrecoverableKeyException
java.security.NoSuchAlgorithmException
java.security.KeyManagementException
java.security.KeyStoreException
java.security.UnrecoverableKeyException
public SSLLayeringStrategy(java.security.KeyStore keystore, java.lang.String keystorePassword, java.security.KeyStore truststore) throws java.security.NoSuchAlgorithmException, java.security.KeyManagementException, java.security.KeyStoreException, java.security.UnrecoverableKeyException
java.security.NoSuchAlgorithmException
java.security.KeyManagementException
java.security.KeyStoreException
java.security.UnrecoverableKeyException
public SSLLayeringStrategy(java.security.KeyStore keystore, java.lang.String keystorePassword) throws java.security.NoSuchAlgorithmException, java.security.KeyManagementException, java.security.KeyStoreException, java.security.UnrecoverableKeyException
java.security.NoSuchAlgorithmException
java.security.KeyManagementException
java.security.KeyStoreException
java.security.UnrecoverableKeyException
public SSLLayeringStrategy(java.security.KeyStore truststore) throws java.security.NoSuchAlgorithmException, java.security.KeyManagementException, java.security.KeyStoreException, java.security.UnrecoverableKeyException
java.security.NoSuchAlgorithmException
java.security.KeyManagementException
java.security.KeyStoreException
java.security.UnrecoverableKeyException
public SSLLayeringStrategy(org.apache.http.conn.ssl.TrustStrategy trustStrategy, org.apache.http.conn.ssl.X509HostnameVerifier hostnameVerifier) throws java.security.NoSuchAlgorithmException, java.security.KeyManagementException, java.security.KeyStoreException, java.security.UnrecoverableKeyException
java.security.NoSuchAlgorithmException
java.security.KeyManagementException
java.security.KeyStoreException
java.security.UnrecoverableKeyException
public SSLLayeringStrategy(org.apache.http.conn.ssl.TrustStrategy trustStrategy) throws java.security.NoSuchAlgorithmException, java.security.KeyManagementException, java.security.KeyStoreException, java.security.UnrecoverableKeyException
java.security.NoSuchAlgorithmException
java.security.KeyManagementException
java.security.KeyStoreException
java.security.UnrecoverableKeyException
public SSLLayeringStrategy(javax.net.ssl.SSLContext sslContext, org.apache.http.conn.ssl.X509HostnameVerifier hostnameVerifier)
public SSLLayeringStrategy(javax.net.ssl.SSLContext sslContext)
public static SSLLayeringStrategy getDefaultStrategy()
public static SSLLayeringStrategy getSystemDefaultStrategy()
private static javax.net.ssl.SSLContext createSSLContext(java.lang.String algorithm, java.security.KeyStore keystore, java.lang.String keystorePassword, java.security.KeyStore truststore, java.security.SecureRandom random, org.apache.http.conn.ssl.TrustStrategy trustStrategy) throws java.security.NoSuchAlgorithmException, java.security.KeyStoreException, java.security.UnrecoverableKeyException, java.security.KeyManagementException
java.security.NoSuchAlgorithmException
java.security.KeyStoreException
java.security.UnrecoverableKeyException
java.security.KeyManagementException
public boolean isSecure()
isSecure
in interface LayeringStrategy
public org.apache.http.nio.reactor.ssl.SSLIOSession layer(org.apache.http.nio.reactor.IOSession iosession)
layer
in interface LayeringStrategy
protected void initializeEngine(javax.net.ssl.SSLEngine engine)
protected void verifySession(org.apache.http.nio.reactor.IOSession iosession, javax.net.ssl.SSLSession sslsession) throws javax.net.ssl.SSLException
javax.net.ssl.SSLException