public static class SSLFactory.Builder extends Object
public SSLFactory.Builder withSystemTrustMaterial()
public SSLFactory.Builder withDefaultTrustMaterial()
public SSLFactory.Builder withSystemPropertyDerivedTrustMaterial()
public SSLFactory.Builder withUnsafeTrustMaterial()
SSLFactory.BuilderwithTrustingAllCertificatesWithoutValidation()public SSLFactory.Builder withDummyTrustMaterial()
public SSLFactory.Builder withSwappableTrustMaterial()
TrustManagerUtils#swapTrustManager(swappableTrustManager, newTrustManager)SSLFactory.Builderpublic <T extends X509TrustManager> SSLFactory.Builder withTrustMaterial(T trustManager)
public <T extends ManagerFactoryParameters> SSLFactory.Builder withTrustMaterial(T managerFactoryParameters)
public <T extends X509TrustManager> SSLFactory.Builder withTrustMaterial(T trustManager, TrustStoreTrustOptions<? extends CertPathTrustManagerParameters> trustOptions)
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, TrustStoreTrustOptions<? extends CertPathTrustManagerParameters> trustOptions)
public SSLFactory.Builder withTrustMaterial(String trustStorePath, char[] trustStorePassword, String trustStoreType)
public SSLFactory.Builder withTrustMaterial(String trustStorePath, char[] trustStorePassword, String trustStoreType, TrustStoreTrustOptions<? extends CertPathTrustManagerParameters> trustOptions)
public SSLFactory.Builder withTrustMaterial(Path trustStorePath, char[] trustStorePassword)
public SSLFactory.Builder withTrustMaterial(Path trustStorePath, char[] trustStorePassword, TrustStoreTrustOptions<? extends CertPathTrustManagerParameters> trustOptions)
public SSLFactory.Builder withTrustMaterial(Path trustStorePath, char[] trustStorePassword, String trustStoreType)
public SSLFactory.Builder withTrustMaterial(Path trustStorePath, char[] trustStorePassword, String trustStoreType, TrustStoreTrustOptions<? extends CertPathTrustManagerParameters> trustOptions)
public SSLFactory.Builder withTrustMaterial(InputStream trustStoreStream, char[] trustStorePassword)
public SSLFactory.Builder withTrustMaterial(InputStream trustStoreStream, char[] trustStorePassword, TrustStoreTrustOptions<? extends CertPathTrustManagerParameters> trustOptions)
public SSLFactory.Builder withTrustMaterial(InputStream trustStoreStream, char[] trustStorePassword, String trustStoreType)
public SSLFactory.Builder withTrustMaterial(InputStream trustStoreStream, char[] trustStorePassword, String trustStoreType, TrustStoreTrustOptions<? extends CertPathTrustManagerParameters> trustOptions)
public SSLFactory.Builder withTrustMaterial(KeyStore trustStore)
public SSLFactory.Builder withTrustMaterial(KeyStore trustStore, TrustStoreTrustOptions<? extends CertPathTrustManagerParameters> trustOptions)
public SSLFactory.Builder withTrustMaterial(Set<X509Certificate> certificates, TrustAnchorTrustOptions<? extends CertPathTrustManagerParameters> trustOptions)
@SafeVarargs public final <T extends Certificate> SSLFactory.Builder withTrustMaterial(T... certificates)
public final <T extends Certificate> SSLFactory.Builder withTrustMaterial(T[] certificates, TrustStoreTrustOptions<? extends CertPathTrustManagerParameters> trustOptions)
public <T extends Certificate> SSLFactory.Builder withTrustMaterial(List<T> certificates)
public <T extends Certificate> SSLFactory.Builder withTrustMaterial(List<T> certificates, TrustStoreTrustOptions<? extends CertPathTrustManagerParameters> trustOptions)
public SSLFactory.Builder withSystemPropertyDerivedIdentityMaterial()
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[] 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 withDummyIdentityMaterial()
public SSLFactory.Builder withSwappableIdentityMaterial()
KeyManagerUtils#swapKeyManager(swappableKeyManager, newKeyManager)SSLFactory.Builderpublic SSLFactory.Builder withIdentityRoute(String alias, String... hosts)
public SSLFactory.Builder withIdentityRoute(Map<String,List<String>> aliasesToHosts)
public <T extends HostnameVerifier> SSLFactory.Builder withHostnameVerifier(T hostnameVerifier)
public SSLFactory.Builder withUnsafeHostnameVerifier()
public SSLFactory.Builder withCiphers(String... ciphers)
public SSLFactory.Builder withSystemPropertyDerivedCiphers()
public SSLFactory.Builder withProtocols(String... protocols)
public SSLFactory.Builder withSystemPropertyDerivedProtocols()
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 withTrustEnhancer(ChainAndAuthTypeValidator validator)
public SSLFactory.Builder withTrustEnhancer(ChainAndAuthTypeWithSocketValidator validator)
public SSLFactory.Builder withTrustEnhancer(ChainAndAuthTypeWithSSLEngineValidator validator)
public SSLFactory build()
Copyright © 2022. All rights reserved.