public class OrcidProfileDefinition extends OAuth20ProfileDefinition<OrcidProfile,OAuth20Configuration>
| Modifier and Type | Field and Description |
|---|---|
static String |
CLAIMED |
static String |
CREATION_METHOD |
static String |
FAMILY_NAME |
static String |
FIRST_NAME |
static String |
ORCID |
static String |
URI |
DISPLAY_NAME, EMAIL, GENDER, LOCALE, LOCATION, PICTURE_URL, PROFILE_URLlogger, newProfile| Constructor and Description |
|---|
OrcidProfileDefinition() |
| Modifier and Type | Method and Description |
|---|---|
OrcidProfile |
extractUserProfile(String body)
Extract the user profile from the response (JSON, XML...) of the profile url.
|
String |
getProfileUrl(com.github.scribejava.core.model.OAuth2AccessToken accessToken,
OAuth20Configuration configuration)
Retrieve the url of the profile of the authenticated user for the provider.
|
getProfileVerb, raiseProfileExtractionError, raiseProfileExtractionJsonError, raiseProfileExtractionJsonErrorconfigurePrimaryAttributesconvertAndAdd, convertAndAdd, getConverters, getPrimaryAttributes, getProfileId, getSecondaryAttributes, newProfile, primary, secondary, setProfileFactory, setProfileIdpublic static final String ORCID
public static final String FIRST_NAME
public static final String FAMILY_NAME
public static final String URI
public static final String CREATION_METHOD
public static final String CLAIMED
public String getProfileUrl(com.github.scribejava.core.model.OAuth2AccessToken accessToken, OAuth20Configuration configuration)
OAuthProfileDefinitiongetProfileUrl in class OAuthProfileDefinition<OrcidProfile,com.github.scribejava.core.model.OAuth2AccessToken,OAuth20Configuration>accessToken - only used when constructing dynamic urls from data in the tokenconfiguration - the current configurationpublic OrcidProfile extractUserProfile(String body)
OAuthProfileDefinitionextractUserProfile in class OAuthProfileDefinition<OrcidProfile,com.github.scribejava.core.model.OAuth2AccessToken,OAuth20Configuration>body - the response bodyCopyright © 2019. All rights reserved.