Package | Description |
---|---|
com.google.cloud.bigtable.config | |
com.google.cloud.bigtable.grpc.io |
Modifier and Type | Class and Description |
---|---|
static class |
CredentialOptions.JsonCredentialsOptions
A CredentialOption that has a json credentials configured as an InputStream instead of a system
environment property.
|
static class |
CredentialOptions.P12CredentialOptions
A CredentialOptions defined by a serviceAccount and a p12 key file.
|
static class |
CredentialOptions.UserSuppliedCredentialOptions
A CredentialOption that supplies the Credentials directly.
|
Modifier and Type | Method and Description |
---|---|
static CredentialOptions |
CredentialOptions.credential(com.google.auth.Credentials credentials)
A CredentialOption that wraps an existing
Credentials object. |
static CredentialOptions |
CredentialOptions.defaultCredentials()
Use the Application Default Credentials which are credentials that identify and authorize the
whole application.
|
CredentialOptions |
BigtableOptions.getCredentialOptions()
Get the credential this object was constructed with.
|
static CredentialOptions |
CredentialOptions.jsonCredentials(InputStream jsonInputStream)
jsonCredentials.
|
static CredentialOptions |
CredentialOptions.jsonCredentials(String jsonString)
jsonCredentials.
|
static CredentialOptions |
CredentialOptions.nullCredential()
No credentials - used for unit testing.
|
static CredentialOptions |
CredentialOptions.p12Credential(String serviceAccount,
String keyFile)
Initializes OAuth2 credential from a private keyfile, as described in Service accounts.
|
Modifier and Type | Method and Description |
---|---|
static com.google.auth.Credentials |
CredentialFactory.getCredentials(CredentialOptions options)
Look up a Credentials object based on a configuration of credentials described in a
CredentialOptions . |
BigtableOptions.Builder |
BigtableOptions.Builder.setCredentialOptions(CredentialOptions credentialOptions) |
Modifier and Type | Method and Description |
---|---|
io.grpc.ClientInterceptor |
CredentialInterceptorCache.getCredentialsInterceptor(CredentialOptions credentialOptions,
RetryOptions retryOptions)
Given
CredentialOptions that define how to look up credentials, do the following:
Look up the credentials
If there are credentials, create a gRPC interceptor that gets OAuth2 security tokens
and add that token as a header on all calls. |