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.
|
initSSLContext
public TrustManager[] getTrustManagers() throws GeneralSecurityException
getTrustManagers
in interface SSLContextInitializer
getTrustManagers
in class AbstractSSLContextInitializer
TrustManager[]
GeneralSecurityException
- if an errors occurs while loading the
TrustManagerspublic void setTrustManagers(TrustManager[] tm)
tm
- TrustManager[]
public KeyManager[] getKeyManagers() throws GeneralSecurityException
getKeyManagers
in interface SSLContextInitializer
getKeyManagers
in class AbstractSSLContextInitializer
KeyManagers[]
GeneralSecurityException
- if an errors occurs while loading the
KeyManagerspublic void setKeyManagers(KeyManager[] km)
km
- KeyManager[]
Copyright © 2018. All rights reserved.