Provides converter to map request to its string canonical form.
String canonical form of the request data is concatenated (in order):
- request path + '&' delimiter
- request headers in alphabetical order each with '&' delimiter
- request query parameters in alphabetical order each with + '&' delimiter
- request body
For example:
- POST /payment?auth=8799879798&from=anton.brueckner
- Headers:
- Amount=13.00
- SourceIban=1231242314
- Body:
- <payment><id>1234</id></payment>
Has canonical string:
- /payment&Amount=13.00&SourceIban=1231242314&auth=8799879798&from=anton.brueckner&body=<payment><id>1234</id></payment>
Another example:
- POST /payment?auth=8799879798&from=anton.brueckner
- Headers:
- Amount=13.00
- SourceIban=1231242314
Has canonical string:
- /payment&Amount=13.00&SourceIban=1231242314&auth=8799879798&from=anton.brueckner&
Short canonical form of the request data is:
Note: Technically hash strength other than collision resistance is not of much importance here as the value
is going to be signed with JWS