public abstract class AbstractSSLContextInitializer extends Object implements SSLContextInitializer
SSLContextInitializer
.Modifier and Type | Field and Description |
---|---|
protected org.apache.commons.logging.Log |
logger
Log for this class.
|
Constructor and Description |
---|
AbstractSSLContextInitializer() |
Modifier and Type | Method and Description |
---|---|
abstract KeyManager[] |
getKeyManagers()
Returns the key managers used when creating SSL contexts.
|
abstract TrustManager[] |
getTrustManagers()
Returns the trust managers used when creating SSL contexts.
|
SSLContext |
initSSLContext(String protocol)
Creates an initialized SSLContext for the supplied protocol.
|
public SSLContext initSSLContext(String protocol) throws GeneralSecurityException
initSSLContext
in interface SSLContextInitializer
protocol
- type to use for SSLSSLContext
GeneralSecurityException
- if the SSLContext cannot be createdpublic abstract TrustManager[] getTrustManagers() throws GeneralSecurityException
getTrustManagers
in interface SSLContextInitializer
TrustManager[]
GeneralSecurityException
- if an errors occurs while loading the
TrustManagerspublic abstract KeyManager[] getKeyManagers() throws GeneralSecurityException
getKeyManagers
in interface SSLContextInitializer
KeyManagers[]
GeneralSecurityException
- if an errors occurs while loading the
KeyManagersCopyright © 2016. All rights reserved.