Any example code of using passwords with JDBC?

From: David Siebert <david(at)eclipsecat(dot)com>
To: pgsql-jdbc(at)postgresql(dot)org
Subject: Any example code of using passwords with JDBC?
Date: 2005-06-14 15:07:17
Message-ID: 42AEF2A5.2050107@eclipsecat.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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?

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Dave Cramer 2005-06-14 15:14:47 Re: Any example code of using passwords with JDBC?
Previous Message Sergey Pariev 2005-06-14 13:36:47 Re: in(...) clause and PreparedStatement