com.aspose.email

Interfaces

Classes

Enums

Exceptions

com.aspose.email

Class TokenProvider.Google

  • Enclosing class:
    TokenProvider


    public static class TokenProvider.Google
    extends Object

    Provides an instance of the TokenProvider for Google mail server

    • Constructor Detail

      • TokenProvider.Google

        public TokenProvider.Google()
    • Method Detail

      • getInstance

        public static TokenProvider getInstance(String clientId,
                                String clientSecret,
                                String refreshToken)

        Gets an instance of the TokenProvider for Google mail server

        Parameters:
        clientId - The client ID obtained from the Microsoft account Developer Center during application registration.
        clientSecret - The client secret obtained during application registration.
        refreshToken - OAuth 2.0 refresh token
        Returns:
        Returns an instance of the OutlookTokenProvider for defined parameters.