src/java.security.jgss/share/classes/javax/security/auth/kerberos/DelegationPermission.java

Print this page

        

@@ -178,11 +178,11 @@
      *
      * @return a hash code value for this object.
      */
     @Override
     public int hashCode() {
-        return getName().hashCode();
+        return 17 * subordinate.hashCode() + 31 * service.hashCode();
     }
 
     /**
      * Returns a PermissionCollection object for storing
      * DelegationPermission objects.