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 |
---|
SSLContextSpiDecorator(SSLContext context,
List<org.apache.camel.support.jsse.BaseSSLContextParameters.Configurer<SSLEngine>> sslEngineConfigurers,
List<org.apache.camel.support.jsse.BaseSSLContextParameters.Configurer<SSLSocketFactory>> sslSocketFactoryConfigurers,
List<org.apache.camel.support.jsse.BaseSSLContextParameters.Configurer<SSLServerSocketFactory>> sslServerSocketFactoryConfigurers) |
engineGetDefaultSSLParameters, engineGetSupportedSSLParameters
public SSLContextSpiDecorator(SSLContext context, List<org.apache.camel.support.jsse.BaseSSLContextParameters.Configurer<SSLEngine>> sslEngineConfigurers, List<org.apache.camel.support.jsse.BaseSSLContextParameters.Configurer<SSLSocketFactory>> sslSocketFactoryConfigurers, List<org.apache.camel.support.jsse.BaseSSLContextParameters.Configurer<SSLServerSocketFactory>> sslServerSocketFactoryConfigurers)
protected SSLEngine engineCreateSSLEngine()
engineCreateSSLEngine
in class SSLContextSpi
protected SSLEngine engineCreateSSLEngine(String peerHost, int peerPort)
engineCreateSSLEngine
in class SSLContextSpi
protected SSLSessionContext engineGetClientSessionContext()
engineGetClientSessionContext
in class SSLContextSpi
protected SSLSessionContext engineGetServerSessionContext()
engineGetServerSessionContext
in class SSLContextSpi
protected SSLServerSocketFactory engineGetServerSocketFactory()
engineGetServerSocketFactory
in class SSLContextSpi
protected SSLSocketFactory engineGetSocketFactory()
engineGetSocketFactory
in class SSLContextSpi
protected void engineInit(KeyManager[] km, TrustManager[] tm, SecureRandom random) throws KeyManagementException
engineInit
in class SSLContextSpi
KeyManagementException
protected 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