Class GoogleCredentialsHelper
java.lang.Object
com.google.adk.tools.applicationintegrationtoolset.GoogleCredentialsHelper
- All Implemented Interfaces:
CredentialsHelper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.google.auth.oauth2.GoogleCredentialsgetGoogleCredentials(String serviceAccountJson) Converts a service account JSON string to a Google Credentials object.
-
Constructor Details
-
GoogleCredentialsHelper
public GoogleCredentialsHelper()
-
-
Method Details
-
getGoogleCredentials
public com.google.auth.oauth2.GoogleCredentials getGoogleCredentials(@Nullable String serviceAccountJson) throws IOException Description copied from interface:CredentialsHelperConverts a service account JSON string to a Google Credentials object.- 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.
-