Skip to content
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

SslSocketFactories avoids duplicate effort creating TLS components #2609

Merged
merged 2 commits into from
Apr 24, 2023

Conversation

carterkozak
Copy link
Contributor

Concretely, this simplifies creation of TrustContext and creating ClientConfiguration from a ServiceConfiguration to load the TrustManagerFactory from disk a single time rather than once for the X509TrustManager and a second time for the SSLContext to create an SSLSocketFactory.

Additionally, we provide public utility functionality such that consumers may also avoid duplicating efforts with slight code changes, without reimplementing the logic to create SSLContext instances themselves.

After this PR

==COMMIT_MSG==
SslSocketFactories avoids duplicate effort creating TLS components
==COMMIT_MSG==

Concretely, this simplifies creation of TrustContext and creating
ClientConfiguration from a ServiceConfiguration to load the
TrustManagerFactory from disk a single time rather than once for
the X509TrustManager and a second time for the SSLContext to
create an SSLSocketFactory.

Additionally, we provide public utility functionality such that
consumers may also avoid duplicating efforts with slight code
changes, without reimplementing the logic to create SSLContext
instances themselves.
@changelog-app
Copy link

changelog-app bot commented Apr 24, 2023

Generate changelog in changelog/@unreleased

Type

  • Feature
  • Improvement
  • Fix
  • Break
  • Deprecation
  • Manual task
  • Migration

Description

SslSocketFactories avoids duplicate effort creating TLS components

Check the box to generate changelog(s)

  • Generate changelog entry

Copy link

@mpritham mpritham left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm. took off auto-merge tag.

@bulldozer-bot bulldozer-bot bot merged commit 51d201f into develop Apr 24, 2023
@bulldozer-bot bulldozer-bot bot deleted the ckozak/duplicate_context_creation branch April 24, 2023 19:22
@svc-autorelease
Copy link
Collaborator

Released 7.54.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants