public class EvernoteOAuth1Operations extends Object implements org.springframework.social.oauth1.OAuth1Operations
OAuth1Operations by EvernoteService.
Evernote has three endpoints - sandbox, production, and yinxiang.
Since OAuth1Template is immutable, instanciate template for all environment and choose one of them
based on the passed EvernoteService.
All method delegates to the selected OAuth1Operations.| Constructor and Description |
|---|
EvernoteOAuth1Operations(String consumerKey,
String consumerSecret) |
EvernoteOAuth1Operations(String consumerKey,
String consumerSecret,
com.evernote.auth.EvernoteService evernoteService) |
| Modifier and Type | Method and Description |
|---|---|
String |
buildAuthenticateUrl(String requestToken,
org.springframework.social.oauth1.OAuth1Parameters parameters) |
String |
buildAuthorizeUrl(String requestToken,
org.springframework.social.oauth1.OAuth1Parameters parameters) |
org.springframework.social.oauth1.OAuthToken |
exchangeForAccessToken(org.springframework.social.oauth1.AuthorizedRequestToken requestToken,
org.springframework.util.MultiValueMap<String,String> additionalParameters) |
org.springframework.social.oauth1.OAuthToken |
fetchRequestToken(String callbackUrl,
org.springframework.util.MultiValueMap<String,String> additionalParameters) |
protected String |
getConsumerKey() |
org.springframework.social.oauth1.OAuth1Operations |
getSelectedOauth1Operations() |
org.springframework.social.oauth1.OAuth1Version |
getVersion() |
void |
setEvernoteService(com.evernote.auth.EvernoteService evernoteService) |
void |
setRequestFactory(org.springframework.http.client.ClientHttpRequestFactory requestFactory) |
public void setEvernoteService(com.evernote.auth.EvernoteService evernoteService)
public org.springframework.social.oauth1.OAuth1Version getVersion()
getVersion in interface org.springframework.social.oauth1.OAuth1Operationspublic org.springframework.social.oauth1.OAuthToken fetchRequestToken(String callbackUrl, org.springframework.util.MultiValueMap<String,String> additionalParameters)
fetchRequestToken in interface org.springframework.social.oauth1.OAuth1Operationspublic String buildAuthorizeUrl(String requestToken, org.springframework.social.oauth1.OAuth1Parameters parameters)
buildAuthorizeUrl in interface org.springframework.social.oauth1.OAuth1Operationspublic String buildAuthenticateUrl(String requestToken, org.springframework.social.oauth1.OAuth1Parameters parameters)
buildAuthenticateUrl in interface org.springframework.social.oauth1.OAuth1Operationspublic org.springframework.social.oauth1.OAuthToken exchangeForAccessToken(org.springframework.social.oauth1.AuthorizedRequestToken requestToken,
org.springframework.util.MultiValueMap<String,String> additionalParameters)
exchangeForAccessToken in interface org.springframework.social.oauth1.OAuth1Operationspublic void setRequestFactory(org.springframework.http.client.ClientHttpRequestFactory requestFactory)
public org.springframework.social.oauth1.OAuth1Operations getSelectedOauth1Operations()
protected String getConsumerKey()
Copyright © 2014. All Rights Reserved.