The Artima Developer Community
Sponsored Link

Java Answers Forum
server side authentication

1 reply on 1 page. Most recent reply: Jan 20, 2004 7:52 AM by mausam

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 1 reply on 1 page
steps

Posts: 14
Nickname: spanishste
Registered: Nov, 2003

server side authentication Posted: Jan 20, 2004 6:20 AM
Reply to this message Reply
Advertisement
Hello,

I'm quite confused with this authentication.could somebody please clarify me.
I've a user interface done in swing.Now, the user enter the username and password and this has to be checked with the one's stored in the table.This table(db) is on the server.when the user is authenticated, the user can start matlab on the server.To start matlab, as well as the other things are working fine.I'm only confused with this authentication.
Any help??
Thanks in advance


mausam

Posts: 243
Nickname: mausam
Registered: Sep, 2003

Re: server side authentication Posted: Jan 20, 2004 7:52 AM
Reply to this message Reply
SO what is the confusion??

User entered userName and password, check the data in database
on some simple query

Select password from db where user_name = userName;

String pwd = rs.getString(0);
if pwd == null
user does not exist.

Authentication failed.
if pwd!=password
password does not match

else proceed.

Simple algo...

u can make it complex as per ur requirement

Flat View: This topic has 1 reply on 1 page
Topic: Exception Handling Previous Topic   Next Topic Topic: generic java programming questions

Sponsored Links



Google
  Web Artima.com   

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