oauth.signpost.signature
Class OAuthMessageSigner

java.lang.Object
  extended by 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
OAuthMessageSigner()
           
 
Method Summary
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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OAuthMessageSigner

public OAuthMessageSigner()
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)


Copyright © 2010. All Rights Reserved.