# Class GoogleCredentialsHelper

java.lang.Object
com.google.adk.tools.applicationintegrationtoolset.GoogleCredentialsHelper

All Implemented Interfaces:
  `CredentialsHelper`

public final class GoogleCredentialsHelper extends Object implements CredentialsHelper

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `GoogleCredentialsHelper()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `com.google.auth.oauth2.GoogleCredentials`
  `getGoogleCredentials(@Nullable String serviceAccountJson)`
  Converts a service account JSON string to a Google Credentials object.

  ### Methods inherited from class Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### GoogleCredentialsHelper

    public GoogleCredentialsHelper()

- ## Method Details

  - ### getGoogleCredentials

    public com.google.auth.oauth2.GoogleCredentials getGoogleCredentials(@Nullable String serviceAccountJson) throws IOException
    Description copied from interface: `CredentialsHelper`
    Converts a service account JSON string to a Google Credentials object.
    Specified by:
      `getGoogleCredentials` in interface `CredentialsHelper`
    Parameters:
      `serviceAccountJson` - The service account JSON string.
    Returns:
      A Google Credentials object.
    Throws:
      `IOException` - when an error occurs during the conversion.