• Post Reply Bookmark Topic Watch Topic
  • New Topic

Java GUI and Security  RSS feed

 
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Ranch Hand
Posts: 1923
Linux Postgres Database Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Ranch Hand
Posts: 1078
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!