Any example code of using passwords with JDBC? - Mailing list pgsql-jdbc

From David Siebert
Subject Any example code of using passwords with JDBC?
Date
Msg-id 42AEF2A5.2050107@eclipsecat.com
Whole thread Raw
Responses Re: Any example code of using passwords with JDBC?  (Dave Cramer <pg@fastcrypt.com>)
Re: Any example code of using passwords with JDBC?  (Roland Walter <rwa@mosaic-ag.com>)
List pgsql-jdbc
I have yet to figure out how to access a postgres server that requires
passwords. I can log onto it with PG adminIII just fine but not using JDBC.
Here is my connect statement
  m_sqlConnection = DriverManager.getConnection(s_SQLConnect,
s_SQLUser,"PASSWORD");
I have tried clear text, md5, and encrypted.
Does JDBC detect what type of password is required and then sends it?
Or do I have to specify it somewhere?

pgsql-jdbc by date:

Previous
From: Sergey Pariev
Date:
Subject: Re: in(...) clause and PreparedStatement
Next
From: Dave Cramer
Date:
Subject: Re: Any example code of using passwords with JDBC?