Class OAuthClient


  • public class OAuthClient
    extends Object
    OAuthClient provides Client for managing OAuth token lifecycle.
    • Method Detail

      • generateAccessToken

        public String generateAccessToken​(@NonNull
                                          @NonNull String credential,
                                          @NonNull
                                          @NonNull Collection<String> scopes)
        Generates OAuth access token with the help of GCP Service Account Credentials.
        Parameters:
        credential - GCP Service Account Credentials.
        scopes - Collection of scopes to request.