public class OAuth2TokenStore extends Object implements com.google.api.client.auth.oauth2.CredentialStore
| Modifier and Type | Field and Description |
|---|---|
static String |
DIRECTORY_NAME |
| Constructor and Description |
|---|
OAuth2TokenStore(String serviceName) |
| Modifier and Type | Method and Description |
|---|---|
void |
delete(String userId,
com.google.api.client.auth.oauth2.Credential credential) |
void |
delete(String token,
String clientId) |
NuxeoOAuth2Token |
getToken(String token) |
NuxeoOAuth2Token |
getToken(String serviceName,
String nuxeoLogin) |
boolean |
load(String userName,
com.google.api.client.auth.oauth2.Credential credential) |
NuxeoOAuth2Token |
refresh(String refreshToken,
String clientId) |
void |
store(String userId,
com.google.api.client.auth.oauth2.Credential credential) |
void |
store(String userId,
NuxeoOAuth2Token token) |
public static final String DIRECTORY_NAME
public OAuth2TokenStore(String serviceName)
public void store(String userId, com.google.api.client.auth.oauth2.Credential credential)
store in interface com.google.api.client.auth.oauth2.CredentialStorepublic void store(String userId, NuxeoOAuth2Token token)
public NuxeoOAuth2Token refresh(String refreshToken, String clientId) throws ClientException
ClientExceptionpublic void delete(String token, String clientId) throws ClientException
ClientExceptionpublic void delete(String userId, com.google.api.client.auth.oauth2.Credential credential)
delete in interface com.google.api.client.auth.oauth2.CredentialStorepublic boolean load(String userName, com.google.api.client.auth.oauth2.Credential credential)
load in interface com.google.api.client.auth.oauth2.CredentialStorepublic NuxeoOAuth2Token getToken(String token) throws ClientException
ClientExceptionpublic NuxeoOAuth2Token getToken(String serviceName, String nuxeoLogin) throws ClientException
ClientExceptionCopyright © 2015 Nuxeo SA. All rights reserved.