Class SecurityManager

    • Field Detail

      • assemblyFullName

        public static final java.lang.String assemblyFullName
        Fully assembly qualified name: System.Security.Permissions, Version=8.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51
        See Also:
        Constant Field Values
      • assemblyShortName

        public static final java.lang.String assemblyShortName
        Assembly name: System.Security.Permissions
        See Also:
        Constant Field Values
      • className

        public static final java.lang.String className
        Qualified class name: System.Security.SecurityManager
        See Also:
        Constant Field Values
      • classType

        public static JCType classType
        The type managed from JCOBridge. See JCType
    • Constructor Detail

      • SecurityManager

        public SecurityManager​(java.lang.Object instance)
                        throws java.lang.Throwable
        Internal constructor. Use with caution
        Throws:
        java.lang.Throwable
      • SecurityManager

        public SecurityManager()
                        throws java.lang.Throwable
        Throws:
        java.lang.Throwable
    • Method Detail

      • CurrentThreadRequiresSecurityContextCapture

        public static boolean CurrentThreadRequiresSecurityContextCapture()
                                                                   throws java.lang.Throwable
        Throws:
        java.lang.Throwable
      • IsGranted

        public static boolean IsGranted​(IPermission perm)
                                 throws java.lang.Throwable
        Throws:
        java.lang.Throwable
      • PolicyHierarchy

        public static IEnumerator PolicyHierarchy()
                                           throws java.lang.Throwable
        Throws:
        java.lang.Throwable
      • ResolvePolicyGroups

        public static IEnumerator ResolvePolicyGroups​(Evidence evidence)
                                               throws java.lang.Throwable
        Throws:
        java.lang.Throwable
      • GetStandardSandbox

        public static PermissionSet GetStandardSandbox​(Evidence evidence)
                                                throws java.lang.Throwable
        Throws:
        java.lang.Throwable
      • ResolvePolicy

        public static PermissionSet ResolvePolicy​(Evidence evidence)
                                           throws java.lang.Throwable
        Throws:
        java.lang.Throwable
      • ResolvePolicy

        public static PermissionSet ResolvePolicy​(Evidence[] evidences)
                                           throws java.lang.Throwable
        Throws:
        java.lang.Throwable
      • ResolveSystemPolicy

        public static PermissionSet ResolveSystemPolicy​(Evidence evidence)
                                                 throws java.lang.Throwable
        Throws:
        java.lang.Throwable
      • LoadPolicyLevelFromFile

        public static PolicyLevel LoadPolicyLevelFromFile​(java.lang.String path,
                                                          PolicyLevelType type)
                                                   throws java.lang.Throwable
        Throws:
        java.lang.Throwable
      • LoadPolicyLevelFromString

        public static PolicyLevel LoadPolicyLevelFromString​(java.lang.String str,
                                                            PolicyLevelType type)
                                                     throws java.lang.Throwable
        Throws:
        java.lang.Throwable
      • SavePolicy

        public static void SavePolicy()
                               throws java.lang.Throwable
        Throws:
        java.lang.Throwable
      • SavePolicyLevel

        public static void SavePolicyLevel​(PolicyLevel level)
                                    throws java.lang.Throwable
        Throws:
        java.lang.Throwable
      • getCheckExecutionRights

        public static boolean getCheckExecutionRights()
                                               throws java.lang.Throwable
        Throws:
        java.lang.Throwable
      • setCheckExecutionRights

        public static void setCheckExecutionRights​(boolean CheckExecutionRights)
                                            throws java.lang.Throwable
        Throws:
        java.lang.Throwable
      • getSecurityEnabled

        public static boolean getSecurityEnabled()
                                          throws java.lang.Throwable
        Throws:
        java.lang.Throwable
      • setSecurityEnabled

        public static void setSecurityEnabled​(boolean SecurityEnabled)
                                       throws java.lang.Throwable
        Throws:
        java.lang.Throwable