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

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

    CREDENTIAL_FACTORY_PROPERTY
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    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

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

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

    getCredentials
  • Constructor Details

    • CloudSqlCredentialSupplier

      public CloudSqlCredentialSupplier()
  • Method Details

    • 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 interface com.google.cloud.sql.CredentialFactory