@NotThreadSafe public class SSLContextBuilder extends Object
SSLContext
instances.Constructor and Description |
---|
SSLContextBuilder() |
Modifier and Type | Method and Description |
---|---|
SSLContext |
build() |
SSLContextBuilder |
loadKeyMaterial(KeyStore keystore,
char[] keyPassword) |
SSLContextBuilder |
loadTrustMaterial(KeyStore truststore) |
SSLContextBuilder |
loadTrustMaterial(KeyStore truststore,
char[] truststorePassword,
TrustStrategy trustStrategy) |
SSLContextBuilder |
loadTrustMaterial(KeyStore truststore,
TrustStrategy trustStrategy) |
SSLContextBuilder |
setSecureRandom(SecureRandom secureRandom) |
SSLContextBuilder |
useProtocol(String protocol) |
SSLContextBuilder |
useSSL() |
SSLContextBuilder |
useTLS() |
public SSLContextBuilder useTLS()
public SSLContextBuilder useSSL()
public SSLContextBuilder useProtocol(String protocol)
public SSLContextBuilder setSecureRandom(SecureRandom secureRandom)
public SSLContextBuilder loadTrustMaterial(KeyStore truststore, char[] truststorePassword, TrustStrategy trustStrategy) throws NoSuchAlgorithmException, KeyStoreException
public SSLContextBuilder loadTrustMaterial(KeyStore truststore, TrustStrategy trustStrategy) throws NoSuchAlgorithmException, KeyStoreException
public SSLContextBuilder loadTrustMaterial(KeyStore truststore) throws NoSuchAlgorithmException, KeyStoreException
public SSLContextBuilder loadKeyMaterial(KeyStore keystore, char[] keyPassword) throws NoSuchAlgorithmException, KeyStoreException, UnrecoverableKeyException
public SSLContext build() throws NoSuchAlgorithmException, KeyManagementException
Copyright © 1999-2013 The Apache Software Foundation. All Rights Reserved.