public abstract class AbstractSSLContextInitializer extends java.lang.Object implements SSLContextInitializer
| Modifier and Type | Field and Description |
|---|---|
protected org.slf4j.Logger |
logger
Logger for this class.
|
protected javax.net.ssl.TrustManager[] |
trustManagers
Trust managers.
|
| Constructor and Description |
|---|
AbstractSSLContextInitializer() |
| Modifier and Type | Method and Description |
|---|---|
protected javax.net.ssl.TrustManager[] |
aggregateTrustManagers(javax.net.ssl.TrustManager... managers)
Creates an
AggregateTrustManager containing the supplied trust managers. |
protected abstract javax.net.ssl.TrustManager[] |
createTrustManagers()
Creates any trust managers specific to this context initializer.
|
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetKeyManagersprotected final org.slf4j.Logger logger
protected javax.net.ssl.TrustManager[] trustManagers
public javax.net.ssl.TrustManager[] getTrustManagers()
throws java.security.GeneralSecurityException
SSLContextInitializergetTrustManagers in interface SSLContextInitializerjava.security.GeneralSecurityException - if an errors occurs while loading the TrustManagerspublic void setTrustManagers(javax.net.ssl.TrustManager... managers)
setTrustManagers in interface SSLContextInitializermanagers - trust managersprotected abstract javax.net.ssl.TrustManager[] createTrustManagers()
throws java.security.GeneralSecurityException
java.security.GeneralSecurityException - if an errors occurs while loading the TrustManagerspublic javax.net.ssl.SSLContext initSSLContext(java.lang.String protocol)
throws java.security.GeneralSecurityException
SSLContextInitializerinitSSLContext in interface SSLContextInitializerprotocol - type to use for SSLjava.security.GeneralSecurityException - if the SSLContext cannot be createdprotected javax.net.ssl.TrustManager[] aggregateTrustManagers(javax.net.ssl.TrustManager... managers)
AggregateTrustManager containing the supplied trust managers.managers - to aggregate