public class OAuthToken extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
key |
private java.lang.String |
secret |
| Constructor and Description |
|---|
OAuthToken(OAuthToken other)
Creates a clone of another token
|
OAuthToken(java.lang.String key,
java.lang.String secret)
Creates a new token
|
| Modifier and Type | Method and Description |
|---|---|
static OAuthToken |
createToken(oauth.signpost.OAuthConsumer consumer)
Creates an OAuthToken from the token currently managed by the
OAuthConsumer. |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getKey()
Replies the token key
|
java.lang.String |
getSecret()
Replies the token secret
|
int |
hashCode() |
public OAuthToken(java.lang.String key, java.lang.String secret)
key - the token keysecret - the token secretpublic OAuthToken(OAuthToken other)
other - the other token. Must not be null.java.lang.IllegalArgumentException - if other is nullpublic static OAuthToken createToken(oauth.signpost.OAuthConsumer consumer)
OAuthConsumer.consumer - the consumerpublic java.lang.String getKey()
public java.lang.String getSecret()
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object