protected static final class BaseSSLContextParameters.SSLContextSpiDecorator extends SSLContextSpi
SSLContext.
Since SSLContext is an abstract class and requires an instance of
SSLContextSpi, this class effectively wraps an
SSLContext as if it were an SSLContextSpi, allowing us to
achieve decoration.| Constructor and Description |
|---|
BaseSSLContextParameters.SSLContextSpiDecorator(SSLContext context,
List<org.apache.camel.util.jsse.BaseSSLContextParameters.Configurer<SSLEngine>> sslEngineConfigurers,
List<org.apache.camel.util.jsse.BaseSSLContextParameters.Configurer<SSLSocketFactory>> sslSocketFactoryConfigurers,
List<org.apache.camel.util.jsse.BaseSSLContextParameters.Configurer<SSLServerSocketFactory>> sslServerSocketFactoryConfigurers) |
| Modifier and Type | Method and Description |
|---|---|
protected SSLEngine |
configureSSLEngine(SSLEngine engine)
Configures an
SSLEngine based on the configurers in instance. |
protected SSLServerSocketFactory |
configureSSLServerSocketFactory(SSLServerSocketFactory factory)
Configures an
SSLServerSocketFactory based on the
configurers in this instance. |
protected SSLSocketFactory |
configureSSLSocketFactory(SSLSocketFactory factory)
Configures an
SSLSocketFactory based on the configurers in
this instance. |
protected SSLEngine |
engineCreateSSLEngine() |
protected SSLEngine |
engineCreateSSLEngine(String peerHost,
int peerPort) |
protected SSLSessionContext |
engineGetClientSessionContext() |
protected SSLSessionContext |
engineGetServerSessionContext() |
protected SSLServerSocketFactory |
engineGetServerSocketFactory() |
protected SSLSocketFactory |
engineGetSocketFactory() |
protected void |
engineInit(KeyManager[] km,
TrustManager[] tm,
SecureRandom random) |
protected SSLContext |
getDelegate() |
engineGetDefaultSSLParameters, engineGetSupportedSSLParameterspublic BaseSSLContextParameters.SSLContextSpiDecorator(SSLContext context, List<org.apache.camel.util.jsse.BaseSSLContextParameters.Configurer<SSLEngine>> sslEngineConfigurers, List<org.apache.camel.util.jsse.BaseSSLContextParameters.Configurer<SSLSocketFactory>> sslSocketFactoryConfigurers, List<org.apache.camel.util.jsse.BaseSSLContextParameters.Configurer<SSLServerSocketFactory>> sslServerSocketFactoryConfigurers)
protected SSLEngine engineCreateSSLEngine()
engineCreateSSLEngine in class SSLContextSpiprotected SSLEngine engineCreateSSLEngine(String peerHost, int peerPort)
engineCreateSSLEngine in class SSLContextSpiprotected SSLSessionContext engineGetClientSessionContext()
engineGetClientSessionContext in class SSLContextSpiprotected SSLSessionContext engineGetServerSessionContext()
engineGetServerSessionContext in class SSLContextSpiprotected SSLServerSocketFactory engineGetServerSocketFactory()
engineGetServerSocketFactory in class SSLContextSpiprotected SSLSocketFactory engineGetSocketFactory()
engineGetSocketFactory in class SSLContextSpiprotected void engineInit(KeyManager[] km, TrustManager[] tm, SecureRandom random) throws KeyManagementException
engineInit in class SSLContextSpiKeyManagementExceptionprotected SSLContext getDelegate()
protected SSLEngine configureSSLEngine(SSLEngine engine)
SSLEngine based on the configurers in instance.
The return value from this method may be engine or it may be
a decorated instance there of. Consequently, any subsequent actions
on engine must be performed using the returned value.engine - the engine to configureengine or a decorated instance there ofprotected SSLSocketFactory configureSSLSocketFactory(SSLSocketFactory factory)
SSLSocketFactory based on the configurers in
this instance. The return value from this method may be
factory or it may be a decorated instance there of.
Consequently, any subsequent actions on factory must be
performed using the returned value.factory - the factory to configurefactory or a decorated instance there ofprotected SSLServerSocketFactory configureSSLServerSocketFactory(SSLServerSocketFactory factory)
SSLServerSocketFactory based on the
configurers in this instance. The return value from this method may be
factory or it may be a decorated instance there of.
Consequently, any subsequent actions on factory must be
performed using the returned value.factory - the factory to configurefactory or a decorated instance there ofApache Camel