Interface SignatureService
-
- All Known Implementing Classes:
HMACSha1SignatureService,PlaintextSignatureService,RSASha1SignatureService
public interface SignatureServiceSigns a base string, returning the OAuth signature ...
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetSignature(String baseString, String apiSecret, String tokenSecret)Returns the signatureStringgetSignatureMethod()Retourne le nom de la méthode de signature (ex: HMAC-SHA1).
-
-
-
Method Detail
-
getSignature
String getSignature(String baseString, String apiSecret, String tokenSecret)
Returns the signature- Parameters:
baseString- url-encoded string to signapiSecret- api secret for your apptokenSecret- token secret (empty string for the request token step)- Returns:
- signature
-
getSignatureMethod
String getSignatureMethod()
Retourne le nom de la méthode de signature (ex: HMAC-SHA1).- Returns:
- Le nom de la méthode.
-
-