public class YahooClient extends BaseOAuth10Client<YahooProfile>
This class is the OAuth client to authenticate users in Yahoo.
It returns a YahooProfile.
More information at http://developer.yahoo.com/social/rest_api_guide/extended-profile-resource.html
YahooProfilelogger, OAUTH_TOKEN, OAUTH_VERIFIER, REQUEST_TOKENconnectTimeout, key, proxyHost, proxyPort, readTimeout, secret, service, tokenAsHeaderATTEMPTED_AUTHENTICATION_SUFFIX, callbackUrl, NEEDS_CLIENT_REDIRECTION_PARAMETER| Constructor and Description |
|---|
YahooClient() |
YahooClient(String key,
String secret) |
| Modifier and Type | Method and Description |
|---|---|
protected YahooProfile |
extractUserProfile(String body)
Extract the user profile from the response (JSON, XML...) of the profile url.
|
protected String |
getProfileUrl(org.scribe.model.Token accessToken)
Retrieve the url of the profile of the authenticated user for the provider.
|
protected boolean |
hasBeenCancelled(WebContext context)
Return if the authentication has been cancelled.
|
protected void |
internalInit() |
protected YahooClient |
newClient() |
protected YahooProfile |
retrieveUserProfileFromToken(org.scribe.model.Token accessToken)
Retrieve the user profile from the access token.
|
addAccessTokenToProfile, getAccessToken, getOAuthCredentials, getRequestTokenSessionAttributeName, isDirectRedirection, retrieveAuthorizationUrlclone, createProxyRequest, getConnectTimeout, getKey, getMechanism, getProxyHost, getProxyPort, getReadTimeout, getSecret, getUserProfile, isTokenAsHeader, retrieveCredentials, retrieveRedirectAction, retrieveUserProfile, sendRequestForData, sendRequestForData, setConnectTimeout, setKey, setProxyHost, setProxyPort, setReadTimeout, setSecret, setTokenAsHeaderaddAuthorizationGenerator, getAuthenticator, getAuthorizationGenerators, getCallbackUrl, getContextualCallbackUrl, getCredentials, getName, getProfileCreator, getRedirectAction, getRedirectionUrl, getStateParameter, getUserProfile, isEnableContextualRedirects, isIncludeClientNameInCallbackUrl, prependHostToUrlIfNotPresent, redirect, setAuthenticator, setAuthorizationGenerator, setAuthorizationGenerators, setCallbackUrl, setEnableContextualRedirects, setIncludeClientNameInCallbackUrl, setName, setProfileCreator, toStringinit, reinitprotected YahooClient newClient()
newClient in class BaseClient<OAuthCredentials,YahooProfile>protected void internalInit()
internalInit in class BaseOAuthClient<YahooProfile>protected String getProfileUrl(org.scribe.model.Token accessToken)
BaseOAuthClientgetProfileUrl in class BaseOAuthClient<YahooProfile>accessToken - only used when constructing dynamic urls from data in the tokenprotected YahooProfile retrieveUserProfileFromToken(org.scribe.model.Token accessToken)
retrieveUserProfileFromToken in class BaseOAuthClient<YahooProfile>accessToken - the access tokenprotected YahooProfile extractUserProfile(String body)
BaseOAuthClientextractUserProfile in class BaseOAuthClient<YahooProfile>body - the response bodyprotected boolean hasBeenCancelled(WebContext context)
BaseOAuthClienthasBeenCancelled in class BaseOAuthClient<YahooProfile>context - the web context.Copyright © 2015. All Rights Reserved.