javax.net.ssl.SSLContext instances.Note
the default Oracle JSSE implementation of SSLContext#init(KeyManager[], TrustManager[], SecureRandom)
accepts multiple key and trust managers, however only only first matching type is ever used.
See for example:
SSLContext.html#init
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | |
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| private static final KeyManager[] | EMPTY_KEY_MANAGER_ARRAY
An empty immutable |
| private static final TrustManager[] | EMPTY_TRUST_MANAGER_ARRAY
An empty immutable |
| private String | |
| private final Set | |
| private String | |
| private Provider | |
| private String | |
| private Provider | |
| private SecureRandom | |
| pack-priv static final String | |
| private String | |
| private final Set | |
| private Provider |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public SSLContext | |
| public static SSLContextBuilder | |
| protected void | initSSLContext(final SSLContext sslContext, final Collection<KeyManager> keyManagers, final Collection<TrustManager> trustManagers, final SecureRandom secureRandom)
|
| public SSLContextBuilder | loadKeyMaterial(final KeyStore keyStore, final char[] keyPassword, final PrivateKeyStrategy aliasStrategy)
|
| public SSLContextBuilder | loadKeyMaterial(final Path file, final char[] storePassword, final char[] keyPassword, final OpenOption... openOptions)
|
| public SSLContextBuilder | loadKeyMaterial(final Path file, final char[] storePassword, final char[] keyPassword, final PrivateKeyStrategy aliasStrategy, final OpenOption... openOptions)
|
| public SSLContextBuilder | |
| public SSLContextBuilder | loadKeyMaterial(final File file, final char[] storePassword, final char[] keyPassword, final PrivateKeyStrategy aliasStrategy)
|
| public SSLContextBuilder | |
| public SSLContextBuilder | loadKeyMaterial(final URL url, final char[] storePassword, final char[] keyPassword, final PrivateKeyStrategy aliasStrategy)
|
| public SSLContextBuilder | |
| private KeyStore | |
| private KeyStore | |
| public SSLContextBuilder | loadTrustMaterial(final KeyStore trustStore, final TrustStrategy
custom trust strategy to use; can be trustStrategy)null in which case
only the default trust managers will be used
|
| public SSLContextBuilder | |
| public SSLContextBuilder | |
| public SSLContextBuilder | loadTrustMaterial(final Path file, final char[] storePassword, final TrustStrategy trustStrategy, final OpenOption... openOptions)
|
| public SSLContextBuilder | |
| public SSLContextBuilder | |
| public SSLContextBuilder | |
| public SSLContextBuilder | |
| public SSLContextBuilder | |
| public SSLContextBuilder | |
| private Provider | |
| public SSLContextBuilder | Returns: this builderthe key manager factory algorithm name of the requested protocol. See
the KeyManagerFactory section in the Java
Cryptography Architecture Standard Algorithm Name
Documentation for more information. keyManagerFactoryAlgorithm)Sets the key manager factory algorithm name. |
| public SSLContextBuilder | Returns: this builderprovider to use for creating key stores. provider)Sets the JCA provider to use for creating key stores. |
| public SSLContextBuilder | Returns: this builderName of the provider to use for creating key stores, the provider must be registered with the JCA. name)Sets the JCA provider name to use for creating key stores. |
| public SSLContextBuilder | Returns: this builderthe SSLkey store type. See
the KeyStore section in the Java
Cryptography Architecture Standard Algorithm Name
Documentation for more information. keyStoreType)Sets the key store type. |
| public SSLContextBuilder | Returns: this builderthe SSLContext algorithm name of the requested protocol. See
the SSLContext section in the Java
Cryptography Architecture Standard Algorithm Name
Documentation for more information. protocol)Sets the SSLContext algorithm name. |
| public SSLContextBuilder | |
| public SSLContextBuilder | |
| public SSLContextBuilder | |
| public SSLContextBuilder | Returns: this builderthe trust manager algorithm name of the requested protocol. See
the TrustManagerFactory section in the Java
Cryptography Architecture Standard Algorithm Name
Documentation for more information. trustManagerFactoryAlgorithm)Sets the trust manager factory algorithm name. |
| public SSLContextBuilder | Returns: this builderprovider to use for creating trust stores. provider)Sets the JCA provider to use for creating trust stores. |
| public SSLContextBuilder | Returns: this builderName of the provider to use for creating trust stores, the provider must be registered with the JCA. name)Sets the JCA provider name to use for creating trust stores. |
| public String |