public class DefaultSSLContextInitializer extends AbstractSSLContextInitializer
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, getTrustManagers, initSSLContext, setTrustManagerspublic 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 © 2023. All rights reserved.