The Artima Developer Community
Sponsored Link

Java Answers Forum
Java Login and authentication problems

2 replies on 1 page. Most recent reply: Apr 4, 2006 2:01 PM by Arul Murugan

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 2 replies on 1 page
john lake

Posts: 1
Nickname: nautilus16
Registered: Mar, 2006

Java Login and authentication problems Posted: Mar 23, 2006 1:01 PM
Reply to this message Reply
Advertisement
I am having problems setting up a login screen class that takes a user name and password and tests its authentication from a list in a file. I cannot get the login to read the file and authenticate from it. Does anyone have any ideas? Thanks


du dan

Posts: 1
Nickname: lendo
Registered: Mar, 2006

Re: Java Login and authentication problems Posted: Mar 23, 2006 8:41 PM
Reply to this message Reply
you could use package java.util.Property to solve it.

Arul Murugan

Posts: 7
Nickname: appaney
Registered: Mar, 2006

Re: Java Login and authentication problems Posted: Apr 4, 2006 2:01 PM
Reply to this message Reply
As lendo said you can use the java.util.property utility class. You can populate the property file with the user names and passwords and load the property file and compare the username & password in the property file with that of the user entered one. you can compare this by iterating the user entered username & password with against the property file username & password.

All the best.

Flat View: This topic has 2 replies on 1 page
Topic: java problem Previous Topic   Next Topic Topic: how to write a driver for IntList.java

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use