public class Google extends AbstractSocialNetwork
data
Constructor and Description |
---|
Google() |
Modifier and Type | Method and Description |
---|---|
protected org.apache.oltu.oauth2.client.request.OAuthClientRequest |
buildTokenRequest(org.apache.oltu.oauth2.client.request.OAuthClientRequest.TokenRequestBuilder builder) |
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) |
String |
getAuthzEndpoint() |
String |
getName() |
SocialUser |
getSocialUser(String accessToken,
org.apache.oltu.oauth2.client.OAuthClient oAuthClient) |
String |
getTokenEndpoint() |
buildAuthenticationRequest, createAuthenticationRequest, createTokenRequest, executeTokenRequest, 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
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.request.OAuthClientRequest buildTokenRequest(org.apache.oltu.oauth2.client.request.OAuthClientRequest.TokenRequestBuilder builder) throws org.apache.oltu.oauth2.common.exception.OAuthSystemException
buildTokenRequest
in class AbstractSocialNetwork
org.apache.oltu.oauth2.common.exception.OAuthSystemException
public SocialUser getSocialUser(String accessToken, org.apache.oltu.oauth2.client.OAuthClient oAuthClient) throws Exception
getSocialUser
in class AbstractSocialNetwork
Exception
Copyright © 2012-2018. All Rights Reserved.