Class GoogleAuthManager

java.lang.Object
org.apache.iceberg.gcp.auth.GoogleAuthManager
All Implemented Interfaces:
AutoCloseable, AuthManager

public class GoogleAuthManager extends Object implements AuthManager
An authentication manager that uses Google Credentials (typically Application Default Credentials) to create GoogleAuthSession instances.

This manager can be configured with properties such as:

  • gcp.auth.credentials-path: Path to a service account JSON key file. If neither this property nor gcp.auth.credentials-json is set, Application Default Credentials will be used.
  • gcp.auth.credentials-json: JSON string of a service account credential. If neither this property nor gcp.auth.credentials-path is set, Application Default Credentials will be used.
  • gcp.auth.scopes: Comma-separated list of OAuth scopes to request. Defaults to "https://www.googleapis.com/auth/cloud-platform".