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, validateToken
public static GoogleConnect getInstance()
public boolean isNativeLoginSupported()
Login
isNativeLoginSupported
in class Login
protected Oauth2 createOauth2()
Login
createOauth2
in class Login
protected boolean validateToken(String token)
Login
validateToken
in class Login
token
- the access token to check