public class OrcidProfileDefinition extends OAuth20ProfileDefinition<OrcidProfile>
| 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.
|
getProfileVerbconvertAndAdd, convertAndAdd, getConverters, getPrimaryAttributes, getSecondaryAttributes, newProfile, primary, secondary, setProfileFactorypublic 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) throws HttpAction
OAuthProfileDefinitionextractUserProfile in class OAuthProfileDefinition<OrcidProfile,com.github.scribejava.core.model.OAuth2AccessToken,OAuth20Configuration>body - the response bodyHttpAction - whether an extra HTTP action is requiredCopyright © 2017. All Rights Reserved.