Class NuxeoOAuth2Token
java.lang.Object
org.nuxeo.ecm.platform.oauth2.tokens.NuxeoOAuth2Token
-
Field Summary
-
Constructor Summary
ConstructorDescriptionNuxeoOAuth2Token
(long expirationTimeMilliseconds, String clientId) NuxeoOAuth2Token
(com.google.api.client.auth.oauth2.StoredCredential credential) NuxeoOAuth2Token
(String accessToken, String refreshToken, Long expirationTimeMilliseconds) NuxeoOAuth2Token
(DocumentModel entry) -
Method Summary
Modifier and TypeMethodDescriptionstatic com.google.api.client.auth.oauth2.StoredCredential
asCredential
(DocumentModel entry) getId()
boolean
boolean
isShared()
void
refresh()
void
setAccessToken
(String accessToken) void
setClientId
(String clientId) void
setCreationDate
(Calendar creationDate) void
setExpirationTimeMilliseconds
(Long expirationTimeMilliseconds) void
setIsShared
(boolean isShared) void
setNuxeoLogin
(String userId) void
setRefreshToken
(String refreshToken) void
setServiceLogin
(String serviceLogin) void
setServiceName
(String serviceName) void
setSharedWith
(String sharedWith) toMap()
void
updateEntry
(DocumentModel entry)
-
Field Details
-
SCHEMA
- See Also:
-
KEY_SERVICE_LOGIN
- See Also:
-
KEY_NUXEO_LOGIN
- See Also:
-
KEY_SERVICE_NAME
- Since:
- 11.1
- See Also:
-
id
-
serviceName
-
nuxeoLogin
-
accessToken
-
clientId
-
creationDate
-
serviceLogin
-
-
Constructor Details
-
NuxeoOAuth2Token
-
NuxeoOAuth2Token
-
NuxeoOAuth2Token
public NuxeoOAuth2Token(com.google.api.client.auth.oauth2.StoredCredential credential) -
NuxeoOAuth2Token
-
-
Method Details
-
asCredential
-
toMap
-
toJsonObject
-
updateEntry
-
refresh
public void refresh() -
isExpired
public boolean isExpired() -
setServiceName
-
setNuxeoLogin
-
getNuxeoLogin
-
getAccessToken
-
setAccessToken
-
getRefreshToken
-
setRefreshToken
-
getExpirationTimeMilliseconds
-
setExpirationTimeMilliseconds
-
getServiceName
-
getClientId
-
setClientId
-
getServiceLogin
-
setServiceLogin
-
getCreationDate
-
setCreationDate
-
getId
-