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.OAuthClientRequestbuildTokenRequest(org.apache.oltu.oauth2.client.request.OAuthClientRequest.TokenRequestBuilder builder)protected voidconfigureAuthenticationRequest(org.apache.oltu.oauth2.client.request.OAuthClientRequest.AuthenticationRequestBuilder builder, String clientId, ContentContext ctx, boolean popup)protected voidconfigureTokenRequest(org.apache.oltu.oauth2.client.request.OAuthClientRequest.TokenRequestBuilder builder, String clientId, String clientSecret, String code)StringgetAuthzEndpoint()StringgetName()SocialUsergetSocialUser(String accessToken, org.apache.oltu.oauth2.client.OAuthClient oAuthClient)StringgetTokenEndpoint()-
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:
getAuthzEndpointin classAbstractSocialNetwork
-
getTokenEndpoint
public String getTokenEndpoint()
- Specified by:
getTokenEndpointin classAbstractSocialNetwork
-
configureAuthenticationRequest
protected void configureAuthenticationRequest(org.apache.oltu.oauth2.client.request.OAuthClientRequest.AuthenticationRequestBuilder builder, String clientId, ContentContext ctx, boolean popup) throws Exception- Overrides:
configureAuthenticationRequestin classAbstractSocialNetwork- Throws:
Exception
-
configureTokenRequest
protected void configureTokenRequest(org.apache.oltu.oauth2.client.request.OAuthClientRequest.TokenRequestBuilder builder, String clientId, String clientSecret, String code)- Overrides:
configureTokenRequestin 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:
buildTokenRequestin 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:
getSocialUserin classAbstractSocialNetwork- Throws:
Exception
-
-