Class SSLContextBuilder
java.lang.Object
org.apache.http.conn.ssl.SSLContextBuilder
Builder for
SSLContext instances.- Since:
- 4.3
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()loadKeyMaterial(KeyStore keystore, char[] keyPassword) loadKeyMaterial(KeyStore keystore, char[] keyPassword, PrivateKeyStrategy aliasStrategy) loadTrustMaterial(KeyStore truststore) loadTrustMaterial(KeyStore truststore, TrustStrategy trustStrategy) setSecureRandom(SecureRandom secureRandom) useProtocol(String protocol) useSSL()useTLS()
-
Constructor Details
-
SSLContextBuilder
public SSLContextBuilder()
-
-
Method Details
-
useTLS
-
useSSL
-
useProtocol
-
setSecureRandom
-
loadTrustMaterial
public SSLContextBuilder loadTrustMaterial(KeyStore truststore, TrustStrategy trustStrategy) throws NoSuchAlgorithmException, KeyStoreException -
loadTrustMaterial
public SSLContextBuilder loadTrustMaterial(KeyStore truststore) throws NoSuchAlgorithmException, KeyStoreException -
loadKeyMaterial
public SSLContextBuilder loadKeyMaterial(KeyStore keystore, char[] keyPassword) throws NoSuchAlgorithmException, KeyStoreException, UnrecoverableKeyException -
loadKeyMaterial
public SSLContextBuilder loadKeyMaterial(KeyStore keystore, char[] keyPassword, PrivateKeyStrategy aliasStrategy) throws NoSuchAlgorithmException, KeyStoreException, UnrecoverableKeyException -
build
-