oauthP5.oauth
Class HMACSha1SignatureService

java.lang.Object
  extended by oauthP5.oauth.HMACSha1SignatureService
All Implemented Interfaces:
SignatureService

public class HMACSha1SignatureService
extends Object
implements SignatureService

HMAC-SHA1 implementation of

Author:
Pablo Fernandez

Constructor Summary
HMACSha1SignatureService()
           
 
Method Summary
 String getSignature(String baseString, String apiSecret, String tokenSecret)
          Returns the signature
 String getSignatureMethod()
          Returns the signature method/algorithm
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HMACSha1SignatureService

public HMACSha1SignatureService()
Method Detail

getSignature

public String getSignature(String baseString,
                           String apiSecret,
                           String tokenSecret)
Returns the signature

Specified by:
getSignature in interface SignatureService
Parameters:
baseString - url-encoded string to sign
apiSecret - api secret for your app
tokenSecret - token secret (empty string for the request token step)
Returns:
signature

getSignatureMethod

public String getSignatureMethod()
Returns the signature method/algorithm

Specified by:
getSignatureMethod in interface SignatureService
Returns:


Processing library oauthP5 by New York Times R&D Lab. (c) 2012