public class NuxeoOAuth2Token extends Object
Constructor and Description |
---|
NuxeoOAuth2Token(com.google.api.client.auth.oauth2.Credential credential) |
NuxeoOAuth2Token(DocumentModel entry) |
NuxeoOAuth2Token(long expirationTimeMilliseconds,
String clientId) |
NuxeoOAuth2Token(String accessToken,
String refreshToken,
Long expirationTimeMilliseconds) |
Modifier and Type | Method and Description |
---|---|
String |
getAccessToken() |
String |
getClientId() |
Long |
getExpirationTimeMilliseconds() |
String |
getNuxeoLogin() |
String |
getRefreshToken() |
String |
getServiceName() |
boolean |
isExpired() |
void |
refresh() |
void |
setAccessToken(String accessToken) |
void |
setClientId(String clientId) |
void |
setExpirationTimeMilliseconds(Long expirationTimeMilliseconds) |
void |
setNuxeoLogin(String userId) |
void |
setRefreshToken(String refreshToken) |
void |
setServiceName(String serviceName) |
Map<String,Object> |
toJsonObject() |
Map<String,Object> |
toMap() |
void |
updateEntry(DocumentModel entry) |
public static final String SCHEMA
public NuxeoOAuth2Token(long expirationTimeMilliseconds, String clientId)
public NuxeoOAuth2Token(String accessToken, String refreshToken, Long expirationTimeMilliseconds)
public NuxeoOAuth2Token(com.google.api.client.auth.oauth2.Credential credential)
public NuxeoOAuth2Token(DocumentModel entry) throws ClientException
ClientException
public void updateEntry(DocumentModel entry) throws ClientException
ClientException
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)
Copyright © 2015 Nuxeo SA. All rights reserved.