public class KernelSecurityManager extends SecurityManager
SecurityManager
implementation based on Kernel/Feature
runtime model. Implemented
checks: Feature
cannot access a File out of its dedicated spaceConstructor and Description |
---|
KernelSecurityManager() |
Modifier and Type | Method and Description |
---|---|
void |
checkPermission(Permission perm)
Throws a
SecurityException if the requested access, specified by the given
permission, is not permitted based on the security policy currently in effect. |
void |
setFeaturePermissionDelegate(Class<? extends Permission> permission,
FeaturePermissionCheckDelegate delegate) |
protected void |
unknownPermission(Permission perm)
This method is called when there is no registered delegate for this kind of Permission.
|
checkAccess
public void checkPermission(Permission perm)
SecurityManager
SecurityException
if the requested access, specified by the given
permission, is not permitted based on the security policy currently in effect.
checkPermission
in class SecurityManager
perm
- the requested permission.public void setFeaturePermissionDelegate(Class<? extends Permission> permission, FeaturePermissionCheckDelegate delegate)
protected void unknownPermission(Permission perm)
SecurityException
by default.perm
- the unknown permission