aspose file tools*
The moose likes Java in General and the fly likes Java GUI and Security Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Java GUI and Security" Watch "Java GUI and Security" New topic
Author

Java GUI and Security

Stephen Murphy
Greenhorn

Joined: Feb 26, 2004
Posts: 24
I am designing a GUI for a project at my college. I have been told to look at security issues. As the project is not web-based, I don't really know what security issues there would be. The GUI will interface with databases using JDBC, so maybe that's where security will come into play. Advice anyone?
Stefan Wagner
Ranch Hand

Joined: Jun 02, 2003
Posts: 1923

The first (and only) idea that comes to my mind is, to use a JPasswordField to ask the user for his password at the database, instead of a JTextField, and not to use a hardcoded password.


http://home.arcor.de/hirnstrom/bewerbung
Ken Blair
Ranch Hand

Joined: Jul 15, 2003
Posts: 1078
That's where I'd start. Might also look at how you can prevent malicious Java code from intercepting this. For example, how might I use Java to intercept the password when they login and spit it out to a logfile or e-mail it to someone? What about database security and ensuring users can't do anything destructive? It's hard to say what your professor meant by "security". I would start with Stefan's suggestion of at least making them logon to the database themselves and then look at how to protect that information from being intercepted or misused.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Java GUI and Security