public class BitbucketClient extends BaseOAuth10Client<BitbucketProfile>
BitbucketProfile
.logger, OAUTH_TOKEN, OAUTH_VERIFIER, REQUEST_TOKEN
service
ATTEMPTED_AUTHENTICATION_SUFFIX, callbackUrl, callbackUrlResolver
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 com.github.scribejava.core.builder.api.BaseApi<com.github.scribejava.core.oauth.OAuth10aService> |
getApi()
Define the OAuth API for this client.
|
protected String |
getProfileUrl(com.github.scribejava.core.model.OAuth1Token token)
Retrieve the url of the profile of the authenticated user for the provider.
|
addAccessTokenToProfile, getAccessToken, getOAuthCredentials, getRequestTokenSessionAttributeName, retrieveAuthorizationUrl, signRequest
buildOAuthConfig, createOAuthRequest, getConnectTimeout, getKey, getOAuthScope, getReadTimeout, getResponseType, getSecret, hasBeenCancelled, hasOAuthGrantType, internalInit, isTokenAsHeader, retrieveCredentials, retrieveRedirectAction, retrieveUserProfile, retrieveUserProfileFromToken, sendRequestForData, setConnectTimeout, setKey, setReadTimeout, setResponseType, setSecret, setTokenAsHeader
computeFinalCallbackUrl, getAjaxRequestResolver, getCallbackUrl, getCallbackUrlResolver, getCredentials, getRedirectAction, getStateParameter, isIncludeClientNameInCallbackUrl, redirect, setAjaxRequestResolver, setCallbackUrl, setCallbackUrlResolver, setIncludeClientNameInCallbackUrl
addAuthorizationGenerator, getAuthorizationGenerators, getName, getUserProfile, setAuthorizationGenerator, setAuthorizationGenerators, setAuthorizationGenerators, setName, toString
init, reinit
protected com.github.scribejava.core.builder.api.BaseApi<com.github.scribejava.core.oauth.OAuth10aService> getApi()
BaseOAuthClient
getApi
in class BaseOAuthClient<BitbucketProfile,com.github.scribejava.core.oauth.OAuth10aService,com.github.scribejava.core.model.OAuth1Token>
protected String getProfileUrl(com.github.scribejava.core.model.OAuth1Token token)
BaseOAuthClient
getProfileUrl
in class BaseOAuthClient<BitbucketProfile,com.github.scribejava.core.oauth.OAuth10aService,com.github.scribejava.core.model.OAuth1Token>
token
- only used when constructing dynamic urls from data in the tokenprotected BitbucketProfile extractUserProfile(String body) throws HttpAction
BaseOAuthClient
extractUserProfile
in class BaseOAuthClient<BitbucketProfile,com.github.scribejava.core.oauth.OAuth10aService,com.github.scribejava.core.model.OAuth1Token>
body
- the response bodyHttpAction
- whether an additional HTTP action is requiredCopyright © 2016. All rights reserved.