Click to See Complete Forum and Search --> : JDBC and Security


Steven Ryson
July 29th, 1999, 04:58 PM
Greetings all. I need to execute some JDBC calls across the internet. I'm planning on using the getConnection method of the DriverManager. This requires a userid and password. How can I pass the userid and password securely?

Also, the URL parameter description in the DriverManager.getConnection method says "a database url of the form jdbc:subprotocol:subname. What would go in the subprotocol and subname fields? Thanks all.

veitas
July 30th, 1999, 11:59 AM
Do you have access to using servlets on the database side, that is a server that supports servelts on the other side of the internet where the database is? If so you can create a servelt that will do the database connection. Your application on the client side would then make a request to the servlet to connect to a database. You can use the crypto package in the JDK 1.2 to encrypt your username and password.

Hope this helps