Package oauth.signpost.signature
Class OAuthMessageSigner
- java.lang.Object
-
- oauth.signpost.signature.OAuthMessageSigner
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
HmacSha1MessageSigner
,PlainTextMessageSigner
public abstract class OAuthMessageSigner extends Object implements Serializable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description OAuthMessageSigner()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected String
base64Encode(byte[] b)
protected byte[]
decodeBase64(String s)
String
getConsumerSecret()
abstract String
getSignatureMethod()
String
getTokenSecret()
void
setConsumerSecret(String consumerSecret)
void
setTokenSecret(String tokenSecret)
abstract String
sign(HttpRequest request, HttpParameters requestParameters)
-
-
-
Method Detail
-
sign
public abstract String sign(HttpRequest request, HttpParameters requestParameters) throws OAuthMessageSignerException
- Throws:
OAuthMessageSignerException
-
getSignatureMethod
public abstract String getSignatureMethod()
-
getConsumerSecret
public String getConsumerSecret()
-
getTokenSecret
public String getTokenSecret()
-
setConsumerSecret
public void setConsumerSecret(String consumerSecret)
-
setTokenSecret
public void setTokenSecret(String tokenSecret)
-
decodeBase64
protected byte[] decodeBase64(String s)
-
base64Encode
protected String base64Encode(byte[] b)
-
-