File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Other JSE/JEE APIs and the fly likes Integrate JAAS with JSP and Servlets Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "Integrate JAAS with JSP and Servlets" Watch "Integrate JAAS with JSP and Servlets" New topic
Author

Integrate JAAS with JSP and Servlets

K Aditi
Ranch Hand

Joined: Mar 17, 2008
Posts: 89
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?


Aditi
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10202
    
166

Aditi,

Can you please tell us more about what you are trying to do?


[My Blog] [JavaRanch Journal]
K Aditi
Ranch Hand

Joined: Mar 17, 2008
Posts: 89
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
Marshal

Joined: Mar 22, 2005
Posts: 42276
    
  64
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.


Ping & DNS - my free Android networking tools app
K Aditi
Ranch Hand

Joined: Mar 17, 2008
Posts: 89
Thanks.Could anybody please elaborate more on this topic?
[ March 18, 2008: Message edited by: Aditi Aak ]
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42276
    
  64
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

Joined: Mar 17, 2008
Posts: 89
Ok.Thanks Ulf.
puneetRatikon agarwal
Greenhorn

Joined: Jul 15, 2009
Posts: 3
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

Joined: Jul 20, 2005
Posts: 10202
    
166

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Integrate JAAS with JSP and Servlets