Class JavaPolicySecurity

    • Constructor Detail

      • JavaPolicySecurity

        public JavaPolicySecurity()
    • Method Detail

      • createClassLoader

        public GeneratedClassLoader createClassLoader​(java.lang.ClassLoader parentLoader,
                                                      java.lang.Object securityDomain)
        Description copied from class: SecurityController
        Get class loader-like object that can be used to define classes with the given security context.
        Specified by:
        createClassLoader in class SecurityController
        Parameters:
        parentLoader - parent class loader to delegate search for classes not defined by the class loader itself
        securityDomain - some object specifying the security context of the code that is defined by the returned class loader.
      • getDynamicSecurityDomain

        public java.lang.Object getDynamicSecurityDomain​(java.lang.Object securityDomain)
        Description copied from class: SecurityController
        Get dynamic security domain that allows an action only if it is allowed by the current Java stack and securityDomain. If securityDomain is null, return domain representing permissions allowed by the current stack.
        Specified by:
        getDynamicSecurityDomain in class SecurityController