public GoogleCredentials getCredentials()

in alloydb-jdbc-connector/src/main/java/com/google/cloud/alloydb/FileCredentialFactory.java [32:45]


  public GoogleCredentials getCredentials() {
    GoogleCredentials credentials;
    try {
      credentials = GoogleCredentials.fromStream(new FileInputStream(path));
    } catch (IOException e) {
      throw new IllegalStateException("Unable to load GoogleCredentials from file " + path, e);
    }

    if (credentials.createScopedRequired()) {
      credentials = credentials.createScoped(Arrays.asList(SCOPE_CLOUD_PLATFORM));
    }

    return credentials;
  }