summaryrefslogtreecommitdiff
path: root/src/support/OAuthAccessTokenSecret.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/support/OAuthAccessTokenSecret.java')
-rw-r--r--src/support/OAuthAccessTokenSecret.java28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/support/OAuthAccessTokenSecret.java b/src/support/OAuthAccessTokenSecret.java
new file mode 100644
index 0000000..795b036
--- /dev/null
+++ b/src/support/OAuthAccessTokenSecret.java
@@ -0,0 +1,28 @@
+package support;
+
+/**
+ * Contains an OAuth token and secret pair. These tokens can be retrieved from
+ * dev.twitter.com (https://dev.twitter.com/docs/auth/tokens-devtwittercom) or
+ * by querying the user for a specific PIN. See {@link mining.OAuthRequester}
+ * for the latter method.
+ *
+ * @author Peter Wu
+ */
+public class OAuthAccessTokenSecret {
+
+ private final String token;
+ private final String secret;
+
+ public OAuthAccessTokenSecret(String token, String secret) {
+ this.token = token;
+ this.secret = secret;
+ }
+
+ public String getToken() {
+ return token;
+ }
+
+ public String getSecret() {
+ return secret;
+ }
+}