public abstract class Permission
extends Object implements Guard, Serializable
| java.lang.Object | |
| java.security.Permission | |
| |
| |
旧版安全代码; 不使用。
Public constructors |
|
|---|---|
Permission(String name) |
|
公共方法(Public methods) |
|
|---|---|
void |
checkGuard(Object object) 确定是否允许访问保护对象 |
abstract String |
getActions() |
final String |
getName() |
abstract boolean |
implies(Permission permission) |
PermissionCollection |
newPermissionCollection() |
继承方法(Inherited methods) |
|
|---|---|
java.lang.Object
|
|
java.security.Guard
|
|
void checkGuard (Object object)
确定是否允许访问保护对象object 。 如果允许访问,则默认返回。 否则,会引发SecurityException。
| 参数(Parameters) | |
|---|---|
object |
Object: the object being protected by the guard. |
| 抛出异常(Throws) | |
|---|---|
SecurityException |
|
boolean implies (Permission permission)
| 参数(Parameters) | |
|---|---|
permission |
Permission
|
| 返回(Returns) | |
|---|---|
boolean |
|
PermissionCollection newPermissionCollection ()
| 返回(Returns) | |
|---|---|
PermissionCollection |
|