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.X509HostnameVerifierhostnameVerifierDeprecated.static java.lang.StringSSLDeprecated.private javax.net.ssl.SSLContextsslContextDeprecated.static java.lang.StringSSLV2Deprecated.static java.lang.StringTLSDeprecated.
-
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.SSLContextcreateSSLContext(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 SSLLayeringStrategygetDefaultStrategy()Deprecated.static SSLLayeringStrategygetSystemDefaultStrategy()Deprecated.protected voidinitializeEngine(javax.net.ssl.SSLEngine engine)Deprecated.booleanisSecure()Deprecated.org.apache.http.nio.reactor.ssl.SSLIOSessionlayer(org.apache.http.nio.reactor.IOSession iosession)Deprecated.protected voidverifySession(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.UnrecoverableKeyExceptionDeprecated.- Throws:
java.security.NoSuchAlgorithmExceptionjava.security.KeyManagementExceptionjava.security.KeyStoreExceptionjava.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.UnrecoverableKeyExceptionDeprecated.- Throws:
java.security.NoSuchAlgorithmExceptionjava.security.KeyManagementExceptionjava.security.KeyStoreExceptionjava.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.UnrecoverableKeyExceptionDeprecated.- Throws:
java.security.NoSuchAlgorithmExceptionjava.security.KeyManagementExceptionjava.security.KeyStoreExceptionjava.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.UnrecoverableKeyExceptionDeprecated.- Throws:
java.security.NoSuchAlgorithmExceptionjava.security.KeyManagementExceptionjava.security.KeyStoreExceptionjava.security.UnrecoverableKeyException
-
SSLLayeringStrategy
public SSLLayeringStrategy(java.security.KeyStore truststore) throws java.security.NoSuchAlgorithmException, java.security.KeyManagementException, java.security.KeyStoreException, java.security.UnrecoverableKeyExceptionDeprecated.- Throws:
java.security.NoSuchAlgorithmExceptionjava.security.KeyManagementExceptionjava.security.KeyStoreExceptionjava.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.UnrecoverableKeyExceptionDeprecated.- Throws:
java.security.NoSuchAlgorithmExceptionjava.security.KeyManagementExceptionjava.security.KeyStoreExceptionjava.security.UnrecoverableKeyException
-
SSLLayeringStrategy
public SSLLayeringStrategy(org.apache.http.conn.ssl.TrustStrategy trustStrategy) throws java.security.NoSuchAlgorithmException, java.security.KeyManagementException, java.security.KeyStoreException, java.security.UnrecoverableKeyExceptionDeprecated.- Throws:
java.security.NoSuchAlgorithmExceptionjava.security.KeyManagementExceptionjava.security.KeyStoreExceptionjava.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.KeyManagementExceptionDeprecated.- Throws:
java.security.NoSuchAlgorithmExceptionjava.security.KeyStoreExceptionjava.security.UnrecoverableKeyExceptionjava.security.KeyManagementException
-
isSecure
public boolean isSecure()
Deprecated.- Specified by:
isSecurein interfaceLayeringStrategy
-
layer
public org.apache.http.nio.reactor.ssl.SSLIOSession layer(org.apache.http.nio.reactor.IOSession iosession)
Deprecated.- Specified by:
layerin 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.SSLExceptionDeprecated.- Throws:
javax.net.ssl.SSLException
-
-