diff --git a/src/testcase/twitter/OAuthHeader.java b/src/testcase/twitter/OAuthHeader.java new file mode 100644 index 0000000..092f217 --- /dev/null +++ b/src/testcase/twitter/OAuthHeader.java @@ -0,0 +1,49 @@ +package testcase.twitter; + +import javax.crypto.Mac; +import javax.crypto.spec.SecretKeySpec; + +public class OAuthHeader { + private String consumer_key; + private String consumer_secret; + private String oauth_token; + private String oauth_secret; + private String method = "POST"; + private String url = "https://api.twitter.com/oauth/request_token"; + + public String getConsumer_key() { + return consumer_key; + } + + public void setConsumer_key(String consumer_key) { + this.consumer_key = consumer_key; + } + + public String getConsumer_secret() { + return consumer_secret; + } + + public void setConsumer_secret(String consumer_secret) { + this.consumer_secret = consumer_secret; + } + + public String getOauth_token() { + return oauth_token; + } + + public void setOauth_token(String oauth_token) { + this.oauth_token = oauth_token; + } + + public String getOauth_secret() { + return oauth_secret; + } + + public void setOauth_secret(String oauth_secret) { + this.oauth_secret = oauth_secret; + } + + public String getAuthorization() { + return ""; + } +}