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(java.util.function.Function<java.lang.Object[],P> profileFactory) |
| Modifier and Type | Method and Description |
|---|---|
abstract P |
extractUserProfile(java.lang.String body)
Extract the user profile from the response (JSON, XML...) of the profile url.
|
abstract java.lang.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, getConverters, getPrimaryAttributes, getProfileId, getSecondaryAttributes, newProfile, primary, secondary, setProfileFactory, setProfileIdpublic OAuthProfileDefinition()
public OAuthProfileDefinition(java.util.function.Function<java.lang.Object[],P> profileFactory)
public com.github.scribejava.core.model.Verb getProfileVerb()
public abstract java.lang.String getProfileUrl(T accessToken, O configuration)
accessToken - only used when constructing dynamic urls from data in the tokenconfiguration - the current configurationpublic abstract P extractUserProfile(java.lang.String body)
body - the response bodyCopyright © 2018. All Rights Reserved.