Win a copy of Modern JavaScript for the Impatient this week in the Server-Side JavaScript and NodeJS forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

To Authors: example of a JAAS implementation

Ranch Hand
Posts: 106
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you give some concrete example on the implementation of JAAS into the Servlet ? (for relying on a specific profiles repository)
Posts: 159
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, of course you can use JAAS for enabling custom authentication of Web components including Servlets. In our book, we suggested the use of JAAS based Strategies in "Authentication Enforcer" and "Authorization Enforcer" patterns.
These very well apply to "Web container" based components.

In our book, we do show how to implement a JAAS Login Module with a code example. If you would like to see..JAAS Login Module code examples for custom user/pass authentication using LDAP, JDBC, AD..there are many examples available on the net.
[ January 11, 2006: Message edited by: Ramesh Nagappan ]
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
    Bookmark Topic Watch Topic
  • New Topic