Package | Description |
---|---|
org.gatein.api.oauth |
Modifier and Type | Method and Description |
---|---|
AccessToken |
OAuthProvider.loadAccessToken(String username)
Return access token for given user from portal identity storage (DB or LDAP).
|
AccessToken |
OAuthProvider.validateTokenAndUpdateScopes(AccessToken accessToken)
Check if given access token is valid and possibly update some info (like scopes or access token itself if it was refreshed)
In case that access token has been refreshed (updated) you may call
OAuthProvider.saveAccessToken(String, AccessToken) to update
it in DB (it's not done by Portal itself during call of this method) |
Modifier and Type | Method and Description |
---|---|
<T> T |
OAuthProvider.getAuthorizedSocialApiObject(AccessToken accessToken,
Class<T> socialApiObjectType)
Return "accessor" object, which can be used to call some operations on Social network
|
void |
OAuthProvider.revokeToken(AccessToken accessToken)
Revoke current access token on OAuth provider side, so access token won't be valid anymore and portal application
can't be seen in list of available applications of OAuth provider (For example:
https://www.facebook.com/settings?tab=applications in case of Facebook)
|
void |
OAuthProvider.saveAccessToken(String username,
AccessToken accessToken)
Save access token for given user to portal identity storage (DB or LDAP)
|
AccessToken |
OAuthProvider.validateTokenAndUpdateScopes(AccessToken accessToken)
Check if given access token is valid and possibly update some info (like scopes or access token itself if it was refreshed)
In case that access token has been refreshed (updated) you may call
OAuthProvider.saveAccessToken(String, AccessToken) to update
it in DB (it's not done by Portal itself during call of this method) |
Copyright © 2013 JBoss by Red Hat. All Rights Reserved.