Interface SSLContextParametersAware
- All Superinterfaces:
CamelContextAware, HasCamelContext
Marker interface for Camel components and endpoints that can consume the context-wide
SSLContextParameters configured on the CamelContext.
Camel supports a single global SSL/TLS configuration via
CamelContext.setSSLContextParameters(org.apache.camel.support.jsse.SSLContextParameters). Components that
implement this interface expose the isUseGlobalSslContextParameters() /
setUseGlobalSslContextParameters(boolean) pair; when enabled, retrieveGlobalSslContextParameters()
fetches the context-level instance so the component does not need its own per-endpoint TLS configuration. This
pattern avoids duplicating keystore and truststore settings across many endpoints while still allowing per-endpoint
overrides when the component has its own SSLContextParameters property.
See JSSE Utility in the Camel user
manual.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbooleanDetermine if the implementing object is using global SSL context parameters.default @Nullable SSLContextParametersReturns the globalSSLContextParametersif enabled on the implementing object, null otherwise.voidsetUseGlobalSslContextParameters(boolean useGlobalSslContextParameters) Enable usage of global SSL context parameters.Methods inherited from interface CamelContextAware
setCamelContextMethods inherited from interface HasCamelContext
getCamelContext
-
Method Details
-
retrieveGlobalSslContextParameters
Returns the globalSSLContextParametersif enabled on the implementing object, null otherwise. -
isUseGlobalSslContextParameters
boolean isUseGlobalSslContextParameters()Determine if the implementing object is using global SSL context parameters. -
setUseGlobalSslContextParameters
void setUseGlobalSslContextParameters(boolean useGlobalSslContextParameters) Enable usage of global SSL context parameters.
-