my dog learned polymorphism*
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


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.
 
GeeCON Prague 2014
 
subject: Username and password