为桌面应用程序创建登录名/密码 [英] Creating a Login/PW for a desktop application

查看:105
本文介绍了为桌面应用程序创建登录名/密码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人知道如何为Java中的桌面应用程序创建登录系统吗?

提前致谢.

Suraci

Anyone have any idea on how to create a login system for a desktop application in Java?

Thanks in advance.

Suraci

推荐答案

它可以根据需要简单或复杂.一个建议是:

登录凭据是打开服务器会话所必需的.
当用户启动应用程序时,第一件事是弹出登录屏幕并请求用户+ pwd.
加密它们,并将其作为服务器会话的连接握手的一部分.
连接[服务器端]拥有凭据,可用于访问任何数据.
用户登录后,客户端会话无需保留用户详细信息.
如果您对应用程序使用立面方法,将UI和逻辑分开,则相对容易将细节隔离.
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.


这篇关于为桌面应用程序创建登录名/密码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆