Class CloudSqlCredentialSupplier
- java.lang.Object
-
- google.registry.persistence.transaction.CloudSqlCredentialSupplier
-
- All Implemented Interfaces:
com.google.cloud.sql.CredentialFactory
public class CloudSqlCredentialSupplier extends java.lang.Object implements com.google.cloud.sql.CredentialFactory
Supplier class to provide Credential for Cloud SQL library.
-
-
Constructor Summary
Constructors Constructor Description CloudSqlCredentialSupplier()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.google.api.client.http.HttpRequestInitializer
create()
static void
setupCredentialSupplier(com.google.auth.oauth2.GoogleCredentials credential)
Initialize the supplier with given credential json and scopes.
-
-
-
Method Detail
-
setupCredentialSupplier
public static void setupCredentialSupplier(com.google.auth.oauth2.GoogleCredentials credential)
Initialize the supplier with given credential json and scopes.
-
create
public com.google.api.client.http.HttpRequestInitializer create()
- Specified by:
create
in interfacecom.google.cloud.sql.CredentialFactory
-
-