public String getSignature(String baseString, OAuthParameters oauthParameters)
throws OAuthException {
try {
Signature signer = Signature.getInstance("SHA1withRSA");
signer.initSign(privateKey);
signer.update(baseString.getBytes("UTF-8"));
return Base64.encode(signer.sign());
} catch (NoSuchAlgorithmException e) {
throw new OAuthException("Error generating signature", e);
} catch (InvalidKeyException e) {