I really have no idea


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: I really have no idea

  1. #1
    Join Date
    Apr 2005
    Posts
    4

    I really have no idea

    Hi all

    I hope someone can help me. I want to write a java file that does the following :

    A user types in a username and password - this is just a simple jsp page. The parameters are passed to my java file and the entries are looked up in a db table. If the values are OK, i need to issue a security token

    I am struggling with the security side of things. I want to use SSL and http or https and soap to do all the security stuff but don't know how. Can anybody lead me in the right direction

    Many thanks for any help

  2. #2
    Join Date
    May 2004
    Location
    Durham, UK
    Posts
    174
    Hi,

    I'm not really sure what you want, but here goes :-

    If you want to talk from a client to a JSP then you should setup
    the page as being secure in your J2EE container (which could be tomcat, websphere, weblogic etc.etc.)

    If you want to talk from the JSP or java program to another page
    then use the HttpsURLConnection class from the JRE

    a good place to look at for a better understanding of the java secure socket
    interfaces is the JSSE library page at http://java.sun.com/products/jsse/
    Hope this helps
    Graham

    Before you criticize someone, you should walk a mile in their shoes. That way, when you criticize them, and if they get mad, you are a mile away and you have their shoes ;-)

    http://www.grahamrobinsonsoftware.com

  3. #3
    Join Date
    Mar 2004
    Posts
    635
    I don't know jsp, but just as a side note, if you haven't already you may want to store the password with md5 encrpytion, then encrypt the inputted password by the user and compare them with the md5 hash string thats created from each. That's what I did for my web forum. It also gives users a better sense of security knowing that admin can't see their passwords.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center