Package com.microej.kf.util.security
Class LoggingPermissionCheckDelegate
- java.lang.Object
-
- com.microej.kf.util.security.LoggingPermissionCheckDelegate
-
- All Implemented Interfaces:
FeaturePermissionCheckDelegate
public class LoggingPermissionCheckDelegate extends java.lang.Object implements FeaturePermissionCheckDelegate
Helper implementation of theFeaturePermissionCheckDelegatethat only logs the permission accesses.
-
-
Constructor Summary
Constructors Constructor Description LoggingPermissionCheckDelegate()Creates aLoggingPermissionCheckDelegateusing the KF utilities logger and the FINER log level.LoggingPermissionCheckDelegate(ej.util.message.MessageLogger logger, char logLevel)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcheckPermission(java.security.Permission p, ej.kf.Feature f)Called byKernelSecurityManagerwhen the current thread context requesting for a Permission check is owned by a Feature.
-
-
-
Constructor Detail
-
LoggingPermissionCheckDelegate
public LoggingPermissionCheckDelegate(ej.util.message.MessageLogger logger, char logLevel)- Parameters:
logger- the logger that should be used to log permission checkslogLevel- the level that should be used to log permission checks
-
LoggingPermissionCheckDelegate
public LoggingPermissionCheckDelegate()
Creates aLoggingPermissionCheckDelegateusing the KF utilities logger and the FINER log level.
-
-
Method Detail
-
checkPermission
public void checkPermission(java.security.Permission p, ej.kf.Feature f)Description copied from interface:FeaturePermissionCheckDelegateCalled byKernelSecurityManagerwhen the current thread context requesting for a Permission check is owned by a Feature. This method is called in Kernel mode.- Specified by:
checkPermissionin interfaceFeaturePermissionCheckDelegate- Parameters:
p- the permission to checkf- the feature which own the permission
-
-