Lifcycle of a LoginModule

Discussion in 'Java' started by Brian J. Sayatovic, Mar 5, 2004.

  1. 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.
    Brian J. Sayatovic, Mar 5, 2004
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. blinky
    Replies:
    0
    Views:
    474
    blinky
    Mar 3, 2005
  2. ohaya
    Replies:
    1
    Views:
    1,124
    ohaya
    Jul 16, 2005
  3. ohaya
    Replies:
    2
    Views:
    4,477
    singharun
    Sep 2, 2010
  4. Maciek

    Calling LoginModule in JBoss

    Maciek, Oct 19, 2006, in forum: Java
    Replies:
    0
    Views:
    626
    Maciek
    Oct 19, 2006
Loading...

Share This Page