public static class SSLFactory.Builder extends Object
public SSLFactory.Builder withSystemTrustMaterial()
public SSLFactory.Builder withDefaultTrustMaterial()
public SSLFactory.Builder withSwappableTrustMaterial()
TrustManagerUtils#swapTrustManager(swappableTrustManager, newTrustManager)
SSLFactory.Builder
public <T extends X509TrustManager> SSLFactory.Builder withTrustMaterial(T trustManager)
public <T extends TrustManagerFactory> SSLFactory.Builder withTrustMaterial(T trustManagerFactory)
public SSLFactory.Builder withTrustMaterial(String trustStorePath, char[] trustStorePassword)
public SSLFactory.Builder withTrustMaterial(String trustStorePath, char[] trustStorePassword, String trustStoreType)
public SSLFactory.Builder withTrustMaterial(Path trustStorePath, char[] trustStorePassword)
public SSLFactory.Builder withTrustMaterial(Path trustStorePath, char[] trustStorePassword, String trustStoreType)
public SSLFactory.Builder withTrustMaterial(InputStream trustStoreStream, char[] trustStorePassword)
public SSLFactory.Builder withTrustMaterial(InputStream trustStoreStream, char[] trustStorePassword, String trustStoreType)
public SSLFactory.Builder withTrustMaterial(KeyStore trustStore)
public SSLFactory.Builder withTrustMaterial(KeyStore trustStore, char[] trustStorePassword)
@SafeVarargs public final <T extends Certificate> SSLFactory.Builder withTrustMaterial(T... certificates)
public <T extends Certificate> SSLFactory.Builder withTrustMaterial(List<T> certificates)
public SSLFactory.Builder withIdentityMaterial(String identityStorePath, char[] identityStorePassword)
public SSLFactory.Builder withIdentityMaterial(String identityStorePath, char[] identityStorePassword, char[] identityPassword)
public SSLFactory.Builder withIdentityMaterial(String identityStorePath, char[] identityStorePassword, String identityStoreType)
public SSLFactory.Builder withIdentityMaterial(String identityStorePath, char[] identityStorePassword, char[] identityPassword, String identityStoreType)
public SSLFactory.Builder withIdentityMaterial(Path identityStorePath, char[] identityStorePassword)
public SSLFactory.Builder withIdentityMaterial(Path identityStorePath, char[] identityStorePassword, char[] identityPassword)
public SSLFactory.Builder withIdentityMaterial(Path identityStorePath, char[] identityStorePassword, String identityStoreType)
public SSLFactory.Builder withIdentityMaterial(Path identityStorePath, char[] identityStorePassword, char[] identityPassword, String identityStoreType)
public SSLFactory.Builder withIdentityMaterial(InputStream identityStream, char[] identityStorePassword)
public SSLFactory.Builder withIdentityMaterial(InputStream identityStream, char[] identityStorePassword, char[] identityPassword)
public SSLFactory.Builder withIdentityMaterial(InputStream identityStream, char[] identityStorePassword, String identityStoreType)
public SSLFactory.Builder withIdentityMaterial(InputStream identityStream, char[] identityStorePassword, char[] identityPassword, String identityStoreType)
public SSLFactory.Builder withIdentityMaterial(KeyStore identityStore, char[] identityStorePassword)
public SSLFactory.Builder withIdentityMaterial(KeyStore identityStore, char[] identityStorePassword, char[] identityPassword)
public SSLFactory.Builder withIdentityMaterial(Key privateKey, char[] privateKeyPassword, Certificate... certificateChain)
public SSLFactory.Builder withIdentityMaterial(Key privateKey, char[] privateKeyPassword, String alias, Certificate... certificateChain)
public <T extends X509KeyManager> SSLFactory.Builder withIdentityMaterial(T keyManager)
public <T extends KeyManagerFactory> SSLFactory.Builder withIdentityMaterial(T keyManagerFactory)
public SSLFactory.Builder withSwappableIdentityMaterial()
KeyManagerUtils#swapKeyManager(swappableKeyManager, newKeyManager)
SSLFactory.Builder
public SSLFactory.Builder withClientIdentityRoute(String clientAlias, String... hosts)
public SSLFactory.Builder withClientIdentityRoute(Map<String,List<String>> clientAliasesToHosts)
public <T extends HostnameVerifier> SSLFactory.Builder withHostnameVerifier(T hostnameVerifier)
public SSLFactory.Builder withCiphers(String... ciphers)
public SSLFactory.Builder withProtocols(String... protocols)
public SSLFactory.Builder withNeedClientAuthentication()
public SSLFactory.Builder withNeedClientAuthentication(boolean needClientAuthentication)
public SSLFactory.Builder withWantClientAuthentication()
public SSLFactory.Builder withWantClientAuthentication(boolean wantClientAuthentication)
public SSLFactory.Builder withSessionTimeout(int timeoutInSeconds)
public SSLFactory.Builder withSessionCacheSize(int cacheSizeInBytes)
public SSLFactory.Builder withSslContextAlgorithm(String sslContextAlgorithm)
public <T extends Provider> SSLFactory.Builder withSecurityProvider(T securityProvider)
public SSLFactory.Builder withSecurityProvider(String securityProviderName)
public <T extends SecureRandom> SSLFactory.Builder withSecureRandom(T secureRandom)
public SSLFactory.Builder withTrustingAllCertificatesWithoutValidation()
public SSLFactory.Builder withPasswordCaching()
public SSLFactory build()
Copyright © 2021. All rights reserved.