public class Token extends Object implements Serializable
| Constructor and Description |
|---|
Token() |
Token(String key,
String secret) |
| Modifier and Type | Method and Description |
|---|---|
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() |
public String getKey()
public void setKey(String key)
key - the Token Keypublic String getSecret()
public void setSecret(String secret)
secret - the Token Secretpublic void setAttribute(String key, Object value)
Copyright © 2018. All Rights Reserved.