Skip to content

Latest commit

 

History

History

client

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Jersey 1 - Client

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));