Package org.apache.camel.support.jsse
Class SSLContextClientParameters
java.lang.Object
org.apache.camel.support.jsse.JsseParameters
org.apache.camel.support.jsse.BaseSSLContextParameters
org.apache.camel.support.jsse.SSLContextClientParameters
- All Implemented Interfaces:
CamelContextAware
Configuration model for client side JSSE options.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.camel.support.jsse.BaseSSLContextParameters
BaseSSLContextParameters.SSLContextDecorator, BaseSSLContextParameters.SSLContextSpiDecorator, BaseSSLContextParameters.SSLServerSocketFactoryDecorator, BaseSSLContextParameters.SSLSocketFactoryDecorator
-
Field Summary
Fields inherited from class org.apache.camel.support.jsse.BaseSSLContextParameters
DEFAULT_CIPHER_SUITES_FILTER_EXCLUDE, DEFAULT_CIPHER_SUITES_FILTER_INCLUDE, DEFAULT_SECURE_SOCKET_PROTOCOLS_FILTER_EXCLUDE, DEFAULT_SECURE_SOCKET_PROTOCOLS_FILTER_INCLUDE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addAllSniHostNames
(List<String> sniHostNames) protected void
configureSSLContext
(SSLContext context) Configures the actualSSLContext
itself with direct setter calls.protected boolean
Returns a flag indicating if default values should be applied in the event that no other property of the instance configures a particular aspect of the entity produced by the instance.protected List<SNIServerName>
getSSLEngineConfigurers
(SSLContext context) Returns the list of configurers to apply to anSSLEngine
in order to fully configure it in compliance with the provided configuration options.protected List<org.apache.camel.support.jsse.BaseSSLContextParameters.Configurer<SSLServerSocketFactory>>
This class has no bearing onSSLServerSocketFactory
instances and therefore provides no configurers for that purpose.void
setSniHostName
(String sniHostName) toString()
Methods inherited from class org.apache.camel.support.jsse.BaseSSLContextParameters
configureSessionContext, filter, filter, getCipherSuites, getCipherSuitesFilter, getDefaultCipherSuitesFilter, getDefaultSecureSocketProcotolFilter, getSecureSocketProtocols, getSecureSocketProtocolsFilter, getSessionTimeout, getSSLServerSocketFactorySSLServerSocketConfigurers, getSSLSocketFactoryConfigurers, getSSLSocketFactorySSLSocketConfigurers, matchesOneOf, setCipherSuites, setCipherSuitesFilter, setSecureSocketProtocols, setSecureSocketProtocolsFilter, setSessionTimeout
Methods inherited from class org.apache.camel.support.jsse.JsseParameters
getCamelContext, parsePropertyValue, parsePropertyValues, resolveResource, setCamelContext
-
Constructor Details
-
SSLContextClientParameters
public SSLContextClientParameters()
-
-
Method Details
-
addAllSniHostNames
-
setSniHostName
-
getSNIHostNames
- Overrides:
getSNIHostNames
in classBaseSSLContextParameters
-
getAllowPassthrough
protected boolean getAllowPassthrough()Description copied from class:BaseSSLContextParameters
Returns a flag indicating if default values should be applied in the event that no other property of the instance configures a particular aspect of the entity produced by the instance. This flag is used to allow instances of this class to produce a configurer that simply passes through the current configuration of a configured entity when the instance of this class would otherwise only apply some default configuration.- Overrides:
getAllowPassthrough
in classBaseSSLContextParameters
- See Also:
-
configureSSLContext
Description copied from class:BaseSSLContextParameters
Configures the actualSSLContext
itself with direct setter calls. This method differs from configuration options that are handled by a configurer instance in that the options are part of the context itself and are not part of some factory or instance object returned by the context.- Overrides:
configureSSLContext
in classBaseSSLContextParameters
- Parameters:
context
- the context to configure- Throws:
GeneralSecurityException
- if there is an error configuring the context
-
getSSLEngineConfigurers
protected List<org.apache.camel.support.jsse.BaseSSLContextParameters.Configurer<SSLEngine>> getSSLEngineConfigurers(SSLContext context) Returns the list of configurers to apply to anSSLEngine
in order to fully configure it in compliance with the provided configuration options. The configurers are to be applied in the order in which they appear in the list. This implementation returns the empty list as the enabled cipher suites and protocols are not client and server side specific in anSSLEngine
. Consequently, overriding them here would be a bit odd as the client side specific configuration shouldn't really override a shared client/server configuration option.- Overrides:
getSSLEngineConfigurers
in classBaseSSLContextParameters
- Parameters:
context
- the context that serves as the factory forSSLEngine
instances- Returns:
- the needed configurers
-
getSSLServerSocketFactoryConfigurers
protected List<org.apache.camel.support.jsse.BaseSSLContextParameters.Configurer<SSLServerSocketFactory>> getSSLServerSocketFactoryConfigurers(SSLContext context) This class has no bearing onSSLServerSocketFactory
instances and therefore provides no configurers for that purpose.- Overrides:
getSSLServerSocketFactoryConfigurers
in classBaseSSLContextParameters
- Parameters:
context
- the context that serves as the factory forSSLServerSocketFactory
instances- Returns:
- the needed configurers
- See Also:
-
toString
-