Home / Class/ SecurityManagerInstalled Class — netty Architecture

SecurityManagerInstalled Class — netty Architecture

Architecture documentation for the SecurityManagerInstalled class in PrivilegedSocketOperationsBenchmark.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  9bb51619_c658_2e46_51e7_45c04f05dfb9["SecurityManagerInstalled"]
  28118feb_7948_ce3a_e892_3715590e8432["PrivilegedSocketOperationsBenchmark.java"]
  9bb51619_c658_2e46_51e7_45c04f05dfb9 -->|defined in| 28118feb_7948_ce3a_e892_3715590e8432
  e5778688_d575_25dd_aaba_ec3f8c553c3f["setup()"]
  9bb51619_c658_2e46_51e7_45c04f05dfb9 -->|method| e5778688_d575_25dd_aaba_ec3f8c553c3f
  a9744ad2_62c0_0582_8d92_2d067f696be7["tearDown()"]
  9bb51619_c658_2e46_51e7_45c04f05dfb9 -->|method| a9744ad2_62c0_0582_8d92_2d067f696be7

Relationship Graph

Source Code

microbench/src/main/java/io/netty/microbench/internal/PrivilegedSocketOperationsBenchmark.java lines 44–59

    @State(Scope.Benchmark)
    public static class SecurityManagerInstalled {

        @Setup
        public void setup() throws IOException, NoSuchAlgorithmException, URISyntaxException {
            final URI policyFile = PrivilegedSocketOperationsBenchmark.class.getResource("/jmh-security.policy")
                    .toURI();
            Policy.setPolicy(Policy.getInstance("JavaPolicy", new URIParameter(policyFile)));
            System.setSecurityManager(new SecurityManager());
        }

        @TearDown
        public void tearDown() throws IOException {
            System.setSecurityManager(null);
        }
    }

Frequently Asked Questions

What is the SecurityManagerInstalled class?
SecurityManagerInstalled is a class in the netty codebase, defined in microbench/src/main/java/io/netty/microbench/internal/PrivilegedSocketOperationsBenchmark.java.
Where is SecurityManagerInstalled defined?
SecurityManagerInstalled is defined in microbench/src/main/java/io/netty/microbench/internal/PrivilegedSocketOperationsBenchmark.java at line 44.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free