org.apache.http.conn.ssl
Class SSLContextBuilder
java.lang.Object
org.apache.http.conn.ssl.SSLContextBuilder
@NotThreadSafe
public class SSLContextBuilder
- extends Object
Builder for SSLContext
instances.
- Since:
- 4.3
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SSLContextBuilder
public SSLContextBuilder()
useTLS
public SSLContextBuilder useTLS()
useSSL
public SSLContextBuilder useSSL()
useProtocol
public SSLContextBuilder useProtocol(String protocol)
setSecureRandom
public SSLContextBuilder setSecureRandom(SecureRandom secureRandom)
loadTrustMaterial
public SSLContextBuilder loadTrustMaterial(KeyStore truststore,
TrustStrategy trustStrategy)
throws NoSuchAlgorithmException,
KeyStoreException
- Throws:
NoSuchAlgorithmException
KeyStoreException
loadTrustMaterial
public SSLContextBuilder loadTrustMaterial(KeyStore truststore)
throws NoSuchAlgorithmException,
KeyStoreException
- Throws:
NoSuchAlgorithmException
KeyStoreException
loadKeyMaterial
public SSLContextBuilder loadKeyMaterial(KeyStore keystore,
char[] keyPassword)
throws NoSuchAlgorithmException,
KeyStoreException,
UnrecoverableKeyException
- Throws:
NoSuchAlgorithmException
KeyStoreException
UnrecoverableKeyException
loadKeyMaterial
public SSLContextBuilder loadKeyMaterial(KeyStore keystore,
char[] keyPassword,
PrivateKeyStrategy aliasStrategy)
throws NoSuchAlgorithmException,
KeyStoreException,
UnrecoverableKeyException
- Throws:
NoSuchAlgorithmException
KeyStoreException
UnrecoverableKeyException
build
public SSLContext build()
throws NoSuchAlgorithmException,
KeyManagementException
- Throws:
NoSuchAlgorithmException
KeyManagementException
Copyright © 1999–2014 The Apache Software Foundation. All rights reserved.