mirror of
https://github.com/openjdk/jdk.git
synced 2026-02-28 19:20:33 +00:00
8129789: implies() of ServicePermission and DelegationPermission underspecified
Reviewed-by: mullan
This commit is contained in:
parent
38b84c3cbd
commit
a4b5e30688
@ -132,7 +132,9 @@ public final class DelegationPermission extends BasicPermission
|
||||
* Checks if this Kerberos delegation permission object "implies" the
|
||||
* specified permission.
|
||||
* <P>
|
||||
* If none of the above are true, {@code implies} returns false.
|
||||
* This method returns true if this {@code DelegationPermission}
|
||||
* is equal to {@code p}, and returns false otherwise.
|
||||
*
|
||||
* @param p the permission to check against.
|
||||
*
|
||||
* @return true if the specified permission is implied by this object,
|
||||
|
||||
@ -179,7 +179,16 @@ public final class ServicePermission extends Permission
|
||||
* Checks if this Kerberos service permission object "implies" the
|
||||
* specified permission.
|
||||
* <P>
|
||||
* If none of the above are true, {@code implies} returns false.
|
||||
* More specifically, this method returns true if all of the following
|
||||
* are true (and returns false if any of them are not):
|
||||
* <ul>
|
||||
* <li> <i>p</i> is an instanceof {@code ServicePermission},
|
||||
* <li> <i>p</i>'s actions are a proper subset of this
|
||||
* {@code ServicePermission}'s actions,
|
||||
* <li> <i>p</i>'s name is equal to this {@code ServicePermission}'s name
|
||||
* or this {@code ServicePermission}'s name is "*".
|
||||
* </ul>
|
||||
*
|
||||
* @param p the permission to check against.
|
||||
*
|
||||
* @return true if the specified permission is implied by this object,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user