Package org.apache.http.nio.conn.ssl
Class SSLLayeringStrategy
- java.lang.Object
-
- org.apache.http.nio.conn.ssl.SSLLayeringStrategy
-
- All Implemented Interfaces:
LayeringStrategy
@Deprecated public class SSLLayeringStrategy extends java.lang.Object implements LayeringStrategy
Deprecated.
-
-
Field Summary
Fields Modifier and Type Field 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 Summary
Constructors Constructor Description 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(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(org.apache.http.conn.ssl.TrustStrategy trustStrategy)
Deprecated.SSLLayeringStrategy(org.apache.http.conn.ssl.TrustStrategy trustStrategy, org.apache.http.conn.ssl.X509HostnameVerifier hostnameVerifier)
Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method 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.
-
-
-
Field Detail
-
TLS
public static final java.lang.String TLS
Deprecated.- See Also:
- Constant Field Values
-
SSL
public static final java.lang.String SSL
Deprecated.- See Also:
- Constant Field Values
-
SSLV2
public static final java.lang.String SSLV2
Deprecated.- See Also:
- Constant Field Values
-
sslContext
private final javax.net.ssl.SSLContext sslContext
Deprecated.
-
hostnameVerifier
private final org.apache.http.conn.ssl.X509HostnameVerifier hostnameVerifier
Deprecated.
-
-
Constructor Detail
-
SSLLayeringStrategy
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
Deprecated.- Throws:
java.security.NoSuchAlgorithmException
java.security.KeyManagementException
java.security.KeyStoreException
java.security.UnrecoverableKeyException
-
SSLLayeringStrategy
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
Deprecated.- Throws:
java.security.NoSuchAlgorithmException
java.security.KeyManagementException
java.security.KeyStoreException
java.security.UnrecoverableKeyException
-
SSLLayeringStrategy
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
Deprecated.- Throws:
java.security.NoSuchAlgorithmException
java.security.KeyManagementException
java.security.KeyStoreException
java.security.UnrecoverableKeyException
-
SSLLayeringStrategy
public SSLLayeringStrategy(java.security.KeyStore keystore, java.lang.String keystorePassword) throws java.security.NoSuchAlgorithmException, java.security.KeyManagementException, java.security.KeyStoreException, java.security.UnrecoverableKeyException
Deprecated.- Throws:
java.security.NoSuchAlgorithmException
java.security.KeyManagementException
java.security.KeyStoreException
java.security.UnrecoverableKeyException
-
SSLLayeringStrategy
public SSLLayeringStrategy(java.security.KeyStore truststore) throws java.security.NoSuchAlgorithmException, java.security.KeyManagementException, java.security.KeyStoreException, java.security.UnrecoverableKeyException
Deprecated.- Throws:
java.security.NoSuchAlgorithmException
java.security.KeyManagementException
java.security.KeyStoreException
java.security.UnrecoverableKeyException
-
SSLLayeringStrategy
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
Deprecated.- Throws:
java.security.NoSuchAlgorithmException
java.security.KeyManagementException
java.security.KeyStoreException
java.security.UnrecoverableKeyException
-
SSLLayeringStrategy
public SSLLayeringStrategy(org.apache.http.conn.ssl.TrustStrategy trustStrategy) throws java.security.NoSuchAlgorithmException, java.security.KeyManagementException, java.security.KeyStoreException, java.security.UnrecoverableKeyException
Deprecated.- Throws:
java.security.NoSuchAlgorithmException
java.security.KeyManagementException
java.security.KeyStoreException
java.security.UnrecoverableKeyException
-
SSLLayeringStrategy
public SSLLayeringStrategy(javax.net.ssl.SSLContext sslContext, org.apache.http.conn.ssl.X509HostnameVerifier hostnameVerifier)
Deprecated.
-
SSLLayeringStrategy
public SSLLayeringStrategy(javax.net.ssl.SSLContext sslContext)
Deprecated.
-
-
Method Detail
-
getDefaultStrategy
public static SSLLayeringStrategy getDefaultStrategy()
Deprecated.
-
getSystemDefaultStrategy
public static SSLLayeringStrategy getSystemDefaultStrategy()
Deprecated.
-
createSSLContext
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
Deprecated.- Throws:
java.security.NoSuchAlgorithmException
java.security.KeyStoreException
java.security.UnrecoverableKeyException
java.security.KeyManagementException
-
isSecure
public boolean isSecure()
Deprecated.- Specified by:
isSecure
in interfaceLayeringStrategy
-
layer
public org.apache.http.nio.reactor.ssl.SSLIOSession layer(org.apache.http.nio.reactor.IOSession iosession)
Deprecated.- Specified by:
layer
in interfaceLayeringStrategy
-
initializeEngine
protected void initializeEngine(javax.net.ssl.SSLEngine engine)
Deprecated.
-
verifySession
protected void verifySession(org.apache.http.nio.reactor.IOSession iosession, javax.net.ssl.SSLSession sslsession) throws javax.net.ssl.SSLException
Deprecated.- Throws:
javax.net.ssl.SSLException
-
-