Class GoogleOAuth2TokenProvider
java.lang.Object
io.jmix.email.authentication.impl.AbstractOAuth2TokenProvider
io.jmix.email.authentication.impl.GoogleOAuth2TokenProvider
- All Implemented Interfaces:
OAuth2TokenProvider
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected @Nullable com.google.auth.oauth2.UserCredentialsprotected @Nullable StringRefresh token value the currentcredentialsinstance was built with.Fields inherited from class io.jmix.email.authentication.impl.AbstractOAuth2TokenProvider
emailerProperties, refreshTokenManager -
Constructor Summary
ConstructorsConstructorDescriptionGoogleOAuth2TokenProvider(EmailerProperties emailerProperties, EmailRefreshTokenManager refreshTokenManager) -
Method Summary
Modifier and TypeMethodDescriptionprotected com.google.auth.oauth2.UserCredentialsGets access token by using refresh token.Methods inherited from class io.jmix.email.authentication.impl.AbstractOAuth2TokenProvider
getClientId, getRefreshToken, getRequiredProperty, getSecret
-
Field Details
-
credentials
protected @Nullable com.google.auth.oauth2.UserCredentials credentials -
currentRefreshToken
Refresh token value the currentcredentialsinstance was built with. It is used to detect external token updates (via the email connection view or another application node) that require re-initialization of the credentials.
-
-
Constructor Details
-
GoogleOAuth2TokenProvider
public GoogleOAuth2TokenProvider(EmailerProperties emailerProperties, EmailRefreshTokenManager refreshTokenManager)
-
-
Method Details
-
getAccessToken
Description copied from interface:OAuth2TokenProviderGets access token by using refresh token.- Returns:
- access token value
-
createUserCredentials
protected com.google.auth.oauth2.UserCredentials createUserCredentials()
-