public interface AccessToken extends Serializable
Modifier and Type | Method and Description |
---|---|
String |
getAccessToken()
Return string representation of this access token.
|
String |
getAvailableScopes()
Return list of all available scopes in single String.
|
boolean |
isScopeAvailable(String scope)
Return true if given scope is available in list of OAuth scopes of this access token
|
String getAvailableScopes()
In OAuth specification, each scope represents some kind of permission. So note that this access token could be used only to call operations, for which scope is available.
For example: scope "email" could be used in Facebook to retrieve information about user's email address. So if you have this scope, you can use this access token object to retrieve email address of this user from Facebook.
boolean isScopeAvailable(String scope)
scope
- to testgetAvailableScopes()
String getAccessToken()
Copyright © 2013 JBoss by Red Hat. All Rights Reserved.