Class OAuth1HmacSigner

java.lang.Object
com.erudika.para.server.security.OAuth1HmacSigner

public final class OAuth1HmacSigner extends Object
Signs OAuth 1.0a requests using HMAC-SHA1.
Author:
Alex Bogdanovski [[email protected]]
  • 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 method
      url - the request URL
      params - the parameters map
      apiKey - the API key
      apiSecret - the API secret
      oauthToken - the token
      tokenSecret - token secret
      Returns:
      the signed auth header