}
public static int verifySignature(String consumerSecret, String tokenSecret,
HttpServletRequest request, UrlEncodedParameterMap params)
{
Signature sig = Signature.get(params.get(Constants.OAUTH_SIGNATURE_METHOD));
if(sig==null)
return 400;
try
{
if(sig.verify(consumerSecret, tokenSecret, request.getMethod(),
params.setUrl(request.getRequestURL().toString())))
{
return 200;
}
}