public class

AuthenticationResult

extends Object
java.lang.Object
   ↳ com.evernote.client.android.AuthenticationResult

Class Overview

A container class for the results of a successful OAuth authorization with the Evernote service.

Summary

Public Constructors
AuthenticationResult(SharedPreferences pref)
AuthenticationResult(String authToken, String noteStoreUrl, String webApiUrlPrefix, String evernoteHost, int userId)
Create a new AuthenticationResult.
Public Methods
String getAuthToken()
String getBusinessAuthToken()
long getBusinessAuthTokenExpiration()
String getBusinessNoteStoreUrl()
User getBusinessUser()
String getEvernoteHost()
String getNoteStoreUrl()
int getUserId()
String getWebApiUrlPrefix()
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public AuthenticationResult (SharedPreferences pref)

public AuthenticationResult (String authToken, String noteStoreUrl, String webApiUrlPrefix, String evernoteHost, int userId)

Create a new AuthenticationResult.

Parameters
authToken An Evernote authentication token.
noteStoreUrl The URL of the Evernote NoteStore for the authenticated user.
webApiUrlPrefix The URL of misc. Evernote web APIs for the authenticated user.
evernoteHost the Evernote Web URL provided from the bootstrap process
userId The numeric ID of the Evernote user.

Public Methods

public String getAuthToken ()

Returns
  • the authentication token that will be used to make authenticated API requests.

public String getBusinessAuthToken ()

Returns
  • the Business Auth token

public long getBusinessAuthTokenExpiration ()

Returns
  • the BusinessNoteStore Authorizaton token's expiration time (epoch)

public String getBusinessNoteStoreUrl ()

Returns
  • the URL that will be used to access the BusinessNoteStore service.

public User getBusinessUser ()

Returns
  • the User that references the business account user object

public String getEvernoteHost ()

Returns
  • the Evernote Web URL provided from the bootstrap process

public String getNoteStoreUrl ()

Returns
  • the URL that will be used to access the NoteStore service.

public int getUserId ()

Returns
  • the numeric user ID of the user who authorized access to their Evernote account.

public String getWebApiUrlPrefix ()

Returns
  • the URL prefix that can be used to access non-Thrift API endpoints.