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) |
NuxeoOAuth2Token |
getToken(String serviceName,
String nuxeoLogin) |
boolean |
load(String userName,
com.google.api.client.auth.oauth2.Credential credential) |
void |
store(String userId,
com.google.api.client.auth.oauth2.Credential credential) |
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 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 serviceName, String nuxeoLogin) throws Exception
ExceptionCopyright © 2014 Nuxeo SA. All Rights Reserved.