public class LoggingPermissionCheckDelegate extends Object implements FeaturePermissionCheckDelegate
FeaturePermissionCheckDelegate that only logs the permission accesses.| Constructor and Description |
|---|
LoggingPermissionCheckDelegate()
Creates a
LoggingPermissionCheckDelegate using the KF utilities logger and the FINER log level. |
LoggingPermissionCheckDelegate(MessageLogger logger,
char logLevel)
|
| Modifier and Type | Method and Description |
|---|---|
void |
checkPermission(Permission p,
Feature f)
Called by
KernelSecurityManager when the current thread context requesting for a Permission check is
owned by a Feature. |
public LoggingPermissionCheckDelegate()
LoggingPermissionCheckDelegate using the KF utilities logger and the FINER log level.public LoggingPermissionCheckDelegate(MessageLogger logger, char logLevel)
logger - the logger that should be used to log permission checkslogLevel - the level that should be used to log permission checkspublic void checkPermission(Permission p, Feature f)
FeaturePermissionCheckDelegateKernelSecurityManager when the current thread context requesting for a Permission check is
owned by a Feature. This method is called in Kernel mode.checkPermission in interface FeaturePermissionCheckDelegatep - the permission to checkf - the feature which own the permission