SslContextBuilder.builder().@Deprecated public final class SslContextUtils extends Object
SSLContext.| Modifier and Type | Field and Description |
|---|---|
static String |
X509Algorithm
Deprecated.
The key manager algorithm to use for X509.
|
| Modifier and Type | Method and Description |
|---|---|
static SSLContext |
buildMergedWithSystem(KeyStore keyStore)
Deprecated.
Generates an SSL context that uses a merged view of the system key store
and a custom key store.
|
static SSLContext |
buildMergedWithSystem(KeyStore keyStore,
char[] password)
Deprecated.
Generates an SSL context that uses a merged view of the system key store
and a custom key store.
|
static X509KeyManager |
getSystemKeyManager(String algorithm,
KeyStore keystore,
char[] password)
Deprecated.
|
static X509TrustManager |
getSystemTrustManager(String algorithm,
KeyStore keystore)
Deprecated.
|
static void |
mergeWithSystem(InputStream keyStoreStream)
Deprecated.
Configures the default SSL context to use a merged view of the system key
store and a custom key store.
|
static void |
mergeWithSystem(KeyStore keyStore)
Deprecated.
Configures the default SSL context to use a merged view of the system key
store and a custom key store.
|
static void |
mergeWithSystem(String keyStorePath)
Deprecated.
Configures the default SSL context to use a merged view of the system key
store and a custom key store.
|
public static String X509Algorithm
public static void mergeWithSystem(KeyStore keyStore) throws GeneralSecurityException
keyStore - The custom key store.GeneralSecurityExceptionpublic static void mergeWithSystem(InputStream keyStoreStream) throws GeneralSecurityException, IOException
keyStoreStream - A byte stream containing the custom key store. Must
have no passphrase.GeneralSecurityExceptionIOExceptionpublic static void mergeWithSystem(String keyStorePath) throws GeneralSecurityException, IOException
keyStorePath - The path of the file containing the custom key store.
Must have no passphrase.GeneralSecurityExceptionIOExceptionpublic static SSLContext buildMergedWithSystem(KeyStore keyStore) throws GeneralSecurityException
keyStore - The custom key store.GeneralSecurityExceptionpublic static SSLContext buildMergedWithSystem(KeyStore keyStore, char[] password) throws GeneralSecurityException
keyStore - The custom key store.password - The password of the custom key store.GeneralSecurityExceptionpublic static X509KeyManager getSystemKeyManager(String algorithm, KeyStore keystore, char[] password) throws GeneralSecurityException
GeneralSecurityExceptionpublic static X509TrustManager getSystemTrustManager(String algorithm, KeyStore keystore) throws GeneralSecurityException
GeneralSecurityExceptionCopyright © 2019. All rights reserved.