The Artima Developer Community
Sponsored Link

Java Answers Forum
User Authentication

3 replies on 1 page. Most recent reply: Nov 18, 2003 1:16 AM by Viswanatha Basavalingappa

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

Posts: 14
Nickname: spanishste
Registered: Nov, 2003

User Authentication Posted: Nov 16, 2003 3:24 PM
Reply to this message Reply
Advertisement
Hello everbody,
what are the best possible ways for user authentication in java??Say,I've a user interface done in swing.Before the user presses a button,I would like to check for his credentials(password is encrypted).Never done with java before, had experience with PHP using flat files as well as databases.I dont want to use any database here.
pls point me to a nice tutorial,useful links or if somebody has a sample code.

Thanks for all your time


Alex S

Posts: 27
Nickname: andu
Registered: Mar, 2003

Re: User Authentication Posted: Nov 17, 2003 2:32 AM
Reply to this message Reply
You can take a look to JavaTM Authentication and Authorization Service (JAAS):

http://java.sun.com/products/jaas/

Use Google to search for JAAS tutorials or other JAAS related articles.

steps

Posts: 14
Nickname: spanishste
Registered: Nov, 2003

Re: User Authentication Posted: Nov 17, 2003 4:20 AM
Reply to this message Reply
Thanks Alex.

Viswanatha Basavalingappa

Posts: 84
Nickname: viswagb
Registered: Nov, 2003

Re: User Authentication Posted: Nov 18, 2003 1:16 AM
Reply to this message Reply
As you have mentioned.

Before the user presses a button,I would like to check for his credentials(password is encrypted).


I think you need to check on the event , when a user complets the password entry . onEndPasswordentery() user defined event method you need verify the string is it encrpted.
event is the only way to check unless user presses Logon button.
any way for authentication in java lot info over net.
here you can find

http://java.sun.com/security/jaas/doc/api.html
http://edocs.bea.com/wls/docs81/security/fat_client.html

Thanks
Viswa
bgviswan@in.ibm.com
IBM -india
---------------------

Flat View: This topic has 3 replies on 1 page
Topic: reading from MS Project mpp into servlet Previous Topic   Next Topic Topic: method that is not working inside thread

Sponsored Links



Google
  Web Artima.com   

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