Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Integrate JAAS with JSP and Servlets

 
K Aditi
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can anybody give me an insight as to how to integrate JAAS in JSPs and Servlets?Will I have to write my own Callbackhandler for Biometric Authentication?
 
Jaikiran Pai
Marshal
Pie
Posts: 10444
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Aditi,

Can you please tell us more about what you are trying to do?
 
K Aditi
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to implement a Biometric Gateway Authentication for which I am thinking of using JAAS. For this system there are two levels of authentication,a password based authentication followed by a biometric authentication. Both password and biometric data will be stored in an Oracle database.This system has to work using JSPs and Servlets.I want to know how will I use JAAS and JSP + Servlets.
 
Ulf Dittmer
Rancher
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Will I have to write my own Callbackhandler for Biometric Authentication?

Probably yes. How JAAS integrates with web app security is not part of the servlet spec, and thus varies from server to server. E.g., Tomcat uses the JAASRealm for this.
 
K Aditi
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks.Could anybody please elaborate more on this topic?
[ March 18, 2008: Message edited by: Aditi Aak ]
 
Ulf Dittmer
Rancher
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Elaborate on what?

JAAS is a huge topic that can't be explained in a forum like this. The http://faq.javaranch.com/java/SecurityFaq has a few links that will get you started.

JAAS integration with a servlet container varies depending on which one you're using. If you tell us which one that is, we may be able to help.
 
K Aditi
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok.Thanks Ulf.
 
puneetRatikon agarwal
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ulf Dittmer wrote:Elaborate on what?

JAAS is a huge topic that can't be explained in a forum like this. The http://faq.javaranch.com/java/SecurityFaq has a few links that will get you started.

JAAS integration with a servlet container varies depending on which one you're using. If you tell us which one that is, we may be able to help.


I'm using tomcat 5.5 server through which I'm trying to implement JAAS api.please tell me how to implement JAAS with jsp/servlets.
 
Jaikiran Pai
Marshal
Pie
Posts: 10444
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Puneet,

Please do not reply to year old threads. Please open a new thread in appropriate forum.

As for your question, Ulf already pointed out in his reply that JAAS is a vast topic and each web container has its own configurations. You will have to check the web containers documentation for more details.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic