com.google.cloud.bigtable.config
Class CredentialOptions.JsonCredentialsOptions
- java.lang.Object
-
- com.google.cloud.bigtable.config.CredentialOptions
-
- com.google.cloud.bigtable.config.CredentialOptions.JsonCredentialsOptions
-
- All Implemented Interfaces:
- Serializable
- Enclosing class:
- CredentialOptions
public static class CredentialOptions.JsonCredentialsOptions extends CredentialOptions
A CredentialOption that has a json credentials configured as an InputStream instead of a system environment property.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.cloud.bigtable.config.CredentialOptions
CredentialOptions.CredentialType, CredentialOptions.JsonCredentialsOptions, CredentialOptions.P12CredentialOptions, CredentialOptions.UserSuppliedCredentialOptions
-
-
Field Summary
-
Fields inherited from class com.google.cloud.bigtable.config.CredentialOptions
LOG, SERVICE_ACCOUNT_JSON_ENV_VARIABLE
-
-
Constructor Summary
Constructors Constructor and Description JsonCredentialsOptions(InputStream inputStream)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description boolean
equals(Object obj)
com.google.auth.Credentials
getCachedCredentials()
InputStream
getInputStream()
void
setCachedCredentails(com.google.auth.Credentials credentials)
-
Methods inherited from class com.google.cloud.bigtable.config.CredentialOptions
credential, defaultCredentials, getCredentialType, getEnvJsonFile, jsonCredentials, jsonCredentials, nullCredential, p12Credential
-
-
-
-
Constructor Detail
-
JsonCredentialsOptions
public JsonCredentialsOptions(InputStream inputStream)
-
-
Method Detail
-
getInputStream
public InputStream getInputStream()
-
setCachedCredentails
public void setCachedCredentails(com.google.auth.Credentials credentials)
-
getCachedCredentials
public com.google.auth.Credentials getCachedCredentials()
-
equals
public boolean equals(Object obj)
Description copied from class:CredentialOptions
- Overrides:
equals
in classCredentialOptions
-
-