类:GoogleCredentialsHelper

java.lang.Object
com.google.adk.tools.applicationintegrationtoolset.GoogleCredentialsHelper
All Implemented Interfaces:
CredentialsHelper

public final class GoogleCredentialsHelper extends Object implements CredentialsHelper
  • 构造函数详细信息

    • GoogleCredentialsHelper

      public GoogleCredentialsHelper()
  • 方法详细信息(Method Details)

    • getGoogleCredentials

      public com.google.auth.oauth2.GoogleCredentials getGoogleCredentials(@Nullable String serviceAccountJson) throws IOException
      描述内容复制自接口文档: CredentialsHelper
      将服务账户的 JSON 字符串转换为 Google Credentials 对象。
      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.