public class OrcidProfileDefinition extends OAuth20ProfileDefinition<OrcidProfile,OAuth20Configuration>
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CLAIMED |
static java.lang.String |
CREATION_METHOD |
static java.lang.String |
FAMILY_NAME |
static java.lang.String |
FIRST_NAME |
static java.lang.String |
ORCID |
static java.lang.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(java.lang.String body)
Extract the user profile from the response (JSON, XML...) of the profile url.
|
java.lang.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, getProfileId, getSecondaryAttributes, newProfile, primary, secondary, setProfileFactory, setProfileIdpublic static final java.lang.String ORCID
public static final java.lang.String FIRST_NAME
public static final java.lang.String FAMILY_NAME
public static final java.lang.String URI
public static final java.lang.String CREATION_METHOD
public static final java.lang.String CLAIMED
public java.lang.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(java.lang.String body)
OAuthProfileDefinitionextractUserProfile in class OAuthProfileDefinition<OrcidProfile,com.github.scribejava.core.model.OAuth2AccessToken,OAuth20Configuration>body - the response bodyCopyright © 2018. All Rights Reserved.