public class Google2Client extends OAuth20Client<Google2Profile>
This class is the OAuth client to authenticate users in Google using OAuth protocol version 2.0.
The scope is by default : Google2Client.Google2Scope.EMAIL_AND_PROFILE, but it can also but set to : Google2Client.Google2Scope.PROFILE
or Google2Client.Google2Scope.EMAIL.
It returns a Google2Profile.
More information at https://developers.google.com/accounts/docs/OAuth2Login
| Modifier and Type | Class and Description |
|---|---|
static class |
Google2Client.Google2Scope |
| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
EMAIL_SCOPE |
protected static java.lang.String |
PROFILE_SCOPE |
protected Google2Client.Google2Scope |
scope |
configurationATTEMPTED_AUTHENTICATION_SUFFIX, callbackUrl, callbackUrlResolver, urlResolverlogger| Constructor and Description |
|---|
Google2Client() |
Google2Client(java.lang.String key,
java.lang.String secret) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
clientInit() |
Google2Client.Google2Scope |
getScope() |
void |
setScope(Google2Client.Google2Scope scope) |
getConfiguration, getKey, getSecret, setConfiguraton, setKey, setSecret, toStringcomputeFinalCallbackUrl, defaultLogoutActionBuilder, defaultRedirectActionBuilder, getAjaxRequestResolver, getCallbackUrl, getCallbackUrlResolver, getCredentials, getLogoutAction, getLogoutActionBuilder, getRedirectAction, getRedirectActionBuilder, getUrlResolver, internalInit, redirect, setAjaxRequestResolver, setCallbackUrl, setCallbackUrlResolver, setLogoutActionBuilder, setRedirectActionBuilder, setUrlResolveraddAuthorizationGenerator, addAuthorizationGenerators, defaultAuthenticator, defaultCredentialsExtractor, defaultProfileCreator, getAuthenticator, getAuthorizationGenerators, getCredentialsExtractor, getCustomProperties, getName, getProfileCreator, getUserProfile, notifySessionRenewal, retrieveCredentials, retrieveUserProfile, setAuthenticator, setAuthorizationGenerator, setAuthorizationGenerators, setAuthorizationGenerators, setCredentialsExtractor, setCustomProperties, setName, setProfileCreatorinitprotected static final java.lang.String PROFILE_SCOPE
protected static final java.lang.String EMAIL_SCOPE
protected Google2Client.Google2Scope scope
public Google2Client()
public Google2Client(java.lang.String key,
java.lang.String secret)
protected void clientInit()
clientInit in class OAuth20Client<Google2Profile>public Google2Client.Google2Scope getScope()
public void setScope(Google2Client.Google2Scope scope)
Copyright © 2018. All Rights Reserved.