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

createLoginContext AuthPermission should take config name into consideration

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.4.0
    • 1.0
    • security-libs
    • merlin
    • generic
    • solaris_7
    • Verified

      currently, we have a permission check to prevent anyone
      from instantiating a LoginContext. the check is for:

              AuthPermission("createLoginContext")

      this is necessary to prevent someone from randomly
      attempting logins until they succeed. one negative
      is that the permission is extremely powerful.
      once you trust an application to instantiate a LoginContext
      you can't prevent the application from randomly accessing different
      configuration entries in the login configuration.

      it would be useful if we could restrict
      which applications can instantiate a LoginContext,
      as well as what login configuration entries an application can access.

            claisunw Charlie Lai (Inactive)
            claisunw Charlie Lai (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: