|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.shindig.social.core.oauth2.OAuth2DataServiceImpl
public class OAuth2DataServiceImpl
| Constructor Summary | |
|---|---|
OAuth2DataServiceImpl(java.lang.String jsonLocation,
BeanConverter converter,
java.lang.String contextroot)
|
|
| Method Summary | |
|---|---|
OAuth2Code |
getAccessToken(java.lang.String accessToken)
Retrieves an access token by its value. |
OAuth2Code |
getAuthorizationCode(java.lang.String clientId,
java.lang.String authCode)
Retrieves an authorization code by its value. |
OAuth2Client |
getClient(java.lang.String clientId)
Retrieves a pre-registered client by ID. |
OAuth2Code |
getRefreshToken(java.lang.String refreshToken)
Retrieves a refresh token by its value. |
void |
registerAccessToken(java.lang.String clientId,
OAuth2Code accessToken)
Registers an access token with a client. |
void |
registerAuthorizationCode(java.lang.String clientId,
OAuth2Code authCode)
Registers an authorization code with a client. |
void |
registerRefreshToken(java.lang.String clientId,
OAuth2Code refreshToken)
Registers a refresh token with a client. |
void |
unregisterAccessToken(java.lang.String clientId,
java.lang.String accessToken)
Unregisters an access token with a client. |
void |
unregisterAuthorizationCode(java.lang.String clientId,
java.lang.String authCode)
Unregisters an authorization code with a client. |
void |
unregisterRefreshToken(java.lang.String clientId,
java.lang.String refreshToken)
Unregisters a refresh token with a client. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
@Inject
public OAuth2DataServiceImpl(java.lang.String jsonLocation,
BeanConverter converter,
java.lang.String contextroot)
throws java.lang.Exception
java.lang.Exception| Method Detail |
|---|
public OAuth2Client getClient(java.lang.String clientId)
OAuth2DataService
getClient in interface OAuth2DataServiceclientId - identifies the client to retrieve
public OAuth2Code getAuthorizationCode(java.lang.String clientId,
java.lang.String authCode)
OAuth2DataService
getAuthorizationCode in interface OAuth2DataServiceclientId - identifies the client who owns the authorization codeauthCode - is the value of the authorization code to get
public void registerAuthorizationCode(java.lang.String clientId,
OAuth2Code authCode)
OAuth2DataService
registerAuthorizationCode in interface OAuth2DataServiceclientId - identifies the client who owns the authorization codeauthCode - is the authorization code to register with the client
public void unregisterAuthorizationCode(java.lang.String clientId,
java.lang.String authCode)
OAuth2DataService
unregisterAuthorizationCode in interface OAuth2DataServiceclientId - identifies the client who owns the authorization codeauthCode - is the value of the authorization code to unregisterpublic OAuth2Code getAccessToken(java.lang.String accessToken)
OAuth2DataService
getAccessToken in interface OAuth2DataServiceaccessToken - is the value of the accessToken to retrieve
public void registerAccessToken(java.lang.String clientId,
OAuth2Code accessToken)
OAuth2DataService
registerAccessToken in interface OAuth2DataServiceclientId - identifies the client to register the access token withaccessToken - is the access token to register with the client
public void unregisterAccessToken(java.lang.String clientId,
java.lang.String accessToken)
OAuth2DataService
unregisterAccessToken in interface OAuth2DataServiceclientId - identifies the client who owns the access tokenaccessToken - is the value of the access token to unregisterpublic OAuth2Code getRefreshToken(java.lang.String refreshToken)
OAuth2DataService
getRefreshToken in interface OAuth2DataServicerefreshToken - is the value of the refresh token to retrieve
public void registerRefreshToken(java.lang.String clientId,
OAuth2Code refreshToken)
OAuth2DataService
registerRefreshToken in interface OAuth2DataServiceclientId - identifies the client who owns the refresh tokenrefreshToken - is the refresh token to register with the client
public void unregisterRefreshToken(java.lang.String clientId,
java.lang.String refreshToken)
OAuth2DataService
unregisterRefreshToken in interface OAuth2DataServiceclientId - identifies the client who owns the refresh tokenrefreshToken - is the value of the refresh token to unregister
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||