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.CredentialStore
public void store(String userId, NuxeoOAuth2Token token)
public NuxeoOAuth2Token refresh(String refreshToken, String clientId) throws ClientException
ClientException
public void delete(String token, String clientId) throws ClientException
ClientException
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 token) throws ClientException
ClientException
public NuxeoOAuth2Token getToken(String serviceName, String nuxeoLogin) throws ClientException
ClientException
Copyright © 2015 Nuxeo SA. All rights reserved.