public class GoogleConnect extends Login
| Modifier and Type | Method and Description |
|---|---|
protected Oauth2 |
createOauth2()
Creates the oauth2 to be used to login in case no native login is available
for this service.
|
static GoogleConnect |
getInstance()
Gets the GoogleConnect singleton instance
.
|
boolean |
isNativeLoginSupported()
Returns true if this service supports native login.
|
protected boolean |
validateToken(String token)
Returns true if the previous granted access token is still valid otherwise
false.
|
addScopes, connect, doLogin, doLogin, doLogout, getAccessToken, isPreferRedirectPrompt, isUserLoggedIn, nativeIsLoggedIn, nativelogin, nativeLogout, setAccessToken, setCallback, setClientId, setClientSecret, setOauth2URL, setPreferRedirectPrompt, setRedirectURI, setScope, validateTokenpublic static GoogleConnect getInstance()
public boolean isNativeLoginSupported()
LoginisNativeLoginSupported in class Loginprotected Oauth2 createOauth2()
LogincreateOauth2 in class Loginprotected boolean validateToken(String token)
LoginvalidateToken in class Logintoken - the access token to check