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

ServicePermission::equals doesn't comply to the spec

    Details

      Description

      Either specification of ServicePermission::equals() method is not correct
      https://download.java.net/java/early_access/jdk14/docs/api/java.security.jgss/javax/security/auth/kerberos/ServicePermission.html#equals(java.lang.Object)
      "Returns: true if obj is a ServicePermission, and has the same service principal, and actions as this ServicePermission object"
      or the OpenJDK implementation, as the following:

      =================================
      import javax.security.auth.kerberos.ServicePermission;
      ....
      new ServicePermission("ABC", "initiate,accept").equals(new ServicePermission("ABC", "accept"))
      =================================

      would return "true" while actions above are not the same.

        Attachments

          Activity

            People

            • Assignee:
              weijun Weijun Wang
              Reporter:
              dbessono Dmitry Bessonov
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: