public class NuxeoOAuth2Token extends Object
Modifier and Type | Field and Description |
---|---|
protected String |
accessToken |
protected String |
clientId |
protected Calendar |
creationDate |
protected Long |
id |
static String |
KEY_NUXEO_LOGIN |
static String |
KEY_SERVICE_LOGIN |
protected String |
nuxeoLogin |
static String |
SCHEMA |
protected String |
serviceLogin |
protected String |
serviceName |
protected String |
sharedWith |
Constructor and Description |
---|
NuxeoOAuth2Token(DocumentModel entry) |
NuxeoOAuth2Token(long expirationTimeMilliseconds,
String clientId) |
NuxeoOAuth2Token(com.google.api.client.auth.oauth2.StoredCredential credential) |
NuxeoOAuth2Token(String accessToken,
String refreshToken,
Long expirationTimeMilliseconds) |
public static final String SCHEMA
public static final String KEY_SERVICE_LOGIN
public static final String KEY_NUXEO_LOGIN
protected String serviceName
protected String nuxeoLogin
protected String accessToken
protected Calendar creationDate
protected String sharedWith
protected String serviceLogin
public NuxeoOAuth2Token(long expirationTimeMilliseconds, String clientId)
public NuxeoOAuth2Token(String accessToken, String refreshToken, Long expirationTimeMilliseconds)
public NuxeoOAuth2Token(com.google.api.client.auth.oauth2.StoredCredential credential)
public NuxeoOAuth2Token(DocumentModel entry)
public static com.google.api.client.auth.oauth2.StoredCredential asCredential(DocumentModel entry)
public Map<String,Object> toJsonObject()
public void updateEntry(DocumentModel entry)
public void refresh()
public boolean isExpired()
public void setServiceName(String serviceName)
public void setNuxeoLogin(String userId)
public String getNuxeoLogin()
public String getAccessToken()
public void setAccessToken(String accessToken)
public String getRefreshToken()
public void setRefreshToken(String refreshToken)
public Long getExpirationTimeMilliseconds()
public void setExpirationTimeMilliseconds(Long expirationTimeMilliseconds)
public String getServiceName()
public String getClientId()
public void setClientId(String clientId)
public boolean isShared()
public void setIsShared(boolean isShared)
public String getSharedWith()
public void setSharedWith(String sharedWith)
public String getServiceLogin()
public void setServiceLogin(String serviceLogin)
public Calendar getCreationDate()
public void setCreationDate(Calendar creationDate)
Copyright © 2018 Nuxeo. All rights reserved.