Serializable, Guardpublic final class AllPermission extends Permission
Note: Granting AllPermission should be done with extreme care, as it implies all other permissions. Thus, it grants code the ability to run with security disabled. Extreme caution should be taken before granting such a permission to code. This permission should be used only during testing, or in extremely rare cases where an application or applet is completely trusted and adding the necessary permissions to the policy is prohibitively cumbersome.
| 构造器 | 说明 |
|---|---|
AllPermission() |
Creates a new AllPermission object.
|
AllPermission(String name,
String actions) |
Creates a new AllPermission object.
|
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
String |
getActions() |
Returns the canonical string representation of the actions.
|
boolean |
implies(Permission p) |
Checks if the specified permission is "implied" by
this object.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcheckGuard, getName, newPermissionCollectionpublic boolean implies(Permission p)
implies 在类中 Permissionp - the permission to check against.public String getActions()
getActions 在类中 Permission