Class OAuth1HmacSigner
java.lang.Object
com.erudika.para.server.security.OAuth1HmacSigner
Signs OAuth 1.0a requests using HMAC-SHA1.
- Author:
- Alex Bogdanovski [[email protected]]
-
Method Summary
-
Method Details
-
sign
public static String sign(String httpMethod, String url, Map<String, String[]> params, String apiKey, String apiSecret, String oauthToken, String tokenSecret) Sign a request and return the "Authorization" header.- Parameters:
httpMethod- the HTTP methodurl- the request URLparams- the parameters mapapiKey- the API keyapiSecret- the API secretoauthToken- the tokentokenSecret- token secret- Returns:
- the signed auth header
-