oauthP5.oauth
Interface SignatureService

All Known Implementing Classes:
HMACSha1SignatureService, PlaintextSignatureService

public interface SignatureService

Signs a base string, returning the OAuth signature

Author:
Pablo Fernandez

Method Summary
 String getSignature(String baseString, String apiSecret, String tokenSecret)
          Returns the signature
 String getSignatureMethod()
          Returns the signature method/algorithm
 

Method Detail

getSignature

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

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

String getSignatureMethod()
Returns the signature method/algorithm

Returns:


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