Details
-
Type:
Bug
-
Status: Resolved
-
Priority:
P3
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 14
-
Component/s: security-libs
-
Labels:
-
Subcomponent:
-
Resolved In Build:b21
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.
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.