CredentialOptions (Cloud Bigtable HBase Client for Java 0.9.3-SNAPSHOT API)

Class CredentialOptions

    • Field Detail


        public static final String SERVICE_ACCOUNT_JSON_ENV_VARIABLE
        See Also:
        Constant Field Values
      • LOG

        protected static final Logger LOG
        Constant LOG
    • Method Detail

      • getEnvJsonFile

        public static String getEnvJsonFile()
        Get a configured json credentials file from the GOOGLE_APPLICATION_CREDENTIALS environment variable.
        a String object.
      • defaultCredentials

        public static CredentialOptions defaultCredentials()

        Use the Application Default Credentials which are credentials that identify and authorize the whole application. This is the built-in service account if running on Google Compute Engine. Alternatively, the credentials file from the path in the environment variable GOOGLE_APPLICATION_CREDENTIAL. If GOOGLE_APPLICATION_CREDENTIAL is not set, look at the gcloud/application_default_credentials.json file in the (User)/APPDATA/ directory on Windows or ~/.config/ directory on other OSs .

        Initializes OAuth2 credential using preconfigured ServiceAccount settings on the local GCE VM. See: Authenticating from Google Compute Engine.
        a CredentialOptions object.
      • credential

        public static CredentialOptions credential( credentials)
        A CredentialOption that wraps an existing Credentials object.
        credentials - a Credentials object.
        a CredentialOptions object.

Send feedback about...

Cloud Bigtable Documentation