1 Reply Latest reply on Feb 21, 2002 2:15 AM by georg

    ClientLoginModule  - no CallbackHandler available ...

    georg Newbie

      I tried to use the ClientLoginModule for my standalone applicaion but something goes wrong.

      After I do a lc.login() the LoginModule throws an Exception because it can't find a CallbackHandler ( the CallbackHandler = null).

      To say in Detail:


      // let the LoginContext instantiate a new Subject
      LoginContext lc = null;
      lc = new LoginContext("example1");
      // authenticate the Subject
      System.out.println("authentication successful");

      I'm not quite sure from where I should get that CallbackHandler? Should I call the initialize(...) method?

      I'm thankful for any advice.