Interface SSLContextParametersAware

All Superinterfaces:
CamelContextAware, HasCamelContext

public interface SSLContextParametersAware extends CamelContextAware
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 Details

    • retrieveGlobalSslContextParameters

      default @Nullable SSLContextParameters retrieveGlobalSslContextParameters()
      Returns the global SSLContextParameters if 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.