public class OAuth2TokenStore extends Object implements com.google.api.client.util.store.DataStore<com.google.api.client.auth.oauth2.StoredCredential>
DataStore backed by a Nuxeo Directory| Modifier and Type | Field and Description | 
|---|---|
static String | 
DIRECTORY_NAME  | 
static String | 
ENTRY_ID  | 
protected static org.apache.commons.logging.Log | 
log  | 
| Constructor and Description | 
|---|
OAuth2TokenStore(String serviceName)  | 
| Modifier and Type | Method and Description | 
|---|---|
com.google.api.client.util.store.DataStore<com.google.api.client.auth.oauth2.StoredCredential> | 
clear()  | 
boolean | 
containsKey(String key)  | 
boolean | 
containsValue(com.google.api.client.auth.oauth2.StoredCredential value)  | 
com.google.api.client.util.store.DataStore<com.google.api.client.auth.oauth2.StoredCredential> | 
delete(String key)  | 
void | 
delete(String token,
      String clientId)  | 
protected DocumentModel | 
find(Map<String,Serializable> filter)  | 
com.google.api.client.auth.oauth2.StoredCredential | 
get(String key)  | 
com.google.api.client.util.store.DataStoreFactory | 
getDataStoreFactory()  | 
String | 
getId()  | 
NuxeoOAuth2Token | 
getToken(String token)
Retrieves an entry by its  
accessToken. | 
NuxeoOAuth2Token | 
getToken(String clientId,
        String userId)
Retrieves an entry by its  
clientId and nuxeoLogin. | 
protected NuxeoOAuth2Token | 
getTokenFromDirectoryEntry(DocumentModel entry)  | 
boolean | 
isEmpty()  | 
Set<String> | 
keySet()  | 
DocumentModelList | 
query()  | 
DocumentModelList | 
query(Map<String,Serializable> filter)  | 
DocumentModelList | 
query(Map<String,Serializable> filter,
     Set<String> fulltext,
     Map<String,String> orderBy)  | 
NuxeoOAuth2Token | 
refresh(DocumentModel entry,
       NuxeoOAuth2Token token)  | 
NuxeoOAuth2Token | 
refresh(String refreshToken,
       String clientId)  | 
com.google.api.client.util.store.DataStore<com.google.api.client.auth.oauth2.StoredCredential> | 
set(String key,
   com.google.api.client.auth.oauth2.StoredCredential credential)  | 
int | 
size()  | 
void | 
store(String userId,
     NuxeoOAuth2Token token)  | 
protected NuxeoOAuth2Token | 
storeTokenAsDirectoryEntry(NuxeoOAuth2Token aToken)  | 
boolean | 
update(NuxeoOAuth2Token token)  | 
Collection<com.google.api.client.auth.oauth2.StoredCredential> | 
values()  | 
protected static final org.apache.commons.logging.Log log
public static final String DIRECTORY_NAME
public static final String ENTRY_ID
public OAuth2TokenStore(String serviceName)
public com.google.api.client.util.store.DataStore<com.google.api.client.auth.oauth2.StoredCredential> set(String key, com.google.api.client.auth.oauth2.StoredCredential credential) throws IOException
set in interface com.google.api.client.util.store.DataStore<com.google.api.client.auth.oauth2.StoredCredential>IOExceptionpublic com.google.api.client.util.store.DataStore<com.google.api.client.auth.oauth2.StoredCredential> delete(String key) throws IOException
delete in interface com.google.api.client.util.store.DataStore<com.google.api.client.auth.oauth2.StoredCredential>IOExceptionpublic com.google.api.client.auth.oauth2.StoredCredential get(String key) throws IOException
get in interface com.google.api.client.util.store.DataStore<com.google.api.client.auth.oauth2.StoredCredential>IOExceptionpublic com.google.api.client.util.store.DataStoreFactory getDataStoreFactory()
getDataStoreFactory in interface com.google.api.client.util.store.DataStore<com.google.api.client.auth.oauth2.StoredCredential>public final String getId()
getId in interface com.google.api.client.util.store.DataStore<com.google.api.client.auth.oauth2.StoredCredential>public boolean containsKey(String key) throws IOException
containsKey in interface com.google.api.client.util.store.DataStore<com.google.api.client.auth.oauth2.StoredCredential>IOExceptionpublic boolean containsValue(com.google.api.client.auth.oauth2.StoredCredential value) throws IOException
containsValue in interface com.google.api.client.util.store.DataStore<com.google.api.client.auth.oauth2.StoredCredential>IOExceptionpublic boolean isEmpty() throws IOException
isEmpty in interface com.google.api.client.util.store.DataStore<com.google.api.client.auth.oauth2.StoredCredential>IOExceptionpublic int size() throws IOException
size in interface com.google.api.client.util.store.DataStore<com.google.api.client.auth.oauth2.StoredCredential>IOExceptionpublic Set<String> keySet() throws IOException
keySet in interface com.google.api.client.util.store.DataStore<com.google.api.client.auth.oauth2.StoredCredential>IOExceptionpublic Collection<com.google.api.client.auth.oauth2.StoredCredential> values() throws IOException
values in interface com.google.api.client.util.store.DataStore<com.google.api.client.auth.oauth2.StoredCredential>IOExceptionpublic com.google.api.client.util.store.DataStore<com.google.api.client.auth.oauth2.StoredCredential> clear() throws IOException
clear in interface com.google.api.client.util.store.DataStore<com.google.api.client.auth.oauth2.StoredCredential>IOExceptionpublic void store(String userId, NuxeoOAuth2Token token)
public NuxeoOAuth2Token refresh(String refreshToken, String clientId)
public NuxeoOAuth2Token refresh(DocumentModel entry, NuxeoOAuth2Token token)
public boolean update(NuxeoOAuth2Token token)
public NuxeoOAuth2Token getToken(String token)
accessToken.public NuxeoOAuth2Token getToken(String clientId, String userId)
clientId and nuxeoLogin.public DocumentModelList query()
public DocumentModelList query(Map<String,Serializable> filter)
public DocumentModelList query(Map<String,Serializable> filter, Set<String> fulltext, Map<String,String> orderBy)
protected NuxeoOAuth2Token getTokenFromDirectoryEntry(DocumentModel entry)
protected NuxeoOAuth2Token storeTokenAsDirectoryEntry(NuxeoOAuth2Token aToken)
protected DocumentModel find(Map<String,Serializable> filter)
Copyright © 2019 Nuxeo. All rights reserved.