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, setTrustManagers
public 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
AbstractSSLContextInitializer
createTrustManagers
in class AbstractSSLContextInitializer
GeneralSecurityException
- if an errors occurs while loading the TrustManagerspublic KeyManager[] getKeyManagers() throws GeneralSecurityException
SSLContextInitializer
GeneralSecurityException
- if an errors occurs while loading the KeyManagersCopyright © 2023. All rights reserved.