[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [jersey-dev] jersey client builder needs some love
|
Hi John,
It looks like a good idea to continue the discussion using a Jersey
issue tracker https://github.com/eclipse-ee4j/jersey/issues/4568.
Thanks,
Jan
On 15.09.2020 19:47, John Calcote wrote:
Hi folks,
I have a need to create a jersey client that has the ability to do
X.509 client authentication to the server, but doesn't care about
trusting the server. This means I need to supply a keystore to the
client builder, and I also need to supply a custom trust manager.
AFAICT, there's no way to do this because the builder allows you to
specify an SSLContext OR an SSLConfigurator, but not both. When you
supply arguments that build one internally, the other gets set to
null, so you can't actually do what needs to be done using the client
builder.
To work around this, I had to subclass JerseyClient to expose the
constructor I wanted to use. This seems fundamentally broken to me.
I'd like to see an enhancement to the builder that allows a bit
more flexibility on how I get to create my secure clients.
Thoughts?
Thanks,
John Calcote
Hammerspace, Inc.
Los Altos, CA.
_______________________________________________
jersey-dev mailing list
jersey-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://urldefense.com/v3/__https://www.eclipse.org/mailman/listinfo/jersey-dev__;!!GqivPVa7Brio!N9PP_0oNdtB5c_hb_XohsSCxiH_hbiXVZgISJkh69PL6Uivr61_I9TfCvAsHxKBn$