简体   繁体   English

在java中使用用户和密码锁定屏幕

[英]lock screen with user and password in java

Good morning, I need to develop a desktop application in Java that works in this way:早上好,我需要用 Java 开发一个以这种方式工作的桌面应用程序:

  • It's the first software that starts at windows start-up它是第一个在 Windows 启动时启动的软件
  • The users can't do anything (eg to open the task manager, to press the windows key, to minimize, to close or similar) until they type username and password to login and to access to the system用户不能做任何事情(例如打开任务管理器、按 windows 键、最小化、关闭或类似的),直到他们输入用户名和密码来登录和访问系统
  • This application must be connected to online database containing all the username and passwords.此应用程序必须连接到包含所有用户名和密码的在线数据库。

When the users have inserted correct datas, a timer starts and the application works in background, while using the system.当用户插入正确的数据时,计时器启动,应用程序在后台运行,同时使用系统。

Once the users decide to close the session, they have to logout from this application, then the timer will stop and the software will be again in full-screen一旦用户决定关闭会话,他们必须退出此应用程序,然后计时器将停止,软件将再次全屏

Below I'll explain how the common-use has to be: 1) I start the PC 2) The PC shows to me the application with USERNAME and PASSWORD 3) I type USERNAME and PASSWORD 4) A timer starts 5) I use the PC for X hours 6) I stop to use the PC, then I logout from the application 7) The timer stops, then return to 2)下面我将解释如何通用:1) 我启动 PC 2) PC 向我显示带有 USERNAME 和 PASSWORD 的应用程序 3) 我输入 USERNAME 和 PASSWORD 4) 计时器启动 5) 我使用PC X 小时 6) 我停止使用 PC,然后退出应用程序 7) 计时器停止,然后返回到 2)

Is there any API that I can use?有没有我可以使用的 API?

Thank you Regards谢谢问候

There is no API.没有 API。 In-fact you are trying to design a software which would run at end customer machine but would be the only one accessible.事实上,您正在尝试设计一种可以在最终客户机器上运行但将是唯一可访问的软件。 Ideally Java is not used for such purposes.理想情况下,Java 不用于此类目的。 Still if you want to accomplish through Java only break your problem to small tasks and start working one by one: 1) First you need to write java desktop application working as normal java applications (being run by developer every time) 2) Then include your database connectivity 3) include your clocks and functionality to behave the way you need 4) Finally you can use the java run time environment to ensure that it takes the control of the system 5) Lastly your program would need to be fit in start up menu of Windows to ensure it starts just the say it starts antivirus on boot up.尽管如此,如果您想通过 Java 完成,只能将您的问题分解为小任务并开始一项一项工作:1)首先您需要编写 Java 桌面应用程序作为普通 Java 应用程序工作(每次都由开发人员运行)2)然后包括您的数据库连接 3) 包括您的时钟和功能以按照您需要的方式运行 4) 最后,您可以使用 java 运行时环境来确保它控制系统 5) 最后您的程序需要适合启动菜单Windows 以确保它启动只是说它在启动时启动防病毒软件。 and there you go ....然后你去......

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM