*
The moose likes Java in General and the fly likes Username and password Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Username and password" Watch "Username and password" New topic
Author

Username and password

Amrita Dole
Greenhorn

Joined: Nov 12, 2003
Posts: 20
Hi,
I want to accept username and passowrd from the user and authenticate it against the username and passowrd I have in my program which have been stored as Strings.
How do I accept user name and password and how do I authenticate it?
Thanks.
Amrita
Angel Dobbs-Sciortino
Ranch Hand

Joined: Sep 10, 2003
Posts: 101
Take a look at String.equals(Object anObject) in the Java API.
Angel
[ November 18, 2003: Message edited by: Angel Dobbs-Sciortino ]
Amrita Dole
Greenhorn

Joined: Nov 12, 2003
Posts: 20
Thanks.
That was useful.
 
jQuery in Action, 2nd edition
 
subject: Username and password