com.evernote.auth
Class EvernoteAuth

java.lang.Object
  extended by com.evernote.auth.EvernoteAuth

public class EvernoteAuth
extends Object

A Scribe AccessToken that contains Evernote-specific items from the OAuth response.


Constructor Summary
EvernoteAuth(EvernoteService service, String token)
           
EvernoteAuth(EvernoteService service, String token, String noteStoreUrl, String webApiUrlPrefix, int userId)
           
 
Method Summary
 String getNoteStoreUrl()
          Get the Evernote web service NoteStore URL from the OAuth access token response.
 String getToken()
          Get the Evernote access token.
 int getUserId()
          Get the numeric Evernote user ID from the OAuth access token response.
 String getUserStoreUrl()
          Get the Evernote web service UserStore URL response.
 String getWebApiUrlPrefix()
          Get the Evernote web API URL prefix from the OAuth access token response.
static EvernoteAuth parseOAuthResponse(EvernoteService service, String response)
           
 void setNoteStoreUrl(String noteStoreUrl)
          Set the Evernote web service NoteStore URL
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EvernoteAuth

public EvernoteAuth(EvernoteService service,
                    String token)

EvernoteAuth

public EvernoteAuth(EvernoteService service,
                    String token,
                    String noteStoreUrl,
                    String webApiUrlPrefix,
                    int userId)
Method Detail

parseOAuthResponse

public static EvernoteAuth parseOAuthResponse(EvernoteService service,
                                              String response)

getToken

public String getToken()
Get the Evernote access token.


getUserStoreUrl

public String getUserStoreUrl()
Get the Evernote web service UserStore URL response.


getNoteStoreUrl

public String getNoteStoreUrl()
Get the Evernote web service NoteStore URL from the OAuth access token response.


setNoteStoreUrl

public void setNoteStoreUrl(String noteStoreUrl)
Set the Evernote web service NoteStore URL


getWebApiUrlPrefix

public String getWebApiUrlPrefix()
Get the Evernote web API URL prefix from the OAuth access token response.


getUserId

public int getUserId()
Get the numeric Evernote user ID from the OAuth access token response.



Copyright © 2013. All Rights Reserved.