How do I set the Private Key when making an OAuth Request using RSA-SHA1 signature method?
This is what I currently have for HMAC-SHA1:-
Client client = Client.create();
OAuthSecrets secrets = new OAuthSecrets().consumerSecret("test_test");
OAuthParameters params = new OAuthParameters().consumerKey("test").signatureMethod(HMAC_SHA1.NAME);
OAuthClientFilter filter = new OAuthClientFilter(client.getProviders(), params, secrets);
For RSA-SHA1, I do not need the OAuthSecrets, so this is what I would have:-
Client client = Client.create();
OAuthParameters params = new OAuthParameters().consumerKey("test").signatureMethod(RSA_SHA1.NAME);
Next I would need to sign the request using my private Key, how do I do that?