public class LoggingPermissionCheckDelegate extends java.lang.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(ej.util.message.MessageLogger logger,
char logLevel)
|
Modifier and Type | Method and Description |
---|---|
void |
checkPermission(java.security.Permission p,
ej.kf.Feature f)
Called by
KernelSecurityManager when the current thread context requesting for a Permission check is
owned by a Feature. |
public LoggingPermissionCheckDelegate(ej.util.message.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 LoggingPermissionCheckDelegate()
LoggingPermissionCheckDelegate
using the KF utilities
logger and the FINER log level.public void checkPermission(java.security.Permission p, ej.kf.Feature f)
FeaturePermissionCheckDelegate
KernelSecurityManager
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 FeaturePermissionCheckDelegate
p
- the permission to checkf
- the feature which own the permission