Class BigtableCredentials

java.lang.Object
io.github.flink.gcp.connector.bigtable.BigtableCredentials

@Internal public final class BigtableCredentials extends Object
Loads credentials for the Bigtable data and admin client families.

A failure names only the product, never the path or the parser's exception; ServiceAccountKeys.load(String, java.util.Collection, String) owns that rule.

  • Method Summary

    Modifier and Type
    Method
    Description
    static com.google.api.gax.core.CredentialsProvider
    loadAll(String serviceAccountKeyFile)
    Loads one provider shared by data, table-admin and instance-admin clients.
    static com.google.api.gax.core.CredentialsProvider
    loadData(String serviceAccountKeyFile)
    Loads credentials for a data client, or returns null to preserve ADC.
    static com.google.api.gax.core.CredentialsProvider
    loadDataAndTableAdmin(String serviceAccountKeyFile)
    Loads one provider shared by data and table-admin clients.
    static com.google.api.gax.core.CredentialsProvider
    loadTableAdmin(String serviceAccountKeyFile)
    Loads credentials for a table-admin client, or returns null to preserve ADC.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • loadData

      @Nullable public static com.google.api.gax.core.CredentialsProvider loadData(@Nullable String serviceAccountKeyFile) throws IOException
      Loads credentials for a data client, or returns null to preserve ADC.
      Throws:
      IOException
    • loadTableAdmin

      @Nullable public static com.google.api.gax.core.CredentialsProvider loadTableAdmin(@Nullable String serviceAccountKeyFile) throws IOException
      Loads credentials for a table-admin client, or returns null to preserve ADC.
      Throws:
      IOException
    • loadDataAndTableAdmin

      @Nullable public static com.google.api.gax.core.CredentialsProvider loadDataAndTableAdmin(@Nullable String serviceAccountKeyFile) throws IOException
      Loads one provider shared by data and table-admin clients.
      Throws:
      IOException
    • loadAll

      @Nullable public static com.google.api.gax.core.CredentialsProvider loadAll(@Nullable String serviceAccountKeyFile) throws IOException
      Loads one provider shared by data, table-admin and instance-admin clients.
      Throws:
      IOException