public class KeyStoreSSLContextInitializer extends AbstractSSLContextInitializer
logger, trustManagers| Constructor and Description |
|---|
KeyStoreSSLContextInitializer() |
| Modifier and Type | Method and Description |
|---|---|
protected TrustManager[] |
createTrustManagers()
Creates any trust managers specific to this context initializer.
|
KeyManager[] |
getKeyManagers()
Returns the key managers used when creating SSL contexts.
|
void |
setAuthenticationAliases(String... aliases)
Sets the aliases of the entries to use in the authentication keystore.
|
void |
setAuthenticationKeystore(KeyStore keystore)
Sets the keystore to use for creating the key managers.
|
void |
setAuthenticationPassword(char[] password)
Sets the password used for accessing the authentication keystore.
|
void |
setTrustAliases(String... aliases)
Sets the aliases of the entries to use in the trust keystore.
|
void |
setTrustKeystore(KeyStore keystore)
Sets the keystore to use for creating the trust managers.
|
String |
toString() |
aggregateTrustManagers, getTrustManagers, initSSLContext, setTrustManagerspublic void setTrustKeystore(KeyStore keystore)
keystore - to setpublic void setTrustAliases(String... aliases)
aliases - to usepublic void setAuthenticationKeystore(KeyStore keystore)
keystore - to setpublic void setAuthenticationAliases(String... aliases)
aliases - to usepublic void setAuthenticationPassword(char[] password)
password - to use for authenticationprotected TrustManager[] createTrustManagers() throws GeneralSecurityException
AbstractSSLContextInitializercreateTrustManagers in class AbstractSSLContextInitializerGeneralSecurityException - if an errors occurs while loading the TrustManagerspublic KeyManager[] getKeyManagers() throws GeneralSecurityException
SSLContextInitializerGeneralSecurityException - if an errors occurs while loading the KeyManagersCopyright © 2023. All rights reserved.