Class GcpCredentialFactory
java.lang.Object
org.apache.beam.sdk.extensions.gcp.auth.GcpCredentialFactory
- All Implemented Interfaces:
CredentialFactory
Construct an oauth credential to be used by the SDK and the SDK workers. Returns a GCP
credential.
-
Method Summary
Modifier and TypeMethodDescriptionstatic GcpCredentialFactory
fromOptions
(PipelineOptions options) @Nullable com.google.auth.Credentials
Returns a default GCPCredentials
or null when it fails.
-
Method Details
-
fromOptions
-
getCredential
Returns a default GCPCredentials
or null when it fails.- Specified by:
getCredential
in interfaceCredentialFactory
-