• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

JAAS or j_security_check

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi

I am new to JAAS. I have used j_security_check(of JBOSS) in a couple of projects.

I wanted to know the advantages of using JAAS over j_security_check. Basically I want to know when to use what?(JAAS and j_security_check or others....)
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Welcome to JavaRanch.

It's not an either-or proposition - both can be used together. JAAS is a much more comprehensive authentication/authorization solution, which consequently is more difficult to set up and has a stepper learning curve.

E.g., Tomcat can hook its web app security into JAAS. I would expect JBoss to be able to do something similar.

If you're interested in using JAAS in a web app, check out jGuard; it's meant to simplify that.
 
Krishna Das
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello Ulf,

Thanks for the reply. But are there any pointers where we can find a comparison study of the same?

Also I am unable to do URL authorization using JAAS. I just didn't find anything comprehensive on the net(apart from the tutorial from www.moore.com).

Thats the reason why I wanted to compare JAAS and j_security_check(for evaluation).

Also the project which I am working on currently, would be deployed on GlassFish v2(I have no idea of GlassFish... I am new to it)

Thanks for the Info.
 
Ulf Dittmer
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Correct, JAAS is not web app-specific, and so it has no mechanism to be mapped to URLs. That's where the jGuard project I pointed you to comes in handy.

You can't really compare JASS and web app security, as they are targeted towards different scenarios. Generally, you only need to use JAAS if the username/role concept provided by web app security is not sufficient. For many web apps, it is sufficient.

It should also be pointed out that often people do not use web app security, but rather develop their own, because what web app security provides is rather limited. But in those cases, too, JAAS is not often used due to its complexity.
 
Krishna Das
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Ulf,

I am not supposed to use JGuard in my project. My client really doesn't want to use open source software in the project. So I stuck to JAAS because I had 3 fields(key, username and password) for authentication.

I somehow managed to get it to work. Thanks for the pointers.

Three cheers to JavaRanch.

Regards
 
What's that smell? Hey, sniff this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic