类:GoogleCredentialsHelper
java.lang.Object
com.google.adk.tools.applicationintegrationtoolset.GoogleCredentialsHelper
- All Implemented Interfaces:
CredentialsHelper
-
构造函数概述
Constructors -
方法概述
Modifier and TypeMethodDescriptioncom.google.auth.oauth2.GoogleCredentialsgetGoogleCredentials(@Nullable String serviceAccountJson) 将服务账户的 JSON 字符串转换为 Google Credentials 对象。
-
构造函数详细信息
-
GoogleCredentialsHelper
public GoogleCredentialsHelper()
-
-
方法详细信息(Method Details)
-
getGoogleCredentials
public com.google.auth.oauth2.GoogleCredentials getGoogleCredentials(@Nullable String serviceAccountJson) throws IOException 描述内容复制自接口文档:CredentialsHelper将服务账户的 JSON 字符串转换为 Google Credentials 对象。- Specified by:
getGoogleCredentialsin interfaceCredentialsHelper- Parameters:
serviceAccountJson- The service account JSON string.- Returns:
- A Google Credentials object.
- Throws:
IOException- when an error occurs during the conversion.
-