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.
|
[Expand]
Inherited Methods
|
From class java.lang.Object
Object |
clone()
|
boolean |
equals(Object arg0)
|
void |
finalize()
|
final Class<?> |
getClass()
|
int |
hashCode()
|
final void |
notify()
|
final void |
notifyAll()
|
String |
toString()
|
final void |
wait()
|
final void |
wait(long arg0, int
arg1)
|
final void |
wait(long arg0)
|
|
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
()
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.