public abstract class Permission
extends Object
implements Guard, Serializable
java.lang.Object | |
↳ | java.security.Permission |
Known Direct Subclasses |
Known Indirect Subclasses |
旧版安全代码; 不使用。
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 |
|
---|---|
From class java.lang.Object
|
|
From interface 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 |