public class BitbucketClient extends BaseOAuth10Client<BitbucketProfile>
BitbucketProfile.BitbucketProfilelogger, OAUTH_TOKEN, OAUTH_VERIFIER, REQUEST_TOKENconnectTimeout, key, proxyHost, proxyPort, readTimeout, secret, service, tokenAsHeaderATTEMPTED_AUTHENTICATION_SUFFIX, callbackUrl, NEEDS_CLIENT_REDIRECTION_PARAMETER| Constructor and Description |
|---|
BitbucketClient() |
BitbucketClient(String key,
String secret) |
| Modifier and Type | Method and Description |
|---|---|
protected BitbucketProfile |
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 boolean |
isDirectRedirection() |
protected BitbucketClient |
newClient() |
addAccessTokenToProfile, getAccessToken, getOAuthCredentials, getRequestTokenSessionAttributeName, retrieveAuthorizationUrlclone, createProxyRequest, getConnectTimeout, getKey, getMechanism, getProxyHost, getProxyPort, getReadTimeout, getSecret, getUserProfile, isTokenAsHeader, retrieveCredentials, retrieveRedirectAction, retrieveUserProfile, retrieveUserProfileFromToken, sendRequestForData, sendRequestForData, setConnectTimeout, setKey, setProxyHost, setProxyPort, setReadTimeout, setSecret, setTokenAsHeaderaddAuthorizationGenerator, getAuthenticator, getAuthorizationGenerators, getCallbackUrl, getContextualCallbackUrl, getCredentials, getName, getProfileCreator, getRedirectAction, getRedirectionUrl, getStateParameter, getUserProfile, isEnableContextualRedirects, prependHostToUrlIfNotPresent, redirect, setAuthenticator, setAuthorizationGenerator, setAuthorizationGenerators, setCallbackUrl, setEnableContextualRedirects, setName, setProfileCreator, toStringinit, reinitprotected boolean isDirectRedirection()
isDirectRedirection in class BaseOAuth10Client<BitbucketProfile>protected void internalInit()
internalInit in class BaseOAuthClient<BitbucketProfile>protected boolean hasBeenCancelled(WebContext context)
BaseOAuthClienthasBeenCancelled in class BaseOAuthClient<BitbucketProfile>context - the web context.protected String getProfileUrl(org.scribe.model.Token accessToken)
BaseOAuthClientgetProfileUrl in class BaseOAuthClient<BitbucketProfile>accessToken - only used when constructing dynamic urls from data in the tokenprotected BitbucketProfile extractUserProfile(String body)
BaseOAuthClientextractUserProfile in class BaseOAuthClient<BitbucketProfile>body - the response bodyprotected BitbucketClient newClient()
newClient in class BaseClient<OAuthCredentials,BitbucketProfile>Copyright © 2015. All Rights Reserved.