public class Facebook extends AbstractSocialNetwork
Modifier and Type | Field and Description |
---|---|
static com.google.gson.Gson |
JSON |
data
Constructor and Description |
---|
Facebook() |
Modifier and Type | Method and Description |
---|---|
protected void |
configureAuthenticationRequest(org.apache.oltu.oauth2.client.request.OAuthClientRequest.AuthenticationRequestBuilder builder,
String clientId,
ContentContext ctx) |
protected void |
configureTokenRequest(org.apache.oltu.oauth2.client.request.OAuthClientRequest.TokenRequestBuilder builder,
String clientId,
String clientSecret,
String code) |
protected org.apache.oltu.oauth2.client.response.OAuthAccessTokenResponse |
executeTokenRequest(org.apache.oltu.oauth2.client.OAuthClient oAuthClient,
org.apache.oltu.oauth2.client.request.OAuthClientRequest request) |
String |
getAuthzEndpoint() |
IUserInfo |
getInitialUserInfo(String accessToken)
Deprecated.
|
String |
getName() |
protected SocialUser |
getSocialUser(String accessToken,
org.apache.oltu.oauth2.client.OAuthClient oAuthClient) |
String |
getTokenEndpoint() |
buildAuthenticationRequest, buildTokenRequest, createAuthenticationRequest, createTokenRequest, fillUserInfo, getAccessToken, getApiKey, getClientId, getClientSecret, getData, getLogin, getLoginURL, getRedirectURL, getSigninURL, getSocialUser, getState, getToken, getURL, login, performRedirect, prepare, set, setApiKey, setClientId, setClientSecret, setLogin, setRedirectURL, setToken, setURL, update
public String getName()
public String getAuthzEndpoint()
getAuthzEndpoint
in class AbstractSocialNetwork
public String getTokenEndpoint()
getTokenEndpoint
in class AbstractSocialNetwork
@Deprecated public IUserInfo getInitialUserInfo(String accessToken) throws Exception
Exception
protected void configureAuthenticationRequest(org.apache.oltu.oauth2.client.request.OAuthClientRequest.AuthenticationRequestBuilder builder, String clientId, ContentContext ctx) throws Exception
configureAuthenticationRequest
in class AbstractSocialNetwork
Exception
protected void configureTokenRequest(org.apache.oltu.oauth2.client.request.OAuthClientRequest.TokenRequestBuilder builder, String clientId, String clientSecret, String code)
configureTokenRequest
in class AbstractSocialNetwork
protected org.apache.oltu.oauth2.client.response.OAuthAccessTokenResponse executeTokenRequest(org.apache.oltu.oauth2.client.OAuthClient oAuthClient, org.apache.oltu.oauth2.client.request.OAuthClientRequest request) throws org.apache.oltu.oauth2.common.exception.OAuthSystemException, org.apache.oltu.oauth2.common.exception.OAuthProblemException
executeTokenRequest
in class AbstractSocialNetwork
org.apache.oltu.oauth2.common.exception.OAuthSystemException
org.apache.oltu.oauth2.common.exception.OAuthProblemException
protected SocialUser getSocialUser(String accessToken, org.apache.oltu.oauth2.client.OAuthClient oAuthClient) throws Exception
getSocialUser
in class AbstractSocialNetwork
Exception
Copyright © 2012-2018. All Rights Reserved.