J
jamie.eyre
Hi,
I would like to get the windows login information from my
application/applet. Specifically I want the username. I know that you
can get the username by calling
System.getProperty("user.name");
This gets the windows USERNAME environment variable.
The only problem with using this method is that it is possible to
change your USERNAME system property to something else (i.e. admin) via
a command propmt (set USERNAME=admin), and then start the application.
If the application is started in the same command dialog, the
application would then get this new name (i.e. admin), when calling
System.getProperty("user.name"); In this way, someone could fake their
name.
Does anybody else have another way of doing this? A more secure way.
Thanks,
Jamie
I would like to get the windows login information from my
application/applet. Specifically I want the username. I know that you
can get the username by calling
System.getProperty("user.name");
This gets the windows USERNAME environment variable.
The only problem with using this method is that it is possible to
change your USERNAME system property to something else (i.e. admin) via
a command propmt (set USERNAME=admin), and then start the application.
If the application is started in the same command dialog, the
application would then get this new name (i.e. admin), when calling
System.getProperty("user.name"); In this way, someone could fake their
name.
Does anybody else have another way of doing this? A more secure way.
Thanks,
Jamie