public interface SSLContextInitializer
| Modifier and Type | Method and Description |
|---|---|
javax.net.ssl.KeyManager[] |
getKeyManagers()
Returns the key managers used when creating SSL contexts.
|
javax.net.ssl.TrustManager[] |
getTrustManagers()
Returns the trust managers used when creating SSL contexts.
|
javax.net.ssl.SSLContext |
initSSLContext(java.lang.String protocol)
Creates an initialized SSLContext for the supplied protocol.
|
void |
setTrustManagers(javax.net.ssl.TrustManager... managers)
Sets the trust managers.
|
javax.net.ssl.SSLContext initSSLContext(java.lang.String protocol)
throws java.security.GeneralSecurityException
protocol - type to use for SSLjava.security.GeneralSecurityException - if the SSLContext cannot be createdjavax.net.ssl.TrustManager[] getTrustManagers()
throws java.security.GeneralSecurityException
java.security.GeneralSecurityException - if an errors occurs while loading the TrustManagersvoid setTrustManagers(javax.net.ssl.TrustManager... managers)
managers - trust managersjavax.net.ssl.KeyManager[] getKeyManagers()
throws java.security.GeneralSecurityException
java.security.GeneralSecurityException - if an errors occurs while loading the KeyManagers