Click here to Skip to main content
15,887,683 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Anyone have any idea on how to create a login system for a desktop application in Java?

Thanks in advance.

Suraci
Posted

1 solution

It can be as simple or as complex as you want. A suggestion would be:

The logon cridentials are required to open a server session.
When the user starts the app, the first thing is to pop-up a logon screen and request user+pwd.
ENCRYPT them and have that as part of the connection handshake for a server session.
The connection [server side] holds the credentials and can be used for accessing any data.
The client session should not need to keep the user details once the user is logged in.
If you use a facade approach to the application, seperating the UI and the logic, it is relatively easy to keep the details isolated.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900