Class SSLContextServerParameters

    • Field Detail

      • clientAuthentication

        protected String clientAuthentication
        The optional configuration options for server-side client-authentication requirements.
    • Constructor Detail

      • SSLContextServerParameters

        public SSLContextServerParameters()
    • Method Detail

      • setClientAuthentication

        public void setClientAuthentication​(String value)
        Sets the configuration options for server-side client-authentication requirements. The value must be one of NONE, WANT, REQUIRE as defined in ClientAuthentication.
        Parameters:
        value - the desired configuration options or null to use the defaults
      • 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 class BaseSSLContextParameters
        See Also:
        SSLContextClientParameters, SSLContextServerParameters
      • getSSLEngineConfigurers

        protected List<org.apache.camel.support.jsse.BaseSSLContextParameters.Configurer<SSLEngine>> getSSLEngineConfigurers​(SSLContext context)
        Returns the list of configurers to apply to an SSLEngine 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 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 an SSLEngine. 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:
        getSSLEngineConfigurers in class BaseSSLContextParameters
        Parameters:
        context - the context that serves as the factory for SSLEngine instances
        Returns:
        the needed configurers