Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4491389

Property names for passing username and password to JAAS LoginModule

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Not an Issue
    • Icon: P3 P3
    • None
    • 1.0
    • security-libs



      Name: bsC130419 Date: 08/13/2001


      java version "1.3.0_02"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0_02)
      Java HotSpot(TM) Client VM (build 1.3.0_02, mixed mode)


      We do not see anywhere in JAAS documentation how we can pass username and
      password from an application to LoginModule when no callback handler is
      installed by the application.

      We did see in FAQ that there are two property names
      "javax.security.auth.login.name" and "javax.security.auth.login.password" to
      share password between login modules. But the question remains how to pass the
      username/password for the first time from the application to JAAS Module
      programmatically.

      We don't see any variation of LoginContext() constructors that allow an
      application to set shared state properties or options. Only way seems to be by
      setting the username/password as options in configuration file which needless to
      say would not only be insufficient and limiting, but also a security risk.
      (Review ID: 129928)
      ======================================================================

            Unassigned Unassigned
            bstrathesunw Bill Strathearn (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: