public class DefaultSSLContextInitializer extends AbstractSSLContextInitializer
| Modifier and Type | Field and Description |
|---|---|
private boolean |
createDefaultTrustManagers
Whether default trust managers should be created.
|
private KeyManager[] |
keyManagers
Key managers.
|
hostnameVerifierConfig, logger, trustManagers| Constructor and Description |
|---|
DefaultSSLContextInitializer()
Creates a new default ssl context initializer.
|
DefaultSSLContextInitializer(boolean defaultTrustManagers)
Creates a new default ssl context initializer.
|
| 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 |
setKeyManagers(KeyManager... managers)
Sets the key managers.
|
String |
toString() |
aggregateTrustManagers, getHostnameVerifierConfig, getTrustManagers, initSSLContext, setHostnameVerifierConfig, setTrustManagersprivate KeyManager[] keyManagers
private final boolean createDefaultTrustManagers
public DefaultSSLContextInitializer()
public DefaultSSLContextInitializer(boolean defaultTrustManagers)
defaultTrustManagers - whether default trust managers should be createdprotected 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 KeyManagerspublic void setKeyManagers(KeyManager... managers)
managers - key managersCopyright © 2003-2019 Virginia Tech. All Rights Reserved.