RestClient uses system properties and system default SSLContext (#25757)

This commit calls the `useSystemProperties` method on the HttpAsyncClientBuilder so that the jvm
system properties are used. The primary reason for doing this is to ensure the builder uses the
system default SSLContext rather than the default instance created by the http client library.

Closes #23231
This commit is contained in:
Jay Modi 2017-07-20 07:36:56 -06:00 committed by GitHub
parent 3042b5dc7d
commit 3e4bc027eb
6 changed files with 145 additions and 2 deletions

View file

@ -79,6 +79,9 @@ https://hc.apache.org/httpcomponents-asyncclient-dev/httpasyncclient/apidocs/org
include-tagged::{doc-tests}/RestClientDocumentation.java[rest-client-config-encrypted-communication]
--------------------------------------------------
If no explicit configuration is provided, the http://docs.oracle.com/javase/7/docs/technotes/guides/security/jsse/JSSERefGuide.html#CustomizingStores[system default configuration]
will be used.
=== Others
For any other required configuration needed, the Apache HttpAsyncClient docs