Package org.apache.camel.support.jsse
Class BaseSSLContextParameters.SSLContextSpiDecorator
java.lang.Object
javax.net.ssl.SSLContextSpi
org.apache.camel.support.jsse.BaseSSLContextParameters.SSLContextSpiDecorator
- Enclosing class:
- BaseSSLContextParameters
Class needed to provide decoration of an existing
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 Summary
ConstructorsConstructorDescriptionSSLContextSpiDecorator(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) -
Method Summary
Modifier and TypeMethodDescriptionprotected SSLEngineconfigureSSLEngine(SSLEngine engine) Configures anSSLEnginebased on the configurers in instance.protected SSLServerSocketFactoryConfigures anSSLServerSocketFactorybased on the configurers in this instance.protected SSLSocketFactoryConfigures anSSLSocketFactorybased on the configurers in this instance.protected SSLEngineprotected SSLEngineengineCreateSSLEngine(String peerHost, int peerPort) protected SSLSessionContextprotected SSLSessionContextprotected SSLServerSocketFactoryprotected SSLSocketFactoryprotected voidengineInit(KeyManager[] km, TrustManager[] tm, SecureRandom random) protected SSLContextMethods inherited from class javax.net.ssl.SSLContextSpi
engineGetDefaultSSLParameters, engineGetSupportedSSLParameters
-
Constructor Details
-
SSLContextSpiDecorator
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)
-
-
Method Details
-
engineCreateSSLEngine
- Specified by:
engineCreateSSLEnginein classSSLContextSpi
-
engineCreateSSLEngine
- Specified by:
engineCreateSSLEnginein classSSLContextSpi
-
engineGetClientSessionContext
- Specified by:
engineGetClientSessionContextin classSSLContextSpi
-
engineGetServerSessionContext
- Specified by:
engineGetServerSessionContextin classSSLContextSpi
-
engineGetServerSocketFactory
- Specified by:
engineGetServerSocketFactoryin classSSLContextSpi
-
engineGetSocketFactory
- Specified by:
engineGetSocketFactoryin classSSLContextSpi
-
engineInit
protected void engineInit(KeyManager[] km, TrustManager[] tm, SecureRandom random) throws KeyManagementException - Specified by:
engineInitin classSSLContextSpi- Throws:
KeyManagementException
-
getDelegate
-
configureSSLEngine
Configures anSSLEnginebased on the configurers in instance. The return value from this method may beengineor it may be a decorated instance there of. Consequently, any subsequent actions onenginemust be performed using the returned value.- Parameters:
engine- the engine to configure- Returns:
engineor a decorated instance there of
-
configureSSLSocketFactory
Configures anSSLSocketFactorybased on the configurers in this instance. The return value from this method may befactoryor it may be a decorated instance there of. Consequently, any subsequent actions onfactorymust be performed using the returned value.- Parameters:
factory- the factory to configure- Returns:
factoryor a decorated instance there of
-
configureSSLServerSocketFactory
Configures anSSLServerSocketFactorybased on the configurers in this instance. The return value from this method may befactoryor it may be a decorated instance there of. Consequently, any subsequent actions onfactorymust be performed using the returned value.- Parameters:
factory- the factory to configure- Returns:
factoryor a decorated instance there of
-