Class CloudSqlCredentialSupplier

java.lang.Object
google.registry.persistence.transaction.CloudSqlCredentialSupplier
All Implemented Interfaces:
com.google.cloud.sql.CredentialFactory

public class CloudSqlCredentialSupplier extends Object implements com.google.cloud.sql.CredentialFactory
Supplier class to provide Credential for Cloud SQL library.
  • Field Summary Link icon

    Fields inherited from interface com.google.cloud.sql.CredentialFactory Link icon

    CREDENTIAL_FACTORY_PROPERTY
  • Constructor Summary Link icon

    Constructors
    Constructor
    Description
     
  • Method Summary Link icon

    Modifier and Type
    Method
    Description
    com.google.api.client.http.HttpRequestInitializer
     
    static void
    setupCredentialSupplier(com.google.auth.oauth2.GoogleCredentials credential)
    Initialize the supplier with given credential json and scopes.

    Methods inherited from class java.lang.Object Link icon

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

    Methods inherited from interface com.google.cloud.sql.CredentialFactory Link icon

    getCredentials
  • Constructor Details Link icon

    • CloudSqlCredentialSupplier Link icon

      public CloudSqlCredentialSupplier()
  • Method Details Link icon

    • setupCredentialSupplier Link icon

      public static void setupCredentialSupplier(com.google.auth.oauth2.GoogleCredentials credential)
      Initialize the supplier with given credential json and scopes.
    • create Link icon

      public com.google.api.client.http.HttpRequestInitializer create()
      Specified by:
      create in interface com.google.cloud.sql.CredentialFactory