Previous Topic

Next Topic

Book Contents

Book Index

Configuring the HTTP Bundle to Use a Custom SSL Server Socket Factory as a Service

The HTTP Bundle can be set to use a custom SSL JSSE provider, which implements a Server Socket Factory – jvax.net.ssl.SSLServerSocketFactory, for establishing secure communication. The factory has to be available in the OSGi framework as a service with certain registration properties. In detail, the HTTP Bundle will apply a user-defined filter, specified as a configuration property, to locate the right SSL Server Socket Factory service.

To activate this mechanism for using a custom SSL protocol implementation, specify a value to the filter property of HTTP Bundle's configuration. For example, if an SSL provider bundle registers an SSL Server Socket Factory service with registration properties provider equal to "some.provider" and version equal to "2.0", the filter property might be (&(provider=some.provider)(version>=2)). Refer to HTTP Secure Server Configuration for more information about HTTP Bundle's configuration dictionary.