This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
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 REST with Spring (video course) 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

Java GUI and Security

Stephen Murphy

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.
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:
subject: Java GUI and Security
It's not a secret anymore!