Supported authentication types for postgres jdbc driver

What version of the PG JDBC driver are you using? Seems you need at least 42.2.0 to use scram-sha-256.

https://wiki.postgresql.org/wiki/List_of_drivers