Skip to content
This repository has been archived by the owner on Apr 28, 2024. It is now read-only.

Named truststores, Client builder #28

Closed
andrus opened this issue Jan 25, 2018 · 0 comments
Closed

Named truststores, Client builder #28

andrus opened this issue Jan 25, 2018 · 0 comments
Milestone

Comments

@andrus
Copy link
Contributor

andrus commented Jan 25, 2018

The apps occasionally need more than one truststore. Or a typical situation when a client for one endpoint needs a custom trust store (because the server is using self-signed certificates), and all others are fine with the default JVM truststore. So going to replace (with deprecation) the current singleton truststore with a new config tree:

jerseyclient:
   trustStore:
     ts1:
       location: "classpath:ts1"
       password: "changeit" # "changeit"  is the default of course and can be omitted
    ts2:
      location: ....

The use of it will require adding builder method to HttpClientFactory:

clientFactory.newClientBuilder().auth("a1").trustStore("ts1").build();
andrus added a commit that referenced this issue Jan 25, 2018
* deprecating the old trustStore* config ... with tests
@andrus andrus added this to the 0.25 milestone Jan 25, 2018
@andrus andrus closed this as completed Jan 25, 2018
andrus added a commit that referenced this issue Jan 25, 2018
* removing parameterization from client builder ... not expecting subclasses with extra methods
andrus added a commit that referenced this issue Feb 19, 2018
* adding truststore ref to OAuth2AuthenticatorFactory
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant