public class BitbucketProfileDefinition extends OAuth10ProfileDefinition<BitbucketProfile>
Modifier and Type | Field and Description |
---|---|
static String |
AVATAR |
static String |
IS_TEAM |
static String |
LAST_NAME |
static String |
RESOURCE_URI |
DISPLAY_NAME, EMAIL, FAMILY_NAME, FIRST_NAME, GENDER, LOCALE, LOCATION, PICTURE_URL, PROFILE_URL
logger, newProfile
Constructor and Description |
---|
BitbucketProfileDefinition() |
Modifier and Type | Method and Description |
---|---|
BitbucketProfile |
extractUserProfile(String body)
Extract the user profile from the response (JSON, XML...) of the profile url.
|
String |
getProfileUrl(com.github.scribejava.core.model.OAuth1Token token,
OAuth10Configuration configuration)
Retrieve the url of the profile of the authenticated user for the provider.
|
getProfileVerb
convertAndAdd, convertAndAdd, getConverters, getPrimaryAttributes, getSecondaryAttributes, newProfile, primary, secondary, setProfileFactory
public static final String LAST_NAME
public static final String IS_TEAM
public static final String AVATAR
public static final String RESOURCE_URI
public String getProfileUrl(com.github.scribejava.core.model.OAuth1Token token, OAuth10Configuration configuration)
OAuthProfileDefinition
getProfileUrl
in class OAuthProfileDefinition<BitbucketProfile,com.github.scribejava.core.model.OAuth1Token,OAuth10Configuration>
token
- only used when constructing dynamic urls from data in the tokenconfiguration
- the current configurationpublic BitbucketProfile extractUserProfile(String body) throws HttpAction
OAuthProfileDefinition
extractUserProfile
in class OAuthProfileDefinition<BitbucketProfile,com.github.scribejava.core.model.OAuth1Token,OAuth10Configuration>
body
- the response bodyHttpAction
- whether an extra HTTP action is requiredCopyright © 2017. All rights reserved.