java.lang.Object
com.erudika.para.server.security.OAuth1HmacSigner
-
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
-