CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jul 1999
    Posts
    1

    JDBC and Security

    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.


  2. #2
    Join Date
    Jul 1999
    Location
    Metro DC
    Posts
    32

    Re: JDBC and Security

    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


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured