Class DbxRefreshResult

    • Constructor Summary

      Constructors 
      Constructor Description
      DbxRefreshResult​(java.lang.String accessToken, long expiresIn)  
      DbxRefreshResult​(java.lang.String accessToken, long expiresIn, java.lang.String scope)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getAccessToken()
      Returns an access token that can be used to make Dropbox API calls.
      java.lang.Long getExpiresAt()
      Returns the time when DbxAuthFinish.accessToken expires in millisecond.
      java.lang.String getScope()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DbxRefreshResult

        public DbxRefreshResult​(java.lang.String accessToken,
                                long expiresIn)
        Parameters:
        accessToken - OAuth access token.
        expiresIn - Duration time of accessToken in second. was passed
      • DbxRefreshResult

        public DbxRefreshResult​(java.lang.String accessToken,
                                long expiresIn,
                                java.lang.String scope)
        Parameters:
        accessToken - OAuth access token.
        expiresIn - Duration time of accessToken in second. was passed
    • Method Detail

      • getAccessToken

        public java.lang.String getAccessToken()
        Returns an access token that can be used to make Dropbox API calls. Pass this in to the DbxClientV2 constructor.
        Returns:
        OAuth access token used for authorization with Dropbox servers
      • getExpiresAt

        public java.lang.Long getExpiresAt()
        Returns the time when DbxAuthFinish.accessToken expires in millisecond. If null then it won't expire. Pass this in to the DbxClientV2 constructor.
        Returns:
        OAuth access token used for authorization with Dropbox servers
      • getScope

        public java.lang.String getScope()
        Returns:
        If you specified a subset of original scope in refresh call, this value shows what permissions the new short lived token has.