public class DefaultSSLContextInitializer extends AbstractSSLContextInitializer
SSLContextInitializer which
allows the setting of trust and key managers in order to create an SSL
context.logger| Constructor and Description |
|---|
DefaultSSLContextInitializer() |
| Modifier and Type | Method and Description |
|---|---|
KeyManager[] |
getKeyManagers()
Returns the key managers used when creating SSL contexts.
|
TrustManager[] |
getTrustManagers()
Returns the trust managers used when creating SSL contexts.
|
void |
setKeyManagers(KeyManager[] km)
Sets the key managers.
|
void |
setTrustManagers(TrustManager[] tm)
Sets the trust managers.
|
initSSLContextpublic TrustManager[] getTrustManagers() throws GeneralSecurityException
getTrustManagers in interface SSLContextInitializergetTrustManagers in class AbstractSSLContextInitializerTrustManager[]GeneralSecurityException - if an errors occurs while loading the
TrustManagerspublic void setTrustManagers(TrustManager[] tm)
tm - TrustManager[]public KeyManager[] getKeyManagers() throws GeneralSecurityException
getKeyManagers in interface SSLContextInitializergetKeyManagers in class AbstractSSLContextInitializerKeyManagers[]GeneralSecurityException - if an errors occurs while loading the
KeyManagerspublic void setKeyManagers(KeyManager[] km)
km - KeyManager[]Copyright © 2014. All rights reserved.