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:

      java.lang.System.setProperty("java.security.auth.login.config","etc/auth.conf");

      // let the LoginContext instantiate a new Subject
      LoginContext lc = null;
      try
      {
      lc = new LoginContext("example1");
      // authenticate the Subject
      lc.login();
      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.