public final class OkClient extends BaseOAuth20Client<OkProfile>
logger, OAUTH_CODEconnectTimeout, key, proxyHost, proxyPort, readTimeout, secret, service, tokenAsHeaderATTEMPTED_AUTHENTICATION_SUFFIX, callbackUrl, callbackUrlResolver, NEEDS_CLIENT_REDIRECTION_PARAMETER| Constructor and Description |
|---|
OkClient() |
OkClient(String key,
String secret,
String publicKey) |
| Modifier and Type | Method and Description |
|---|---|
BaseOAuthClient<OkProfile> |
clone() |
protected OkProfile |
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.
|
String |
getPublicKey() |
protected boolean |
hasBeenCancelled(WebContext context)
Return if the authentication has been cancelled.
|
protected void |
internalInit(WebContext context) |
protected BaseClient<OAuthCredentials,OkProfile> |
newClient() |
void |
setPublicKey(String publicKey) |
getAccessToken, getOAuthCredentials, isDirectRedirection, retrieveAuthorizationUrladdAccessTokenToProfile, createProxyRequest, getClientType, getConnectTimeout, getKey, getProxyHost, getProxyPort, getReadTimeout, getSecret, getUserProfile, 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, setAuthorizationGenerator, setAuthorizationGenerators, setAuthorizationGenerators, setName, toStringinit, reinitprotected BaseClient<OAuthCredentials,OkProfile> newClient()
newClient in class BaseClient<OAuthCredentials,OkProfile>protected boolean hasBeenCancelled(WebContext context)
BaseOAuthClienthasBeenCancelled in class BaseOAuthClient<OkProfile>context - the web context.protected String getProfileUrl(org.scribe.model.Token accessToken)
BaseOAuthClientgetProfileUrl in class BaseOAuthClient<OkProfile>accessToken - only used when constructing dynamic urls from data in the tokenprotected OkProfile extractUserProfile(String body)
BaseOAuthClientextractUserProfile in class BaseOAuthClient<OkProfile>body - the response bodyprotected void internalInit(WebContext context)
internalInit in class BaseOAuthClient<OkProfile>public String getPublicKey()
public void setPublicKey(String publicKey)
public BaseOAuthClient<OkProfile> clone()
clone in class BaseOAuthClient<OkProfile>Copyright © 2016. All Rights Reserved.