Class NuxeoOAuth2Token
- java.lang.Object
-
- org.nuxeo.ecm.platform.oauth2.tokens.NuxeoOAuth2Token
-
public class NuxeoOAuth2Token extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected String
accessToken
protected String
clientId
protected Calendar
creationDate
protected Long
id
static String
KEY_NUXEO_LOGIN
static String
KEY_SERVICE_LOGIN
static String
KEY_SERVICE_NAME
protected String
nuxeoLogin
static String
SCHEMA
protected String
serviceLogin
protected String
serviceName
protected String
sharedWith
-
Constructor Summary
Constructors Constructor Description NuxeoOAuth2Token(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
-
-
-
Field Detail
-
SCHEMA
public static final String SCHEMA
- See Also:
- Constant Field Values
-
KEY_SERVICE_LOGIN
public static final String KEY_SERVICE_LOGIN
- See Also:
- Constant Field Values
-
KEY_NUXEO_LOGIN
public static final String KEY_NUXEO_LOGIN
- See Also:
- Constant Field Values
-
KEY_SERVICE_NAME
public static final String KEY_SERVICE_NAME
- Since:
- 11.1
- See Also:
- Constant Field Values
-
id
protected Long id
-
serviceName
protected String serviceName
-
nuxeoLogin
protected String nuxeoLogin
-
accessToken
protected String accessToken
-
clientId
protected String clientId
-
creationDate
protected Calendar creationDate
-
sharedWith
protected String sharedWith
-
serviceLogin
protected String serviceLogin
-
-
Constructor Detail
-
NuxeoOAuth2Token
public NuxeoOAuth2Token(long expirationTimeMilliseconds, String clientId)
-
NuxeoOAuth2Token
public NuxeoOAuth2Token(String accessToken, String refreshToken, Long expirationTimeMilliseconds)
-
NuxeoOAuth2Token
public NuxeoOAuth2Token(com.google.api.client.auth.oauth2.StoredCredential credential)
-
NuxeoOAuth2Token
public NuxeoOAuth2Token(DocumentModel entry)
-
-
Method Detail
-
asCredential
public static com.google.api.client.auth.oauth2.StoredCredential asCredential(DocumentModel entry)
-
updateEntry
public void updateEntry(DocumentModel entry)
-
refresh
public void refresh()
-
isExpired
public boolean isExpired()
-
setServiceName
public void setServiceName(String serviceName)
-
setNuxeoLogin
public void setNuxeoLogin(String userId)
-
getNuxeoLogin
public String getNuxeoLogin()
-
getAccessToken
public String getAccessToken()
-
setAccessToken
public void setAccessToken(String accessToken)
-
getRefreshToken
public String getRefreshToken()
-
setRefreshToken
public void setRefreshToken(String refreshToken)
-
getExpirationTimeMilliseconds
public Long getExpirationTimeMilliseconds()
-
setExpirationTimeMilliseconds
public void setExpirationTimeMilliseconds(Long expirationTimeMilliseconds)
-
getServiceName
public String getServiceName()
-
getClientId
public String getClientId()
-
setClientId
public void setClientId(String clientId)
-
isShared
public boolean isShared()
-
setIsShared
public void setIsShared(boolean isShared)
-
getSharedWith
public String getSharedWith()
-
setSharedWith
public void setSharedWith(String sharedWith)
-
getServiceLogin
public String getServiceLogin()
-
setServiceLogin
public void setServiceLogin(String serviceLogin)
-
getCreationDate
public Calendar getCreationDate()
-
setCreationDate
public void setCreationDate(Calendar creationDate)
-
getId
public Long getId()
-
-