|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.brickred.socialauth.util.Token
public class Token
Stores the keys and secret for OAuth access token as well as OAuth request token.
| Constructor Summary | |
|---|---|
Token()
|
|
Token(String key,
String secret)
|
|
| Method Summary | |
|---|---|
Object |
getAttribute(String key)
Gets an attribute based from the given key. |
Map<String,Object> |
getAttributes()
Gets the attributes of this token. |
String |
getKey()
Retrieves the Token Key |
String |
getSecret()
Retrieves the Token Secret |
void |
setAttribute(String key,
Object value)
Sets an attribute based from the given key and value. |
void |
setKey(String key)
Updates the Token Key |
void |
setSecret(String secret)
Updates the Token Secret |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Token(String key,
String secret)
key - the Keysecret - the Secretpublic Token()
| Method Detail |
|---|
public String getKey()
public void setKey(String key)
key - the Token Keypublic String getSecret()
public void setSecret(String secret)
secret - the Token Secretpublic Map<String,Object> getAttributes()
public Object getAttribute(String key)
public void setAttribute(String key,
Object value)
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||