Class 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.
    • Field Summary

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

        CREDENTIAL_FACTORY_PROPERTY
    • 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CloudSqlCredentialSupplier

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