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

Allow overriding key/trust managers on SslConfig builders #1476

Merged
merged 2 commits into from
Apr 10, 2021

Conversation

idelpivnitskiy
Copy link
Member

Motivation:

We ask key/trust materials at the constructor because they are required
arguments to build an SslConfig. However, users may use a single builder
to build multiple SslConfig instances with different materials. We should
let them override these arguments, if necessary.

Modifications:

  • Make trustManager and keyManager methods public in AbstractSslConfigBuilder;
  • Add final modifier to all methods of AbstractSslConfigBuilder;

Result:

Users can override key/trust materials at [Client|Server]SslConfigBuilder.

Motivation:

We ask key/trust materials at the constructor because they are required
arguments to build an `SslConfig`. However, users may use a single builder
to build multiple `SslConfig` instances with different materials. We should
let them override these arguments, if necessary.

Modifications:

- Make `trustManager` and `keyManager` methods public in `AbstractSslConfigBuilder`;

Result:

Users can override key/trust materials at `[Client|Server]SslConfigBuilder`.
@idelpivnitskiy idelpivnitskiy merged commit 1fc3b68 into apple:main Apr 10, 2021
@idelpivnitskiy idelpivnitskiy deleted the ssl-builder branch April 10, 2021 22:13
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