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.CredentialStore
public void delete(String userId, com.google.api.client.auth.oauth2.Credential credential)
delete
in interface com.google.api.client.auth.oauth2.CredentialStore
public boolean load(String userName, com.google.api.client.auth.oauth2.Credential credential)
load
in interface com.google.api.client.auth.oauth2.CredentialStore
public NuxeoOAuth2Token getToken(String serviceName, String nuxeoLogin) throws Exception
Exception
Copyright © 2013 Nuxeo SA. All Rights Reserved.