Package org.apache.http.conn.ssl
Class SSLContextBuilder
- java.lang.Object
-
- org.apache.http.conn.ssl.SSLContextBuilder
-
@Deprecated public class SSLContextBuilder extends java.lang.Object
Deprecated.(4.4) useSSLContextBuilder
.Builder forSSLContext
instances.- Since:
- 4.3
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
SSLContextBuilder.KeyManagerDelegate
Deprecated.(package private) static class
SSLContextBuilder.TrustManagerDelegate
Deprecated.
-
Field Summary
Fields Modifier and Type Field Description private java.util.Set<javax.net.ssl.KeyManager>
keymanagers
Deprecated.private java.lang.String
protocol
Deprecated.private java.security.SecureRandom
secureRandom
Deprecated.(package private) static java.lang.String
SSL
Deprecated.(package private) static java.lang.String
TLS
Deprecated.private java.util.Set<javax.net.ssl.TrustManager>
trustmanagers
Deprecated.
-
Constructor Summary
Constructors Constructor Description SSLContextBuilder()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description javax.net.ssl.SSLContext
build()
Deprecated.SSLContextBuilder
loadKeyMaterial(java.security.KeyStore keystore, char[] keyPassword)
Deprecated.SSLContextBuilder
loadKeyMaterial(java.security.KeyStore keystore, char[] keyPassword, PrivateKeyStrategy aliasStrategy)
Deprecated.SSLContextBuilder
loadTrustMaterial(java.security.KeyStore truststore)
Deprecated.SSLContextBuilder
loadTrustMaterial(java.security.KeyStore truststore, TrustStrategy trustStrategy)
Deprecated.SSLContextBuilder
setSecureRandom(java.security.SecureRandom secureRandom)
Deprecated.SSLContextBuilder
useProtocol(java.lang.String protocol)
Deprecated.SSLContextBuilder
useSSL()
Deprecated.SSLContextBuilder
useTLS()
Deprecated.
-
-
-
Field Detail
-
TLS
static final java.lang.String TLS
Deprecated.- See Also:
- Constant Field Values
-
SSL
static final java.lang.String SSL
Deprecated.- See Also:
- Constant Field Values
-
protocol
private java.lang.String protocol
Deprecated.
-
keymanagers
private final java.util.Set<javax.net.ssl.KeyManager> keymanagers
Deprecated.
-
trustmanagers
private final java.util.Set<javax.net.ssl.TrustManager> trustmanagers
Deprecated.
-
secureRandom
private java.security.SecureRandom secureRandom
Deprecated.
-
-
Method Detail
-
useTLS
public SSLContextBuilder useTLS()
Deprecated.
-
useSSL
public SSLContextBuilder useSSL()
Deprecated.
-
useProtocol
public SSLContextBuilder useProtocol(java.lang.String protocol)
Deprecated.
-
setSecureRandom
public SSLContextBuilder setSecureRandom(java.security.SecureRandom secureRandom)
Deprecated.
-
loadTrustMaterial
public SSLContextBuilder loadTrustMaterial(java.security.KeyStore truststore, TrustStrategy trustStrategy) throws java.security.NoSuchAlgorithmException, java.security.KeyStoreException
Deprecated.- Throws:
java.security.NoSuchAlgorithmException
java.security.KeyStoreException
-
loadTrustMaterial
public SSLContextBuilder loadTrustMaterial(java.security.KeyStore truststore) throws java.security.NoSuchAlgorithmException, java.security.KeyStoreException
Deprecated.- Throws:
java.security.NoSuchAlgorithmException
java.security.KeyStoreException
-
loadKeyMaterial
public SSLContextBuilder loadKeyMaterial(java.security.KeyStore keystore, char[] keyPassword) throws java.security.NoSuchAlgorithmException, java.security.KeyStoreException, java.security.UnrecoverableKeyException
Deprecated.- Throws:
java.security.NoSuchAlgorithmException
java.security.KeyStoreException
java.security.UnrecoverableKeyException
-
loadKeyMaterial
public SSLContextBuilder loadKeyMaterial(java.security.KeyStore keystore, char[] keyPassword, PrivateKeyStrategy aliasStrategy) throws java.security.NoSuchAlgorithmException, java.security.KeyStoreException, java.security.UnrecoverableKeyException
Deprecated.- Throws:
java.security.NoSuchAlgorithmException
java.security.KeyStoreException
java.security.UnrecoverableKeyException
-
build
public javax.net.ssl.SSLContext build() throws java.security.NoSuchAlgorithmException, java.security.KeyManagementException
Deprecated.- Throws:
java.security.NoSuchAlgorithmException
java.security.KeyManagementException
-
-