public interface SSLContextInitializer
| Modifier and Type | Method and Description |
|---|---|
HostnameVerifierConfig |
getHostnameVerifierConfig()
Returns the hostname verifier config used when created SSL contexts.
|
KeyManager[] |
getKeyManagers()
Returns the key managers used when creating SSL contexts.
|
TrustManager[] |
getTrustManagers()
Returns the trust managers used when creating SSL contexts.
|
SSLContext |
initSSLContext(String protocol)
Creates an initialized SSLContext for the supplied protocol.
|
void |
setHostnameVerifierConfig(HostnameVerifierConfig config)
Sets the hostname verifier config.
|
void |
setTrustManagers(TrustManager... managers)
Sets the trust managers.
|
SSLContext initSSLContext(String protocol) throws GeneralSecurityException
protocol - type to use for SSLGeneralSecurityException - if the SSLContext cannot be createdTrustManager[] getTrustManagers() throws GeneralSecurityException
GeneralSecurityException - if an errors occurs while loading the TrustManagersvoid setTrustManagers(TrustManager... managers)
managers - trust managersHostnameVerifierConfig getHostnameVerifierConfig()
void setHostnameVerifierConfig(HostnameVerifierConfig config)
config - hostname verifier configKeyManager[] getKeyManagers() throws GeneralSecurityException
GeneralSecurityException - if an errors occurs while loading the KeyManagersCopyright © 2003-2019 Virginia Tech. All Rights Reserved.