Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1n2Jz6-00016l-4A for pgsql-jdbc@arkaria.postgresql.org; Tue, 28 Dec 2021 21:26:16 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1n2Jz3-0000Ku-8k for pgsql-jdbc@arkaria.postgresql.org; Tue, 28 Dec 2021 21:26:13 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1n2Jz2-0000Kk-W5 for pgsql-jdbc@lists.postgresql.org; Tue, 28 Dec 2021 21:26:13 +0000 Received: from out-22.smtp.github.com ([192.30.252.205] helo=smtp.github.com) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1n2Jyv-0001on-Gu for pgsql-jdbc@lists.postgresql.org; Tue, 28 Dec 2021 21:26:11 +0000 Received: from github.com (hubbernetes-node-c2e6cc2.ac4-iad.github.net [10.52.208.61]) by smtp.github.com (Postfix) with ESMTPA id 37484561528 for ; Tue, 28 Dec 2021 13:26:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=github.com; s=pf2014; t=1640726764; bh=CPDHVh4ncyTDzkM1wliQxQbZfa8n9q1pYCOHMp/+KU4=; h=Date:From:To:Subject:From; b=gkA8iN+Cyl+K5eCWQzw8AE0jU3ceyTnGhy+63jx3jTHgSLqvi/9fPFFV89RL7vYn/ xrk1UxU+CQo/4F/ELX5jmXRRs0PWRpHcHxZaOrWmn8v3sCsspA8HRMGIyVuhc2Y2AQ 75YF8+BAQk0UkIA3Fzd5pgAqstll9VbCJEILv5VY= Date: Tue, 28 Dec 2021 13:26:04 -0800 From: Sehrope Sarkuni To: pgsql-jdbc@lists.postgresql.org Message-ID: Subject: [pgjdbc/pgjdbc] bf04e3: refactor: Use multi-catch for exceptions in Connec... Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Approved: 58GruLoMopuc X-GitHub-Recipient-Address: pgsql-jdbc@lists.postgresql.org X-Auto-Response-Suppress: All List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Branch: refs/heads/master Home: https://github.com/pgjdbc/pgjdbc Commit: bf04e3d2f6cba980e19df38eda9118a7d2cedd93 https://github.com/pgjdbc/pgjdbc/commit/bf04e3d2f6cba980e19df38eda9118a7d2cedd93 Author: Sehrope Sarkuni Date: 2021-12-28 (Tue, 28 Dec 2021) Changed paths: M pgjdbc/src/main/java/org/postgresql/core/v3/ConnectionFactoryImpl.java Log Message: ----------- refactor: Use multi-catch for exceptions in ConnectionFactoryImpl Commit: f7ca45ab9ea4a432b562c5d3d8f221afc6fb939b https://github.com/pgjdbc/pgjdbc/commit/f7ca45ab9ea4a432b562c5d3d8f221afc6fb939b Author: Sehrope Sarkuni Date: 2021-12-28 (Tue, 28 Dec 2021) Changed paths: M pgjdbc/src/main/java/org/postgresql/Driver.java M pgjdbc/src/main/java/org/postgresql/core/ConnectionFactory.java M pgjdbc/src/main/java/org/postgresql/core/QueryExecutorBase.java M pgjdbc/src/main/java/org/postgresql/core/v3/ConnectionFactoryImpl.java M pgjdbc/src/main/java/org/postgresql/core/v3/QueryExecutorImpl.java M pgjdbc/src/main/java/org/postgresql/jdbc/PgConnection.java Log Message: ----------- refactor: Change internal constructors to pass only connection Properties Changes internal constructors for PgConnection and related classes to only accept the connection properties object and remove the user and password arguments. Any locations that required those fields can retrieve them from the properties map. Commit: e5fb0ea32f5a7c308a0cd14bce7d1ca967e7cea0 https://github.com/pgjdbc/pgjdbc/commit/e5fb0ea32f5a7c308a0cd14bce7d1ca967e7cea0 Author: Sehrope Sarkuni Date: 2021-12-28 (Tue, 28 Dec 2021) Changed paths: M pgjdbc/src/test/java/org/postgresql/test/TestUtil.java Log Message: ----------- test: Add TestUtil.assumeHaveMinimumServerVersion(...) helper Commit: 473091ad3d60e1cd223b25727fe76d18f3b47f4e https://github.com/pgjdbc/pgjdbc/commit/473091ad3d60e1cd223b25727fe76d18f3b47f4e Author: Sehrope Sarkuni Date: 2021-12-28 (Tue, 28 Dec 2021) Changed paths: M README.md M docs/documentation/head/connect.md M pgjdbc/src/main/java/org/postgresql/PGProperty.java A pgjdbc/src/main/java/org/postgresql/core/AuthenticationPluginManager.java M pgjdbc/src/main/java/org/postgresql/core/v3/ConnectionFactoryImpl.java M pgjdbc/src/main/java/org/postgresql/ds/common/BaseDataSource.java A pgjdbc/src/main/java/org/postgresql/plugin/AuthenticationPlugin.java A pgjdbc/src/main/java/org/postgresql/plugin/AuthenticationRequestType.java A pgjdbc/src/test/java/org/postgresql/test/plugin/AuthenticationPluginTest.java A pgjdbc/src/test/java/org/postgresql/test/plugin/PluginTestSuite.java Log Message: ----------- feat: Add authenticationPluginClassName option to provide passwords at runtime Adds authenticationPluginClassName connection property that allows end users to specify a class that will provide the connection passwords at runtime. This allows configuring a connection with a password that must be generated on the fly or periodically changes. Custom implementations have access to the full connection properties and the type of authentication that is being requested by the server, e.g. MD5 or SCRAM. Compare: https://github.com/pgjdbc/pgjdbc/compare/922d4f11b258...473091ad3d60