public class OAuthAuthenticationServiceImpl extends java.lang.Object implements OAuthAuthenticationService
| Constructor and Description |
|---|
OAuthAuthenticationServiceImpl(<any> datasinkServiceProvider,
<any> historyServiceProvider,
<any> serverInfoProvider,
<any> hookHandlerServiceProvider) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
generateAuthenticationUrl(OAuthAuthenticatable oAuthDatasink)
Generates the URL necessary for OAuth2 authentication.
|
void |
generateRefreshToken(java.lang.String authenticationCode,
OAuthAuthenticatable oAuthDatasink,
java.lang.String redirectUri)
Generates and saves an OAuth2 refresh token into the given datasink, which is
necessary for allowing the app to access the OAuth2 service in future usage
without requiring the user to manually authenticate.
|
java.lang.String |
getRedirectUri()
Get redirect URI needed for OAuth2-authenticated services.
|
public OAuthAuthenticationServiceImpl(<any> datasinkServiceProvider,
<any> historyServiceProvider,
<any> serverInfoProvider,
<any> hookHandlerServiceProvider)
public void generateRefreshToken(java.lang.String authenticationCode,
OAuthAuthenticatable oAuthDatasink,
java.lang.String redirectUri)
throws java.lang.Exception
OAuthAuthenticationServicegenerateRefreshToken in interface OAuthAuthenticationServiceauthenticationCode - the authentication code generated by the OAuth2
serviceoAuthDatasink - the datasink to save the refresh token toredirectUri - the redirect urijava.lang.Exceptionpublic java.lang.String generateAuthenticationUrl(OAuthAuthenticatable oAuthDatasink)
OAuthAuthenticationServicegenerateAuthenticationUrl in interface OAuthAuthenticationServiceoAuthDatasink - the OAuth2 datasinkpublic java.lang.String getRedirectUri()
OAuthAuthenticationServicegetRedirectUri in interface OAuthAuthenticationService