Package org.apache.http.conn.ssl
Class SSLContextBuilder
- java.lang.Object
-
- org.apache.http.conn.ssl.SSLContextBuilder
-
@Deprecated public class SSLContextBuilder extends java.lang.ObjectDeprecated.(4.4) useSSLContextBuilder.Builder forSSLContextinstances.- Since:
- 4.3
-
-
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.SSLContextbuild()Deprecated.SSLContextBuilderloadKeyMaterial(java.security.KeyStore keystore, char[] keyPassword)Deprecated.SSLContextBuilderloadKeyMaterial(java.security.KeyStore keystore, char[] keyPassword, PrivateKeyStrategy aliasStrategy)Deprecated.SSLContextBuilderloadTrustMaterial(java.security.KeyStore truststore)Deprecated.SSLContextBuilderloadTrustMaterial(java.security.KeyStore truststore, TrustStrategy trustStrategy)Deprecated.SSLContextBuildersetSecureRandom(java.security.SecureRandom secureRandom)Deprecated.SSLContextBuilderuseProtocol(java.lang.String protocol)Deprecated.SSLContextBuilderuseSSL()Deprecated.SSLContextBuilderuseTLS()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.NoSuchAlgorithmExceptionjava.security.KeyStoreException
-
loadTrustMaterial
public SSLContextBuilder loadTrustMaterial(java.security.KeyStore truststore) throws java.security.NoSuchAlgorithmException, java.security.KeyStoreException
Deprecated.- Throws:
java.security.NoSuchAlgorithmExceptionjava.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.NoSuchAlgorithmExceptionjava.security.KeyStoreExceptionjava.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.NoSuchAlgorithmExceptionjava.security.KeyStoreExceptionjava.security.UnrecoverableKeyException
-
build
public javax.net.ssl.SSLContext build() throws java.security.NoSuchAlgorithmException, java.security.KeyManagementExceptionDeprecated.- Throws:
java.security.NoSuchAlgorithmExceptionjava.security.KeyManagementException
-
-