Package org.apache.camel.support.jsse
Class SSLContextServerParameters
java.lang.Object
org.apache.camel.support.jsse.JsseParameters
org.apache.camel.support.jsse.BaseSSLContextParameters
org.apache.camel.support.jsse.SSLContextServerParameters
- All Implemented Interfaces:
CamelContextAware,HasCamelContext
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.camel.support.jsse.BaseSSLContextParameters
BaseSSLContextParameters.Configurer<T>, BaseSSLContextParameters.SSLContextDecorator, BaseSSLContextParameters.SSLContextSpiDecorator, BaseSSLContextParameters.SSLServerSocketFactoryDecorator, BaseSSLContextParameters.SSLSocketFactoryDecorator -
Field Summary
FieldsFields 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidconfigureSSLContext(SSLContext context) Configures the actualSSLContextitself with direct setter calls.protected booleanReturns 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<BaseSSLContextParameters.Configurer<SSLEngine>> getSSLEngineConfigurers(SSLContext context) This implementation allows for configuration of the need and want settings for client authentication, but ignores the enabled cipher suites and protocols as they are not client and server side specific in anSSLEngine.protected List<BaseSSLContextParameters.Configurer<SSLServerSocket>> Returns the list of configurers to apply to anSSLServerSocketin order to fully configure it in compliance with the provided configuration options.protected List<BaseSSLContextParameters.Configurer<SSLSocketFactory>> getSSLSocketFactoryConfigurers(SSLContext context) This class has no bearing onSSLSocketFactoryinstances and therefore provides no configurers for that purpose.voidsetClientAuthentication(String value) Sets the configuration options for server-side client-authentication requirements.toString()Methods inherited from class org.apache.camel.support.jsse.BaseSSLContextParameters
configureSessionContext, filter, filter, getCipherSuites, getCipherSuitesFilter, getDefaultCipherSuitesFilter, getDefaultSecureSocketProcotolFilter, getSecureSocketProtocols, getSecureSocketProtocolsFilter, getSessionTimeout, getSNIHostNames, getSSLServerSocketFactoryConfigurers, getSSLSocketFactorySSLSocketConfigurers, matchesOneOf, setCipherSuites, setCipherSuitesFilter, setSecureSocketProtocols, setSecureSocketProtocolsFilter, setSessionTimeoutMethods inherited from class org.apache.camel.support.jsse.JsseParameters
getCamelContext, parsePropertyValue, parsePropertyValues, resolveResource, setCamelContext
-
Field Details
-
clientAuthentication
-
-
Constructor Details
-
SSLContextServerParameters
public SSLContextServerParameters()
-
-
Method Details
-
getClientAuthentication
-
setClientAuthentication
Sets the configuration options for server-side client-authentication requirements. The value must be one of NONE, WANT, REQUIRE as defined inClientAuthentication.- Parameters:
value- the desired configuration options ornullto use the defaults
-
getAllowPassthrough
protected boolean getAllowPassthrough()Description copied from class:BaseSSLContextParametersReturns 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:
getAllowPassthroughin classBaseSSLContextParameters- See Also:
-
configureSSLContext
Description copied from class:BaseSSLContextParametersConfigures the actualSSLContextitself 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:
configureSSLContextin classBaseSSLContextParameters- Parameters:
context- the context to configure- Throws:
GeneralSecurityException- if there is an error configuring the context
-
getSSLEngineConfigurers
protected List<BaseSSLContextParameters.Configurer<SSLEngine>> getSSLEngineConfigurers(SSLContext context) This implementation allows for configuration of the need and want settings for client authentication, but ignores the enabled cipher suites and protocols as they are not client and server side specific in anSSLEngine. Consequently, overriding them here would be a bit odd as the server side specific configuration shouldn't really override a shared client/server configuration option.- Overrides:
getSSLEngineConfigurersin classBaseSSLContextParameters- Parameters:
context- the context that serves as the factory forSSLEngineinstances- Returns:
- the needed configurers
-
getSSLServerSocketFactorySSLServerSocketConfigurers
protected List<BaseSSLContextParameters.Configurer<SSLServerSocket>> getSSLServerSocketFactorySSLServerSocketConfigurers(SSLContext context) Description copied from class:BaseSSLContextParametersReturns the list of configurers to apply to anSSLServerSocketin order to fully configure it in compliance with the provided configuration options. These configurers are intended for sockets produced by aSSLServerSocketFactory, seeBaseSSLContextParameters.getSSLSocketFactorySSLSocketConfigurers(SSLContext)for configurers related to sockets produced by aSSLSocketFactory. The configurers are to be applied in the order in which they appear in the list.- Overrides:
getSSLServerSocketFactorySSLServerSocketConfigurersin classBaseSSLContextParameters- Parameters:
context- the context that serves as the factory forSSLServerSocketFactoryinstances- Returns:
- the needed configurers
-
getSSLSocketFactoryConfigurers
protected List<BaseSSLContextParameters.Configurer<SSLSocketFactory>> getSSLSocketFactoryConfigurers(SSLContext context) This class has no bearing onSSLSocketFactoryinstances and therefore provides no configurers for that purpose.- Overrides:
getSSLSocketFactoryConfigurersin classBaseSSLContextParameters- Parameters:
context- the context that serves as the factory forSSLSocketFactoryinstances- Returns:
- the needed configurers
- See Also:
-
toString
-