---
ConsumerKey cons = new ConsumerKey("...", "...");
RequestToken token = new RequestToken("...", "..."); // usually
accessed with a separate call
SignatureCalculator signatureCalculator = new
OAuthSignatureCalculator(cons, token);
// register with http client:
AsyncHttpClient client = ...;
client.setSignatureCalculator(signatureCalculator);
// and then authorization header gets added when request is built
---
and this has been tested with OAuth service that uses another OAuth
calculator implementation (that is: "works for me").
Implementation is not overly configurable in its current form, so
it'll use HMAC-SHA1, http headers.
-+ Tatu +-
Thanks! In order to keep track, I've filled an RFE here
> http://github.com/AsyncHttpClient/async-http-client/issues/closed#issue/61
so next time if you can do that that makes the change log easier to build.
A+
-- Jeanfrancois
>
> -+ Tatu +-
>
Ah yes, sorry for forgetting this obvious part.
-+ Tatu +-