-
Bug
-
Resolution: Fixed
-
P3
-
None
-
b21
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.
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.