Package org.javlo.service.social
Class Google
- java.lang.Object
-
- org.javlo.service.social.AbstractSocialNetwork
-
- org.javlo.service.social.Google
-
- All Implemented Interfaces:
ISocialNetwork
public class Google extends AbstractSocialNetwork
-
-
Field Summary
-
Fields inherited from class org.javlo.service.social.AbstractSocialNetwork
data
-
Fields inherited from interface org.javlo.service.social.ISocialNetwork
POPUP_URI_SUFFIX
-
-
Constructor Summary
Constructors Constructor Description Google()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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, boolean popup)
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()
-
Methods inherited from class org.javlo.service.social.AbstractSocialNetwork
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
-
-
-
-
Method Detail
-
getName
public String getName()
-
getAuthzEndpoint
public String getAuthzEndpoint()
- Specified by:
getAuthzEndpoint
in classAbstractSocialNetwork
-
getTokenEndpoint
public String getTokenEndpoint()
- Specified by:
getTokenEndpoint
in classAbstractSocialNetwork
-
configureAuthenticationRequest
protected void configureAuthenticationRequest(org.apache.oltu.oauth2.client.request.OAuthClientRequest.AuthenticationRequestBuilder builder, String clientId, ContentContext ctx, boolean popup) throws Exception
- Overrides:
configureAuthenticationRequest
in classAbstractSocialNetwork
- Throws:
Exception
-
configureTokenRequest
protected void configureTokenRequest(org.apache.oltu.oauth2.client.request.OAuthClientRequest.TokenRequestBuilder builder, String clientId, String clientSecret, String code)
- Overrides:
configureTokenRequest
in classAbstractSocialNetwork
-
buildTokenRequest
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
- Overrides:
buildTokenRequest
in classAbstractSocialNetwork
- Throws:
org.apache.oltu.oauth2.common.exception.OAuthSystemException
-
getSocialUser
public SocialUser getSocialUser(String accessToken, org.apache.oltu.oauth2.client.OAuthClient oAuthClient) throws Exception
- Overrides:
getSocialUser
in classAbstractSocialNetwork
- Throws:
Exception
-
-