Class OAuth2TokenStore
java.lang.Object
org.nuxeo.ecm.platform.oauth2.tokens.OAuth2TokenStore
- All Implemented Interfaces:
com.google.api.client.util.store.DataStore<com.google.api.client.auth.oauth2.StoredCredential>
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- Since:
- 7.3
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.google.api.client.util.store.DataStore<com.google.api.client.auth.oauth2.StoredCredential> clear()booleancontainsKey(String key) booleancontainsValue(com.google.api.client.auth.oauth2.StoredCredential value) com.google.api.client.util.store.DataStore<com.google.api.client.auth.oauth2.StoredCredential> voidprotected DocumentModelfind(Map<String, Serializable> filter) com.google.api.client.auth.oauth2.StoredCredentialcom.google.api.client.util.store.DataStoreFactoryfinal StringgetId()Retrieves an entry by itsaccessToken.Retrieves an entry by itsclientIdandnuxeoLogin.protected NuxeoOAuth2TokenbooleanisEmpty()keySet()query()query(Map<String, Serializable> filter) refresh(DocumentModel entry, NuxeoOAuth2Token token) refresh(NuxeoOAuth2Token token) com.google.api.client.util.store.DataStore<com.google.api.client.auth.oauth2.StoredCredential> intsize()voidstore(String userId, NuxeoOAuth2Token token) protected NuxeoOAuth2Tokenbooleanupdate(NuxeoOAuth2Token token) Collection<com.google.api.client.auth.oauth2.StoredCredential> values()
-
Field Details
-
DIRECTORY_NAME
- See Also:
-
ENTRY_ID
- See Also:
-
-
Constructor Details
-
OAuth2TokenStore
-
-
Method Details
-
set
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 - Specified by:
setin interfacecom.google.api.client.util.store.DataStore<com.google.api.client.auth.oauth2.StoredCredential>- Throws:
IOException
-
delete
public com.google.api.client.util.store.DataStore<com.google.api.client.auth.oauth2.StoredCredential> delete(String key) throws IOException - Specified by:
deletein interfacecom.google.api.client.util.store.DataStore<com.google.api.client.auth.oauth2.StoredCredential>- Throws:
IOException
-
get
- Specified by:
getin interfacecom.google.api.client.util.store.DataStore<com.google.api.client.auth.oauth2.StoredCredential>- Throws:
IOException
-
getDataStoreFactory
public com.google.api.client.util.store.DataStoreFactory getDataStoreFactory()- Specified by:
getDataStoreFactoryin interfacecom.google.api.client.util.store.DataStore<com.google.api.client.auth.oauth2.StoredCredential>
-
getId
- Specified by:
getIdin interfacecom.google.api.client.util.store.DataStore<com.google.api.client.auth.oauth2.StoredCredential>
-
containsKey
- Specified by:
containsKeyin interfacecom.google.api.client.util.store.DataStore<com.google.api.client.auth.oauth2.StoredCredential>- Throws:
IOException
-
containsValue
public boolean containsValue(com.google.api.client.auth.oauth2.StoredCredential value) throws IOException - Specified by:
containsValuein interfacecom.google.api.client.util.store.DataStore<com.google.api.client.auth.oauth2.StoredCredential>- Throws:
IOException
-
isEmpty
- Specified by:
isEmptyin interfacecom.google.api.client.util.store.DataStore<com.google.api.client.auth.oauth2.StoredCredential>- Throws:
IOException
-
size
- Specified by:
sizein interfacecom.google.api.client.util.store.DataStore<com.google.api.client.auth.oauth2.StoredCredential>- Throws:
IOException
-
keySet
- Specified by:
keySetin interfacecom.google.api.client.util.store.DataStore<com.google.api.client.auth.oauth2.StoredCredential>- Throws:
IOException
-
values
- Specified by:
valuesin interfacecom.google.api.client.util.store.DataStore<com.google.api.client.auth.oauth2.StoredCredential>- Throws:
IOException
-
clear
public com.google.api.client.util.store.DataStore<com.google.api.client.auth.oauth2.StoredCredential> clear() throws IOException- Specified by:
clearin interfacecom.google.api.client.util.store.DataStore<com.google.api.client.auth.oauth2.StoredCredential>- Throws:
IOException
-
store
-
refresh
- Since:
- 2025.4
-
refresh
-
refresh
-
update
- Since:
- 9.10
-
delete
-
getToken
Retrieves an entry by itsaccessToken. -
getToken
Retrieves an entry by itsclientIdandnuxeoLogin.- Since:
- 9.10
-
query
-
query
-
query
public DocumentModelList query(Map<String, Serializable> filter, Set<String> fulltext, Map<String, String> orderBy) - Since:
- 9.10
-
getTokenFromDirectoryEntry
-
storeTokenAsDirectoryEntry
-
find
-