public interface SignatureCalculator
RequestBuilder
so that signature calculation and inclusion can
be added as a pluggable component.Modifier and Type | Method and Description |
---|---|
void |
calculateAndAddSignature(String url,
Request request,
RequestBuilderBase<?> requestBuilder)
Method called when
RequestBuilder.build() method is called. |
void calculateAndAddSignature(String url, Request request, RequestBuilderBase<?> requestBuilder)
RequestBuilder.build()
method is called.
Should first calculate signature information and then modify request
(using passed RequestBuilder
) to add signature (usually as
an HTTP header).requestBuilder
- builder that can be used to modify request, usually
by adding header that includes calculated signature. Be sure NOT to
call RequestBuilder.build()
since this will cause infinite recursionrequest
- Request that is being built; needed to access content to
be signedCopyright © 2014. All Rights Reserved.