Package com.microej.kf.util.security
Class KernelSecurityPolicyManager
- java.lang.Object
-
- java.lang.SecurityManager
-
- com.microej.kf.util.security.KernelSecurityPolicyManager
-
- All Implemented Interfaces:
ej.kf.FeatureStateListener
public class KernelSecurityPolicyManager extends java.lang.SecurityManager implements ej.kf.FeatureStateListenerThis class contains the security logic to apply when working with feature policy files.
-
-
Constructor Summary
Constructors Constructor Description KernelSecurityPolicyManager(SecurityPolicyResourceLoader securityPolicyResourceLoader)Instantiates a new kernel security policy manager.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddToPermissionMap(ej.kf.Feature feature)This method allows to load the feature's permissions.voidcheckPermission(java.security.Permission perm)voidstateChanged(ej.kf.Feature feature, ej.kf.Feature.State previousState)-
Methods inherited from class java.lang.SecurityManager
checkAccept, checkAccess, checkAccess, checkConnect, checkConnect, checkCreateClassLoader, checkDelete, checkExec, checkExit, checkLink, checkListen, checkMulticast, checkMulticast, checkPackageAccess, checkPackageDefinition, checkPermission, checkPrintJobAccess, checkPropertiesAccess, checkPropertyAccess, checkRead, checkRead, checkRead, checkSecurityAccess, checkSetFactory, checkWrite, checkWrite, getClassContext, getSecurityContext, getThreadGroup
-
-
-
-
Constructor Detail
-
KernelSecurityPolicyManager
public KernelSecurityPolicyManager(SecurityPolicyResourceLoader securityPolicyResourceLoader)
Instantiates a new kernel security policy manager.- Parameters:
securityPolicyResourceLoader- the security policy resource loader implementation.
-
-
Method Detail
-
checkPermission
public void checkPermission(java.security.Permission perm)
- Overrides:
checkPermissionin classjava.lang.SecurityManager
-
addToPermissionMap
public void addToPermissionMap(ej.kf.Feature feature)
This method allows to load the feature's permissions. This method is already called by theKernelSecurityPolicyManagerclass when using standard LocalDeploy. This method only needs to be called when the Kernel uses XIP (Execution In Place) system to load features permissions before starting them. See the documentation for more informations.- Parameters:
feature- the feature to load permissions from.
-
stateChanged
public void stateChanged(ej.kf.Feature feature, @Nullable ej.kf.Feature.State previousState)- Specified by:
stateChangedin interfaceej.kf.FeatureStateListener
-
-