Class GoogleOAuth2TokenProvider

java.lang.Object
io.jmix.email.authentication.impl.AbstractOAuth2TokenProvider
io.jmix.email.authentication.impl.GoogleOAuth2TokenProvider
All Implemented Interfaces:
OAuth2TokenProvider

@NullMarked public class GoogleOAuth2TokenProvider extends AbstractOAuth2TokenProvider
  • Field Details

    • credentials

      protected @Nullable com.google.auth.oauth2.UserCredentials credentials
    • currentRefreshToken

      protected @Nullable String currentRefreshToken
      Refresh token value the current credentials instance 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

  • Method Details

    • getAccessToken

      public String getAccessToken()
      Description copied from interface: OAuth2TokenProvider
      Gets access token by using refresh token.
      Returns:
      access token value
    • createUserCredentials

      protected com.google.auth.oauth2.UserCredentials createUserCredentials()