@Test public void testBuildDefault() throws Exception { new SSLContextBuilder().build(); }
public SSLContext build() throws NoSuchAlgorithmException, KeyManagementException { final SSLContext sslContext; final String protocolStr = this.protocol != null ? this.protocol : TLS; if (this.provider != null) { sslContext = SSLContext.getInstance(protocolStr, this.provider); } else { sslContext = SSLContext.getInstance(protocolStr); } initSSLContext(sslContext, keyManagers, trustManagers, secureRandom); return sslContext; }
SSLContextBuilder { public SSLContext build() throws NoSuchAlgorithmException, KeyManagementException { final SSLContext sslContext; final String protocolStr = this.protocol != null ? this.protocol : TLS; if (this.provider != null) { sslContext = SSLContext.getInstance(protocolStr, this.provider); } else { sslContext = SSLContext.getInstance(protocolStr); } initSSLContext(sslContext, keyManagers, trustManagers, secureRandom); return sslContext; } }
SSLContextBuilder { public SSLContext build() throws NoSuchAlgorithmException, KeyManagementException { final SSLContext sslContext; final String protocolStr = this.protocol != null ? this.protocol : TLS; if (this.provider != null) { sslContext = SSLContext.getInstance(protocolStr, this.provider); } else { sslContext = SSLContext.getInstance(protocolStr); } initSSLContext(sslContext, keyManagers, trustManagers, secureRandom); return sslContext; } SSLContextBuilder(); }
SSLContextBuilder { public SSLContext build() throws NoSuchAlgorithmException, KeyManagementException { final SSLContext sslContext; final String protocolStr = this.protocol != null ? this.protocol : TLS; if (this.provider != null) { sslContext = SSLContext.getInstance(protocolStr, this.provider); } else { sslContext = SSLContext.getInstance(protocolStr); } initSSLContext(sslContext, keyManagers, trustManagers, secureRandom); return sslContext; } SSLContextBuilder(); static SSLContextBuilder create(); SSLContextBuilder setProtocol(final String protocol); SSLContextBuilder setProvider(final Provider provider); SSLContextBuilder setProvider(final String name); SSLContextBuilder setKeyStoreType(final String keyStoreType); SSLContextBuilder setKeyManagerFactoryAlgorithm(final String keyManagerFactoryAlgorithm); SSLContextBuilder setTrustManagerFactoryAlgorithm(final String trustManagerFactoryAlgorithm); SSLContextBuilder setSecureRandom(final SecureRandom secureRandom); SSLContextBuilder loadTrustMaterial(
            final KeyStore truststore,
            final TrustStrategy trustStrategy); SSLContextBuilder loadTrustMaterial(
            final TrustStrategy trustStrategy); SSLContextBuilder loadTrustMaterial(
            final File file,
            final char[] storePassword,
            final TrustStrategy trustStrategy); SSLContextBuilder loadTrustMaterial(
            final File file,
            final char[] storePassword); SSLContextBuilder loadTrustMaterial(
            final File file); SSLContextBuilder loadTrustMaterial(
            final URL url,
            final char[] storePassword,
            final TrustStrategy trustStrategy); SSLContextBuilder loadTrustMaterial(
            final URL url,
            final char[] storePassword); SSLContextBuilder loadKeyMaterial(
            final KeyStore keystore,
            final char[] keyPassword,
            final PrivateKeyStrategy aliasStrategy); SSLContextBuilder loadKeyMaterial(
            final KeyStore keystore,
            final char[] keyPassword); SSLContextBuilder loadKeyMaterial(
            final File file,
            final char[] storePassword,
            final char[] keyPassword,
            final PrivateKeyStrategy aliasStrategy); SSLContextBuilder loadKeyMaterial(
            final File file,
            final char[] storePassword,
            final char[] keyPassword); SSLContextBuilder loadKeyMaterial(
            final URL url,
            final char[] storePassword,
            final char[] keyPassword,
            final PrivateKeyStrategy aliasStrategy); SSLContextBuilder loadKeyMaterial(
            final URL url,
            final char[] storePassword,
            final char[] keyPassword); SSLContext build(); @Override String toString(); }
SSLContextBuilder { public SSLContext build() throws NoSuchAlgorithmException, KeyManagementException { final SSLContext sslContext; final String protocolStr = this.protocol != null ? this.protocol : TLS; if (this.provider != null) { sslContext = SSLContext.getInstance(protocolStr, this.provider); } else { sslContext = SSLContext.getInstance(protocolStr); } initSSLContext(sslContext, keyManagers, trustManagers, secureRandom); return sslContext; } SSLContextBuilder(); static SSLContextBuilder create(); SSLContextBuilder setProtocol(final String protocol); SSLContextBuilder setProvider(final Provider provider); SSLContextBuilder setProvider(final String name); SSLContextBuilder setKeyStoreType(final String keyStoreType); SSLContextBuilder setKeyManagerFactoryAlgorithm(final String keyManagerFactoryAlgorithm); SSLContextBuilder setTrustManagerFactoryAlgorithm(final String trustManagerFactoryAlgorithm); SSLContextBuilder setSecureRandom(final SecureRandom secureRandom); SSLContextBuilder loadTrustMaterial(
            final KeyStore truststore,
            final TrustStrategy trustStrategy); SSLContextBuilder loadTrustMaterial(
            final TrustStrategy trustStrategy); SSLContextBuilder loadTrustMaterial(
            final File file,
            final char[] storePassword,
            final TrustStrategy trustStrategy); SSLContextBuilder loadTrustMaterial(
            final File file,
            final char[] storePassword); SSLContextBuilder loadTrustMaterial(
            final File file); SSLContextBuilder loadTrustMaterial(
            final URL url,
            final char[] storePassword,
            final TrustStrategy trustStrategy); SSLContextBuilder loadTrustMaterial(
            final URL url,
            final char[] storePassword); SSLContextBuilder loadKeyMaterial(
            final KeyStore keystore,
            final char[] keyPassword,
            final PrivateKeyStrategy aliasStrategy); SSLContextBuilder loadKeyMaterial(
            final KeyStore keystore,
            final char[] keyPassword); SSLContextBuilder loadKeyMaterial(
            final File file,
            final char[] storePassword,
            final char[] keyPassword,
            final PrivateKeyStrategy aliasStrategy); SSLContextBuilder loadKeyMaterial(
            final File file,
            final char[] storePassword,
            final char[] keyPassword); SSLContextBuilder loadKeyMaterial(
            final URL url,
            final char[] storePassword,
            final char[] keyPassword,
            final PrivateKeyStrategy aliasStrategy); SSLContextBuilder loadKeyMaterial(
            final URL url,
            final char[] storePassword,
            final char[] keyPassword); SSLContext build(); @Override String toString();  }