public class FacebookProfileCreator extends OAuth20ProfileCreator<FacebookProfile>
| Modifier and Type | Field and Description |
|---|---|
protected O |
configuration |
protected org.slf4j.Logger |
logger |
protected static com.fasterxml.jackson.databind.ObjectMapper |
mapper |
| Constructor and Description |
|---|
FacebookProfileCreator(OAuth20Configuration configuration) |
| Modifier and Type | Method and Description |
|---|---|
protected String |
addExchangeToken(String url,
com.github.scribejava.core.model.OAuth2AccessToken accessToken)
Adds the token to the URL in question.
|
U |
create(C credentials,
WebContext context) |
protected com.github.scribejava.core.model.OAuthRequest |
createOAuthRequest(String url,
com.github.scribejava.core.model.Verb verb)
Create an OAuth request.
|
protected void |
internalInit(WebContext context) |
protected FacebookProfile |
retrieveUserProfileFromToken(com.github.scribejava.core.model.OAuth2AccessToken accessToken)
Retrieve the user profile from the access token.
|
protected String |
sendRequestForData(T accessToken,
String dataUrl,
com.github.scribejava.core.model.Verb verb)
Make a request to get the data of the authenticated user for the provider.
|
String |
toString() |
addAccessTokenToProfile, getAccessToken, signRequestinit, reinitprotected final org.slf4j.Logger logger
protected static final com.fasterxml.jackson.databind.ObjectMapper mapper
protected final O extends OAuthConfiguration configuration
public FacebookProfileCreator(OAuth20Configuration configuration)
protected FacebookProfile retrieveUserProfileFromToken(com.github.scribejava.core.model.OAuth2AccessToken accessToken) throws HttpAction
accessToken - the access tokenHttpAction - whether an additional HTTP action is requiredprotected String addExchangeToken(String url, com.github.scribejava.core.model.OAuth2AccessToken accessToken)
url - the URL to modifyaccessToken - the token we're passing back and forthprotected void internalInit(WebContext context)
internalInit in class InitializableWebObjectpublic U create(C credentials,
WebContext context)
throws HttpAction
create in interface ProfileCreator<C extends OAuthCredentials,U extends CommonProfile>HttpActionprotected String sendRequestForData(T accessToken, String dataUrl, com.github.scribejava.core.model.Verb verb)
accessToken - the access tokendataUrl - url of the dataverb - method used to request dataprotected com.github.scribejava.core.model.OAuthRequest createOAuthRequest(String url, com.github.scribejava.core.model.Verb verb)
url - the url to callverb - method used to create the requestCopyright © 2017. All Rights Reserved.