<commit_before># OkHttp AWSv4 Signer interceptor

  [![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.github.esiqveland.awssigner/okhttp-awssigner-interceptor/badge.svg)](https://maven-badges.herokuapp.com/maven-central/com.github.esiqveland.awssigner/okhttp-awssigner-interceptor/)
  [![Build Status](https://circleci.com/gh/esiqveland/okhttp-awssigner.svg?&style=shield)](https://circleci.com/gh/esiqveland/okhttp-awssigner)

## What is it?

An interceptor for the nice OkHttpClient from Square to sign requests for use with AWS services that require signatures on requests.

This project aims to follow the v4 signature spec described here: https://docs.aws.amazon.com/general/latest/gr/signature-version-4.html


## Motivation

I could not find a signing interceptor that did not depend on the entire AWS SDK, so I made this one.
My goal is to reduce the number of dependencies, so as to make it very easy to include in any Java project.


## Usage

Interceptor should be included late in the interceptor chain, so that all headers (including `Host`) has been set by OkHttp,
before signing is invoked.
<commit_msg>add coveralls<commit_after># OkHttp AWSv4 Signer interceptor

  [![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.github.esiqveland.awssigner/okhttp-awssigner-interceptor/badge.svg)](https://maven-badges.herokuapp.com/maven-central/com.github.esiqveland.awssigner/okhttp-awssigner-interceptor/)
  [![Build Status](https://circleci.com/gh/esiqveland/okhttp-awssigner.svg?&style=shield)](https://circleci.com/gh/esiqveland/okhttp-awssigner)
  [![Coverage Status](https://coveralls.io/repos/github/esiqveland/okhttp-awssigner/badge.svg?branch=master)](https://coveralls.io/github/esiqveland/okhttp-awssigner?branch=master)
  
## What is it?

An interceptor for the nice OkHttpClient from Square to sign requests for use with AWS services that require signatures on requests.

This project aims to follow the v4 signature spec described here: https://docs.aws.amazon.com/general/latest/gr/signature-version-4.html


## Motivation

I could not find a signing interceptor that did not depend on the entire AWS SDK, so I made this one.
My goal is to reduce the number of dependencies, so as to make it very easy to include in any Java project.


## Usage

Interceptor should be included late in the interceptor chain, so that all headers (including `Host`) has been set by OkHttp,
before signing is invoked.

{'fraction_non_alphanumeric': 0.10077204388459976, 'fraction_numerical': 0.002438033319788704, 'mean_word_length': 4.990267639902676, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 12, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5638808', 'n_tokens_mistral': 790, 'n_tokens_neox': 740, 'n_words': 231}