Class DbxAuthInfo


  • public final class DbxAuthInfo
    extends java.lang.Object
    Used by the example code to remember auth information.
    • Constructor Summary

      Constructors 
      Constructor Description
      DbxAuthInfo​(java.lang.String accessToken, DbxHost host)
      Creates a new instance with the given parameters.
      DbxAuthInfo​(java.lang.String accessToken, java.lang.Long expiresAt, java.lang.String refreshToken, DbxHost host)
      Creates a new instance with the given parameters.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getAccessToken()
      Returns the OAuth access token to use for authorization with Dropbox servers.
      java.lang.Long getExpiresAt()
      Return the millisecond when accessToken is going to expire.
      DbxHost getHost()
      Returns Dropbox host configuration used to map requests to the appropriate Dropbox servers.
      java.lang.String getRefreshToken()
      Return the refresh token which can be used to obtain new access token.
      • Methods inherited from class java.lang.Object

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

      • DbxAuthInfo

        public DbxAuthInfo​(java.lang.String accessToken,
                           DbxHost host)
        Creates a new instance with the given parameters.
        Parameters:
        accessToken - OAuth access token for authorization with Dropbox servers
        host - Dropbox host configuration used to select Dropbox servers
      • DbxAuthInfo

        public DbxAuthInfo​(java.lang.String accessToken,
                           java.lang.Long expiresAt,
                           java.lang.String refreshToken,
                           DbxHost host)
        Creates a new instance with the given parameters.
        Parameters:
        accessToken - OAuth access token for authorization with Dropbox servers
        expiresAt - When accessToken is going to expire in millisecond
        refreshToken - Refresh token which can bu used to obtain new accessToken
        host - Dropbox host configuration used to select Dropbox servers
    • Method Detail

      • getAccessToken

        public java.lang.String getAccessToken()
        Returns the OAuth access token to use for authorization with Dropbox servers.
        Returns:
        OAuth access token
      • getExpiresAt

        public java.lang.Long getExpiresAt()
        Return the millisecond when accessToken is going to expire.
        Returns:
        ExpiresAt in millisecond.
      • getRefreshToken

        public java.lang.String getRefreshToken()
        Return the refresh token which can be used to obtain new access token.
        Returns:
        Refresh Token.
      • getHost

        public DbxHost getHost()
        Returns Dropbox host configuration used to map requests to the appropriate Dropbox servers.
        Returns:
        Dropbox host configuration