Class PubSubCredentials
java.lang.Object
io.github.flink.gcp.connector.pubsub.PubSubCredentials
Loads the credentials shared by the Pub/Sub source and sink client families.
-
Method Summary
-
Method Details
-
load
@Nullable public static com.google.api.gax.core.CredentialsProvider load(@Nullable String serviceAccountKeyFile) throws IOException Loads a service-account key file, or returnsnullto leave application-default credentials in effect.A failure names only the product, never the path or the parser's exception;
ServiceAccountKeys.load(String, java.util.Collection, String)owns that rule.- Parameters:
serviceAccountKeyFile- the configured key-file path, ornullfor ADC- Returns:
- a fixed provider for the service account, or
nullfor ADC - Throws:
IOException- if the configured file cannot be read as a service-account key
-