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 |
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) |
Modifier and Type | Method and Description |
---|---|
static com.google.api.client.auth.oauth2.StoredCredential |
asCredential(DocumentModel entry) |
String |
getAccessToken() |
String |
getClientId() |
Calendar |
getCreationDate() |
Long |
getExpirationTimeMilliseconds() |
String |
getNuxeoLogin() |
String |
getRefreshToken() |
String |
getServiceLogin() |
String |
getServiceName() |
boolean |
isExpired() |
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) |
Map<String,Object> |
toJsonObject() |
Map<String,Object> |
toMap() |
void |
updateEntry(DocumentModel entry) |
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 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 getServiceLogin()
public void setServiceLogin(String serviceLogin)
public Calendar getCreationDate()
public void setCreationDate(Calendar creationDate)
Copyright © 2016 Nuxeo SA. All rights reserved.