public abstract class BaseOAuth10Client<U extends OAuth10Profile> extends BaseOAuthClient<U>
| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
logger |
static String |
OAUTH_TOKEN |
static String |
OAUTH_VERIFIER |
static String |
REQUEST_TOKEN |
connectTimeout, key, proxyHost, proxyPort, readTimeout, secret, service, tokenAsHeaderATTEMPTED_AUTHENTICATION_SUFFIX, callbackUrl, callbackUrlResolver, NEEDS_CLIENT_REDIRECTION_PARAMETER| Constructor and Description |
|---|
BaseOAuth10Client() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addAccessTokenToProfile(U profile,
org.scribe.model.Token accessToken)
Add the access token to the profile (as an attribute).
|
protected org.scribe.model.Token |
getAccessToken(OAuthCredentials credentials)
Get the access token from OAuth credentials.
|
protected OAuthCredentials |
getOAuthCredentials(WebContext context)
Get the OAuth credentials from the web context.
|
protected String |
getRequestTokenSessionAttributeName()
Return the name of the attribute storing in session the request token.
|
protected boolean |
isDirectRedirection() |
protected String |
retrieveAuthorizationUrl(WebContext context) |
clone, createProxyRequest, extractUserProfile, getClientType, getConnectTimeout, getKey, getProfileUrl, getProxyHost, getProxyPort, getReadTimeout, getSecret, getUserProfile, hasBeenCancelled, internalInit, isTokenAsHeader, retrieveCredentials, retrieveRedirectAction, retrieveUserProfile, retrieveUserProfileFromToken, sendRequestForData, sendRequestForData, setConnectTimeout, setKey, setProxyHost, setProxyPort, setReadTimeout, setSecret, setTokenAsHeadercomputeFinalCallbackUrl, getAjaxRequestResolver, getCallbackUrl, getCallbackUrlResolver, getCredentials, getRedirectAction, getRedirectionUrl, getStateParameter, isIncludeClientNameInCallbackUrl, redirect, setAjaxRequestResolver, setCallbackUrl, setCallbackUrlResolver, setIncludeClientNameInCallbackUrladdAuthorizationGenerator, getAuthorizationGenerators, getName, getUserProfile, newClient, setAuthorizationGenerator, setAuthorizationGenerators, setAuthorizationGenerators, setName, toStringinit, reinitprotected static final org.slf4j.Logger logger
public static final String OAUTH_TOKEN
public static final String OAUTH_VERIFIER
public static final String REQUEST_TOKEN
protected String getRequestTokenSessionAttributeName()
protected String retrieveAuthorizationUrl(WebContext context)
retrieveAuthorizationUrl in class BaseOAuthClient<U extends OAuth10Profile>protected OAuthCredentials getOAuthCredentials(WebContext context)
getOAuthCredentials in class BaseOAuthClient<U extends OAuth10Profile>context - the web contextprotected org.scribe.model.Token getAccessToken(OAuthCredentials credentials)
getAccessToken in class BaseOAuthClient<U extends OAuth10Profile>credentials - credentialsprotected boolean isDirectRedirection()
isDirectRedirection in class IndirectClient<OAuthCredentials,U extends OAuth10Profile>protected void addAccessTokenToProfile(U profile, org.scribe.model.Token accessToken)
BaseOAuthClientaddAccessTokenToProfile in class BaseOAuthClient<U extends OAuth10Profile>profile - the user profileaccessToken - the access tokenCopyright © 2016. All Rights Reserved.