public abstract class OAuthProfileDefinition<P extends CommonProfile,T extends com.github.scribejava.core.model.Token,O extends OAuthConfiguration> extends CommonProfileDefinition<P>
DISPLAY_NAME, EMAIL, FAMILY_NAME, FIRST_NAME, GENDER, LOCALE, LOCATION, PICTURE_URL, PROFILE_URLlogger, newProfile| Constructor and Description |
|---|
OAuthProfileDefinition() |
OAuthProfileDefinition(Function<Object[],P> profileFactory) |
| Modifier and Type | Method and Description |
|---|---|
abstract P |
extractUserProfile(String body)
Extract the user profile from the response (JSON, XML...) of the profile url.
|
abstract String |
getProfileUrl(T accessToken,
O configuration)
Retrieve the url of the profile of the authenticated user for the provider.
|
com.github.scribejava.core.model.Verb |
getProfileVerb()
Get HTTP Method to request profile.
|
convertAndAdd, convertAndAdd, convertAndAdd, convertAndAdd, getConverters, getPrimaryAttributes, getSecondaryAttributes, newProfile, primary, secondary, setProfileFactorypublic com.github.scribejava.core.model.Verb getProfileVerb()
public abstract String getProfileUrl(T accessToken, O configuration)
accessToken - only used when constructing dynamic urls from data in the tokenconfiguration - the current configurationpublic abstract P extractUserProfile(String body) throws HttpAction
body - the response bodyHttpAction - whether an extra HTTP action is requiredCopyright © 2018. All rights reserved.