Skip to content

Make SslContext creation more flexible #273

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
May 20, 2017

Conversation

acogoluegnes
Copy link
Contributor

Introduce the SslContextFactory interface, in use in the ConnectionFactory
to create SslContext instance based on the connection name.
The existing ConnectionFactory#useSslProtocol() methods still work
the same way (they end using a SslContextFactory that returns the
same SslContext, whatever the name of the connection is).
This introduces a breaking change in the FrameHandlerFactory
by adding a new connectionName parameter. It should impact many
users, as this is more an internal API.

Fixes #241

acogoluegnes and others added 2 commits May 19, 2017 10:24
Introduce the SslContextFactory interface, in use in the ConnectionFactory
to create SslContext instance based on the connection name.
The existing ConnectionFactory#useSslProtocol() methods still work
the same way (they end using a SslContextFactory that returns the
same SslContext, whatever the name of the connection is).
This introduces a breaking change in the FrameHandlerFactory
by adding a new connectionName parameter. It should impact many
users, as this is more an internal API.

Fixes #241
While not something end user code should depend on,
it did trip up a couple of our tests. Be more defensive.
A non-null value trips up a new SslContextFactory test. Reverting so that
we can merge this and discuss what the default should be later
(as 5.0 is nowhere near GA or even RC release).
@michaelklishin michaelklishin merged commit ce3a04c into master May 20, 2017
@acogoluegnes acogoluegnes deleted the rabbitmq-java-client-241 branch March 21, 2019 08:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants