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, updatepublic String getName()
public String getAuthzEndpoint()
getAuthzEndpoint in class AbstractSocialNetworkpublic String getTokenEndpoint()
getTokenEndpoint in class AbstractSocialNetwork@Deprecated public IUserInfo getInitialUserInfo(String accessToken) throws Exception
Exceptionprotected void configureAuthenticationRequest(org.apache.oltu.oauth2.client.request.OAuthClientRequest.AuthenticationRequestBuilder builder,
String clientId,
ContentContext ctx)
throws Exception
configureAuthenticationRequest in class AbstractSocialNetworkExceptionprotected void configureTokenRequest(org.apache.oltu.oauth2.client.request.OAuthClientRequest.TokenRequestBuilder builder,
String clientId,
String clientSecret,
String code)
configureTokenRequest in class AbstractSocialNetworkprotected 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 AbstractSocialNetworkorg.apache.oltu.oauth2.common.exception.OAuthSystemExceptionorg.apache.oltu.oauth2.common.exception.OAuthProblemExceptionprotected SocialUser getSocialUser(String accessToken, org.apache.oltu.oauth2.client.OAuthClient oAuthClient) throws Exception
getSocialUser in class AbstractSocialNetworkExceptionCopyright © 2012-2018. All Rights Reserved.