Package org.scribe.services
Class RSASha1SignatureService
- java.lang.Object
-
- org.scribe.services.RSASha1SignatureService
-
- All Implemented Interfaces:
SignatureService
public class RSASha1SignatureService extends java.lang.Object implements SignatureService
A signature service that uses the RSA-SHA1 algorithm.
-
-
Constructor Summary
Constructors Constructor Description RSASha1SignatureService(java.security.PrivateKey privateKey)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getSignature(java.lang.String baseString, java.lang.String apiSecret, java.lang.String tokenSecret)
Returns the signaturejava.lang.String
getSignatureMethod()
Returns the signature method/algorithm
-
-
-
Method Detail
-
getSignature
public java.lang.String getSignature(java.lang.String baseString, java.lang.String apiSecret, java.lang.String tokenSecret)
Returns the signature- Specified by:
getSignature
in interfaceSignatureService
- Parameters:
baseString
- url-encoded string to signapiSecret
- api secret for your apptokenSecret
- token secret (empty string for the request token step)- Returns:
- signature
-
getSignatureMethod
public java.lang.String getSignatureMethod()
Returns the signature method/algorithm- Specified by:
getSignatureMethod
in interfaceSignatureService
- Returns:
-
-