class sun.nio.fs.WindowsSecurity
  minor version: 0
  major version: 59
  flags: flags: (0x0020) ACC_SUPER
  this_class: sun.nio.fs.WindowsSecurity
  super_class: java.lang.Object
{
  static final long processTokenWithDuplicateAccess;
    descriptor: J
    flags: (0x0018) ACC_STATIC, ACC_FINAL

  static final long processTokenWithQueryAccess;
    descriptor: J
    flags: (0x0018) ACC_STATIC, ACC_FINAL

  static void <clinit>();
    descriptor: ()V
    flags: (0x0008) ACC_STATIC
    Code:
      stack=2, locals=0, args_size=0
         0: .line 51
            iconst_2
            invokestatic sun.nio.fs.WindowsSecurity.openProcessToken:(I)J
         1: .line 50
            putstatic sun.nio.fs.WindowsSecurity.processTokenWithDuplicateAccess:J
         2: .line 57
            bipush 8
            invokestatic sun.nio.fs.WindowsSecurity.openProcessToken:(I)J
         3: .line 56
            putstatic sun.nio.fs.WindowsSecurity.processTokenWithQueryAccess:J
         4: .line 57
            return
      LocalVariableTable:
        Start  End  Slot  Name  Signature

  private void <init>();
    descriptor: ()V
    flags: (0x0002) ACC_PRIVATE
    Code:
      stack=1, locals=1, args_size=1
        start local 0 // sun.nio.fs.WindowsSecurity this
         0: .line 36
            aload 0 /* this */
            invokespecial java.lang.Object.<init>:()V
            return
        end local 0 // sun.nio.fs.WindowsSecurity this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Lsun/nio/fs/WindowsSecurity;

  private static long openProcessToken(int);
    descriptor: (I)J
    flags: (0x000a) ACC_PRIVATE, ACC_STATIC
    Code:
      stack=3, locals=1, args_size=1
        start local 0 // int access
         0: .line 41
            invokestatic sun.nio.fs.WindowsNativeDispatcher.GetCurrentProcess:()J
            iload 0 /* access */
            invokestatic sun.nio.fs.WindowsNativeDispatcher.OpenProcessToken:(JI)J
         1: lreturn
         2: .line 42
      StackMap locals:
      StackMap stack: sun.nio.fs.WindowsException
            pop
         3: .line 43
            lconst_0
            lreturn
        end local 0 // int access
      LocalVariableTable:
        Start  End  Slot    Name  Signature
            0    4     0  access  I
      Exception table:
        from    to  target  type
           0     1       2  Class sun.nio.fs.WindowsException
    MethodParameters:
        Name  Flags
      access  

  static sun.nio.fs.WindowsSecurity$Privilege enablePrivilege(java.lang.String);
    descriptor: (Ljava/lang/String;)Lsun/nio/fs/WindowsSecurity$Privilege;
    flags: (0x0008) ACC_STATIC
    Code:
      stack=6, locals=11, args_size=1
        start local 0 // java.lang.String priv
         0: .line 74
            aload 0 /* priv */
            invokestatic sun.nio.fs.WindowsNativeDispatcher.LookupPrivilegeValue:(Ljava/lang/String;)J
            lstore 1 /* pLuid */
        start local 1 // long pLuid
         1: .line 75
            goto 4
        end local 1 // long pLuid
      StackMap locals:
      StackMap stack: sun.nio.fs.WindowsException
         2: astore 3 /* x */
        start local 3 // sun.nio.fs.WindowsException x
         3: .line 77
            new java.lang.AssertionError
            dup
            aload 3 /* x */
            invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
            athrow
        end local 3 // sun.nio.fs.WindowsException x
        start local 1 // long pLuid
         4: .line 80
      StackMap locals: long
      StackMap stack:
            lconst_0
            lstore 3 /* hToken */
        start local 3 // long hToken
         5: .line 81
            iconst_0
            istore 5 /* impersontating */
        start local 5 // boolean impersontating
         6: .line 82
            iconst_0
            istore 6 /* elevated */
        start local 6 // boolean elevated
         7: .line 84
            invokestatic sun.nio.fs.WindowsNativeDispatcher.GetCurrentThread:()J
         8: .line 85
            bipush 32
            iconst_0
         9: .line 84
            invokestatic sun.nio.fs.WindowsNativeDispatcher.OpenThreadToken:(JIZ)J
            lstore 3 /* hToken */
        10: .line 86
            lload 3 /* hToken */
            lconst_0
            lcmp
            ifne 16
            getstatic sun.nio.fs.WindowsSecurity.processTokenWithDuplicateAccess:J
            lconst_0
            lcmp
            ifeq 16
        11: .line 87
            getstatic sun.nio.fs.WindowsSecurity.processTokenWithDuplicateAccess:J
        12: .line 88
            bipush 36
        13: .line 87
            invokestatic sun.nio.fs.WindowsNativeDispatcher.DuplicateTokenEx:(JI)J
            lstore 3 /* hToken */
        14: .line 89
            lconst_0
            lload 3 /* hToken */
            invokestatic sun.nio.fs.WindowsNativeDispatcher.SetThreadToken:(JJ)V
        15: .line 90
            iconst_1
            istore 5 /* impersontating */
        16: .line 93
      StackMap locals: long int int
      StackMap stack:
            lload 3 /* hToken */
            lconst_0
            lcmp
            ifeq 21
        17: .line 94
            lload 3 /* hToken */
            lload 1 /* pLuid */
            iconst_2
            invokestatic sun.nio.fs.WindowsNativeDispatcher.AdjustTokenPrivileges:(JJI)V
        18: .line 95
            iconst_1
            istore 6 /* elevated */
        19: .line 97
            goto 21
      StackMap locals:
      StackMap stack: sun.nio.fs.WindowsException
        20: pop
        21: .line 101
      StackMap locals:
      StackMap stack:
            lload 3 /* hToken */
            lstore 7 /* token */
        start local 7 // long token
        22: .line 102
            iload 5 /* impersontating */
            istore 9 /* stopImpersontating */
        start local 9 // boolean stopImpersontating
        23: .line 103
            iload 6 /* elevated */
            istore 10 /* needToRevert */
        start local 10 // boolean needToRevert
        24: .line 105
            lload 1 /* pLuid */
            lload 7 /* token */
            iload 9 /* stopImpersontating */
            iload 10 /* needToRevert */
            invokedynamic drop(JJZZ)Lsun/nio/fs/WindowsSecurity$Privilege;
              Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
                Method arguments:
                  ()V
                  sun/nio/fs/WindowsSecurity.lambda$0(JJZZ)V (6)
                  ()V
            areturn
        end local 10 // boolean needToRevert
        end local 9 // boolean stopImpersontating
        end local 7 // long token
        end local 6 // boolean elevated
        end local 5 // boolean impersontating
        end local 3 // long hToken
        end local 1 // long pLuid
        end local 0 // java.lang.String priv
      LocalVariableTable:
        Start  End  Slot                Name  Signature
            0   25     0                priv  Ljava/lang/String;
            1    2     1               pLuid  J
            4   25     1               pLuid  J
            3    4     3                   x  Lsun/nio/fs/WindowsException;
            5   25     3              hToken  J
            6   25     5      impersontating  Z
            7   25     6            elevated  Z
           22   25     7               token  J
           23   25     9  stopImpersontating  Z
           24   25    10        needToRevert  Z
      Exception table:
        from    to  target  type
           0     1       2  Class sun.nio.fs.WindowsException
           7    19      20  Class sun.nio.fs.WindowsException
    MethodParameters:
      Name  Flags
      priv  

  static boolean checkAccessMask(long, int, int, int, int, int);
    descriptor: (JIIIII)Z
    flags: (0x0008) ACC_STATIC
    Code:
      stack=9, locals=12, args_size=6
        start local 0 // long securityInfo
        start local 2 // int accessMask
        start local 3 // int genericRead
        start local 4 // int genericWrite
        start local 5 // int genericExecute
        start local 6 // int genericAll
         0: .line 133
            bipush 8
            istore 7 /* privilegies */
        start local 7 // int privilegies
         1: .line 134
            invokestatic sun.nio.fs.WindowsNativeDispatcher.GetCurrentThread:()J
            iload 7 /* privilegies */
            iconst_0
            invokestatic sun.nio.fs.WindowsNativeDispatcher.OpenThreadToken:(JIZ)J
            lstore 8 /* hToken */
        start local 8 // long hToken
         2: .line 135
            lload 8 /* hToken */
            lconst_0
            lcmp
            ifne 6
            getstatic sun.nio.fs.WindowsSecurity.processTokenWithDuplicateAccess:J
            lconst_0
            lcmp
            ifeq 6
         3: .line 136
            getstatic sun.nio.fs.WindowsSecurity.processTokenWithDuplicateAccess:J
         4: .line 137
            iload 7 /* privilegies */
         5: .line 136
            invokestatic sun.nio.fs.WindowsNativeDispatcher.DuplicateTokenEx:(JI)J
            lstore 8 /* hToken */
         6: .line 139
      StackMap locals: int long
      StackMap stack:
            iconst_0
            istore 10 /* hasRight */
        start local 10 // boolean hasRight
         7: .line 140
            lload 8 /* hToken */
            lconst_0
            lcmp
            ifeq 16
         8: .line 142
            lload 8 /* hToken */
            lload 0 /* securityInfo */
            iload 2 /* accessMask */
         9: .line 143
            iload 3 /* genericRead */
            iload 4 /* genericWrite */
            iload 5 /* genericExecute */
            iload 6 /* genericAll */
        10: .line 142
            invokestatic sun.nio.fs.WindowsNativeDispatcher.AccessCheck:(JJIIIII)Z
            istore 10 /* hasRight */
        11: .line 144
            goto 15
      StackMap locals: long int int int int int int long int
      StackMap stack: java.lang.Throwable
        12: astore 11
        13: .line 145
            lload 8 /* hToken */
            invokestatic sun.nio.fs.WindowsNativeDispatcher.CloseHandle:(J)V
        14: .line 146
            aload 11
            athrow
        15: .line 145
      StackMap locals:
      StackMap stack:
            lload 8 /* hToken */
            invokestatic sun.nio.fs.WindowsNativeDispatcher.CloseHandle:(J)V
        16: .line 148
      StackMap locals:
      StackMap stack:
            iload 10 /* hasRight */
            ireturn
        end local 10 // boolean hasRight
        end local 8 // long hToken
        end local 7 // int privilegies
        end local 6 // int genericAll
        end local 5 // int genericExecute
        end local 4 // int genericWrite
        end local 3 // int genericRead
        end local 2 // int accessMask
        end local 0 // long securityInfo
      LocalVariableTable:
        Start  End  Slot            Name  Signature
            0   17     0    securityInfo  J
            0   17     2      accessMask  I
            0   17     3     genericRead  I
            0   17     4    genericWrite  I
            0   17     5  genericExecute  I
            0   17     6      genericAll  I
            1   17     7     privilegies  I
            2   17     8          hToken  J
            7   17    10        hasRight  Z
      Exception table:
        from    to  target  type
           8    12      12  any
    Exceptions:
      throws sun.nio.fs.WindowsException
    MethodParameters:
                Name  Flags
      securityInfo    
      accessMask      
      genericRead     
      genericWrite    
      genericExecute  
      genericAll      

  private static void lambda$0(long, long, boolean, boolean);
    descriptor: (JJZZ)V
    flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
    Code:
      stack=5, locals=9, args_size=4
         0: .line 107
            lload 2
            lconst_0
            lcmp
            ifeq 16
         1: .line 109
            iload 4
            ifeq 3
         2: .line 110
            lconst_0
            lconst_0
            invokestatic sun.nio.fs.WindowsNativeDispatcher.SetThreadToken:(JJ)V
            goto 11
         3: .line 111
      StackMap locals:
      StackMap stack:
            iload 5
            ifeq 11
         4: .line 112
            lload 2
            lload 0
            iconst_0
            invokestatic sun.nio.fs.WindowsNativeDispatcher.AdjustTokenPrivileges:(JJI)V
         5: .line 113
            goto 11
      StackMap locals:
      StackMap stack: sun.nio.fs.WindowsException
         6: astore 6 /* x */
        start local 6 // sun.nio.fs.WindowsException x
         7: .line 115
            new java.lang.AssertionError
            dup
            aload 6 /* x */
            invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
            athrow
        end local 6 // sun.nio.fs.WindowsException x
         8: .line 116
      StackMap locals:
      StackMap stack: java.lang.Throwable
            astore 7
         9: .line 117
            lload 2
            invokestatic sun.nio.fs.WindowsNativeDispatcher.CloseHandle:(J)V
        10: .line 118
            aload 7
            athrow
        11: .line 117
      StackMap locals:
      StackMap stack:
            lload 2
            invokestatic sun.nio.fs.WindowsNativeDispatcher.CloseHandle:(J)V
        12: .line 120
            goto 16
      StackMap locals:
      StackMap stack: java.lang.Throwable
        13: astore 8
        14: .line 121
            lload 0
            invokestatic sun.nio.fs.WindowsNativeDispatcher.LocalFree:(J)V
        15: .line 122
            aload 8
            athrow
        16: .line 121
      StackMap locals:
      StackMap stack:
            lload 0
            invokestatic sun.nio.fs.WindowsNativeDispatcher.LocalFree:(J)V
        17: .line 123
            return
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            7    8     6     x  Lsun/nio/fs/WindowsException;
      Exception table:
        from    to  target  type
           1     5       6  Class sun.nio.fs.WindowsException
           1     8       8  any
           0    13      13  any
}
SourceFile: "WindowsSecurity.java"
NestMembers:
  sun.nio.fs.WindowsSecurity$Privilege
InnerClasses:
  public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
  abstract Privilege = sun.nio.fs.WindowsSecurity$Privilege of sun.nio.fs.WindowsSecurity