oauthParameters.setOAuthConsumerSecret(getOAuthSecretKey(oauthConsumer
.getOauthConsumerKey()));
oauthParameters.setOAuthNonce(oauthConsumer.getOauthNonce());
oauthParameters.setOAuthTimestamp(oauthConsumer.getOauthTimeStamp());
oauthParameters.setOAuthSignatureMethod(oauthConsumer.getOauthSignatureMethod());
OAuthHmacSha1Signer signer = new OAuthHmacSha1Signer();
String baseString = OAuthUtil.getSignatureBaseString(oauthConsumer.getBaseString(),
oauthConsumer.getHttpMethod(), oauthParameters.getBaseParameters());
String signature = signer.getSignature(baseString, oauthParameters);
if (signature != null
&& URLEncoder.encode(signature).equals(oauthConsumer.getOauthSignature())) {
return true;
} else if (signature != null && signature.equals(oauthConsumer.getOauthSignature())) {