public final class GoogleOauth2ServiceProvider extends com.github.scribejava.apis.GoogleApi20 implements Oauth2ServiceProvider
| Constructor and Description |
|---|
GoogleOauth2ServiceProvider(String apiKey,
String apiSecret) |
| Modifier and Type | Method and Description |
|---|---|
String |
getApiKey() |
String |
getApiSecret() |
com.google.common.base.Optional<String> |
getScope() |
OauthUserProfile |
getUserProfile(com.github.scribejava.core.oauth.OAuth20Service service,
com.github.scribejava.core.model.OAuth2AccessToken accessToken) |
getAccessTokenEndpoint, getAccessTokenExtractor, getAuthorizationBaseUrl, instancecreateService, getAccessTokenVerb, getAuthorizationUrl, getRefreshTokenEndpointpublic static final String ID
public String getApiKey()
getApiKey in interface Oauth2ServiceProviderpublic String getApiSecret()
getApiSecret in interface Oauth2ServiceProviderpublic com.google.common.base.Optional<String> getScope()
getScope in interface Oauth2ServiceProviderpublic OauthUserProfile getUserProfile(com.github.scribejava.core.oauth.OAuth20Service service, com.github.scribejava.core.model.OAuth2AccessToken accessToken) throws IncompleteOAuthUserProfileException, IOException
getUserProfile in interface Oauth2ServiceProviderIncompleteOAuthUserProfileExceptionIOExceptionCopyright © 2017. All rights reserved.