LOGGER.debug(format("Method: '%s'", method));
LOGGER.debug(format("URL: '%s'", url));
LOGGER.debug(format("Parameters: %s", params));
final OAuthMessage oauthMessage = new OAuthMessage(method, url, params.entrySet());
oauthMessage.sign(new OAuthAccessor(localConsumer));
return oauthMessage.getAuthorizationHeader(null);
}
catch (OAuthException e)
{
// shouldn't really happen...