Opened 10 years ago

Closed 10 years ago

#1819 closed enhancement (fixed)

Create SSLContext object from SSLUtil

Reported by: Nicklas Nordborg Owned by: everyone
Priority: minor Milestone: BASE 3.3
Component: core Version:
Keywords: Cc:

Description

The current implementation in the SSLUtil class has methods for creating the Apache variant of SSLSocketFactory. This is fine if you going to use it with other Apache code, but other libraries may instead use the javax.net.ssl.SSLSocketFactory which provides the same features but is not compatible with the Apache implementation. Fortunately, much of the code in SSLUtil is used for building a SSLContext which can then be used to create either type of factory.

It would be useful to have a method that return a SSLContext only so that the calling code can decide which type of factory to create.

Change History (1)

comment:1 by Nicklas Nordborg, 10 years ago

Resolution: fixed
Status: newclosed

(In [6492]) Fixes #1819: Create SSLContext object from SSLUtil

Re-organized the code in getSSLSocketFactory and added getSSLContext.

Note: See TracTickets for help on using tickets.