Class NuxeoOAuth2Token

java.lang.Object
org.nuxeo.ecm.platform.oauth2.tokens.NuxeoOAuth2Token

public class NuxeoOAuth2Token extends Object
  • Field Details

  • Constructor Details

    • 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 Details

    • asCredential

      public static com.google.api.client.auth.oauth2.StoredCredential asCredential(DocumentModel entry)
    • toMap

      public Map<String,Object> toMap()
    • toJsonObject

      public Map<String,Object> toJsonObject()
    • 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()