|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.brickred.socialauth.util.AccessGrant
public class AccessGrant
Stores the keys and secret for OAuth access token as well as OAuth request token.
| Constructor Summary | |
|---|---|
AccessGrant()
|
|
AccessGrant(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 |
Permission |
getPermission()
Retrieves the scope |
String |
getProviderId()
Retrieves the provider id. |
String |
getSecret()
Retrieves the Token Secret |
void |
setAttribute(String key,
Object value)
Sets an attribute based from the given key and value. |
void |
setAttributes(Map<String,Object> attributes)
Sets an attributes from given attributes map. |
void |
setKey(String key)
Updates the Token Key |
void |
setPermission(Permission permission)
|
void |
setProviderId(String providerId)
Updates the provider id. |
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 AccessGrant(String key,
String secret)
key - the Keysecret - the Secretpublic AccessGrant()
| 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 void setAttributes(Map<String,Object> attributes)
public String getProviderId()
public void setProviderId(String providerId)
providerId - the provider id.public Permission getPermission()
public void setPermission(Permission permission)
permission - Permission object which can be Permission.AUHTHENTICATE_ONLY,
Permission.ALL, Permission.DEFAULTpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||