Class KernelSecurityPolicyManager

  • All Implemented Interfaces:
    ej.kf.FeatureStateListener

    public class KernelSecurityPolicyManager
    extends java.lang.SecurityManager
    implements ej.kf.FeatureStateListener
    This class contains the security logic to apply when working with feature policy files.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addToPermissionMap​(ej.kf.Feature feature)
      This method allows to load the feature's permissions.
      void checkPermission​(java.security.Permission perm)  
      void stateChanged​(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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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:
        checkPermission in class java.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 the KernelSecurityPolicyManager class 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:
        stateChanged in interface ej.kf.FeatureStateListener