Postgres 10 added support for a new password authentication mechanism, Salted Challenge Response Authentication Mechanism (SCRAM-SHA-256, see RFC 7677). Discussed by Michael Paquier.
➥ Can this mechanism work with JDBC drivers?
If not, why not?
If so, have any drivers yet implemented this feature?
Best Answer
I have not verified this myself, but the answer seems to be Yes, from version 42.2.0 of the driver from the jdbc.postgresql.org project.
To quote the changelog for Version 42.2.0:
See GitHub pull request # 842.
That driver uses the SCRAM Java Implementation project by ongres.