Jersey1-client library for making HMAC authentication request to a server.
For com.sun.jersey
packages.
<dependency>
<groupId>com.bazaarvoice.auth</groupId>
<artifactId>jersey-hmac-auth-client</artifactId>
<version>${version}</version>
</dependency>
Add filter to Jersey client.
Client httpClient = ClientBuilder.newClient();
RequestConfiguration requestConfiguration = RequestConfiguration.builder()
.withVersion(Version.V3) // Specify what version of HMAC to use
.build();
httpClient.register(new HmacClientFilter(apiKey, apiKeySecret, requestConfiguration));