1. HTTP Client Support
Spring CredHub CredHubOperations supports multiple HTTP client libraries to communicate with the CredHub API. The following libraries are supported:
-
Java’s builtin
HttpURLConnection(default)
Choosing a specific client library requires the appropriate dependency to be available on the application classpath. The application classpath will be inspected for each client library in the order listed above.
Spring CredHub ReactiveCredHubOperations only supports the Netty HTTP client library.
1.1. Apache HttpComponents
To use Apache HttpComponents to communicate with CredHub, add the following dependency to the application:
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId>
</dependency>