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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncom.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>
void
protected DocumentModel
find
(Map<String, Serializable> filter) com.google.api.client.auth.oauth2.StoredCredential
com.google.api.client.util.store.DataStoreFactory
final String
getId()
Retrieves an entry by itsaccessToken
.Retrieves an entry by itsclientId
andnuxeoLogin
.protected NuxeoOAuth2Token
boolean
isEmpty()
keySet()
query()
query
(Map<String, Serializable> filter) refresh
(DocumentModel entry, NuxeoOAuth2Token token) com.google.api.client.util.store.DataStore<com.google.api.client.auth.oauth2.StoredCredential>
int
size()
void
store
(String userId, NuxeoOAuth2Token token) protected NuxeoOAuth2Token
boolean
update
(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:
set
in 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:
delete
in interfacecom.google.api.client.util.store.DataStore<com.google.api.client.auth.oauth2.StoredCredential>
- Throws:
IOException
-
get
- Specified by:
get
in 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:
getDataStoreFactory
in interfacecom.google.api.client.util.store.DataStore<com.google.api.client.auth.oauth2.StoredCredential>
-
getId
- Specified by:
getId
in interfacecom.google.api.client.util.store.DataStore<com.google.api.client.auth.oauth2.StoredCredential>
-
containsKey
- Specified by:
containsKey
in 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:
containsValue
in interfacecom.google.api.client.util.store.DataStore<com.google.api.client.auth.oauth2.StoredCredential>
- Throws:
IOException
-
isEmpty
- Specified by:
isEmpty
in interfacecom.google.api.client.util.store.DataStore<com.google.api.client.auth.oauth2.StoredCredential>
- Throws:
IOException
-
size
- Specified by:
size
in interfacecom.google.api.client.util.store.DataStore<com.google.api.client.auth.oauth2.StoredCredential>
- Throws:
IOException
-
keySet
- Specified by:
keySet
in interfacecom.google.api.client.util.store.DataStore<com.google.api.client.auth.oauth2.StoredCredential>
- Throws:
IOException
-
values
- Specified by:
values
in 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:
clear
in interfacecom.google.api.client.util.store.DataStore<com.google.api.client.auth.oauth2.StoredCredential>
- Throws:
IOException
-
store
-
refresh
-
refresh
-
update
- Since:
- 9.10
-
delete
-
getToken
Retrieves an entry by itsaccessToken
. -
getToken
Retrieves an entry by itsclientId
andnuxeoLogin
.- 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
-