Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Lifcycle of a LoginModule

Reply
Thread Tools

Lifcycle of a LoginModule

 
 
Brian J. Sayatovic
Guest
Posts: n/a
 
      03-05-2004
I'm trying to better understand the lifecycle of a JAAS LoginModule.
The impression I get from the documentation is that each time a
Subject needs to be authenticated, a new instance of each LoginModule
is created -- not a resuable shared instance. And while there seems
to be a provisions for shared state, I'm not sure that the shared
state is the place to place the state I want to share: an LDAP
connection.

Rather than making a new LDAP connection to look up username/password
information for verification, I'd like to have one connection that I
re-use. But if a LoginModule is only around during the authentication
of one subject, I'd have ot store that LDAP connection in the shared
state -- and figure out a way to clean it up.

Am I missing a piece of the puzzle?

Regards,
Brian.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to Access Subject after JAAS LoginModule? ohaya Java 2 09-02-2010 09:53 AM
Calling LoginModule in JBoss Maciek Java 0 10-19-2006 01:07 PM
How to access request from LoginModule? ohaya Java 1 07-16-2005 04:37 AM
JAAS: Cisco TACACS+ LoginModule blinky Cisco 0 03-03-2005 03:41 AM
JAAS: Cisco TACACS+ LoginModule blinky Java 0 03-03-2005 03:41 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57