public class OAuthToken extends Object
| Modifier and Type | Field and Description |
|---|---|
private String |
key |
private String |
secret |
| Constructor and Description |
|---|
OAuthToken(OAuthToken other)
Creates a clone of another token
|
OAuthToken(String key,
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(Object obj) |
String |
getKey()
Replies the token key
|
String |
getSecret()
Replies the token secret
|
int |
hashCode() |
public OAuthToken(String key, String secret)
key - the token keysecret - the token secretpublic OAuthToken(OAuthToken other)
other - the other token. Must not be null.IllegalArgumentException - if other is nullpublic static OAuthToken createToken(oauth.signpost.OAuthConsumer consumer)
OAuthConsumer.consumer - the consumer