public class AccessGrant extends Object implements Serializable
| Constructor and Description |
|---|
AccessGrant() |
AccessGrant(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
|
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() |
public AccessGrant(String key, String secret)
key - the Keysecret - the Secretpublic AccessGrant()
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)
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.DEFAULTCopyright © 2018. All Rights Reserved.