com.ning.http.client.SignatureCalculator |
Known Indirect Subclasses
OAuthSignatureCalculator |
Simple OAuth signature calculator that can used for constructing client signatures
for accessing services that use OAuth for authorization. |
|
Class Overview
Interface that allows injecting signature calculator into
RequestBuilder
so that signature calculation and inclusion can
be added as a pluggable component.
Public Methods
public
abstract
void
calculateAndAddSignature
(String url, Request request, RequestBuilderBase<?> requestBuilder)
Method called when build()
method is called.
Should first calculate signature information and then modify request
(using passed RequestBuilder
) to add signature (usually as
an HTTP header).
Parameters
request
| Request that is being built; needed to access content to
be signed
|
requestBuilder
| builder that can be used to modify request, usually
by adding header that includes calculated signature. Be sure NOT to
call build() since this will cause infinite recursion |