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: iconst_2
invokestatic sun.nio.fs.WindowsSecurity.openProcessToken:(I)J
1: putstatic sun.nio.fs.WindowsSecurity.processTokenWithDuplicateAccess:J
2: bipush 8
invokestatic sun.nio.fs.WindowsSecurity.openProcessToken:(I)J
3: putstatic sun.nio.fs.WindowsSecurity.processTokenWithQueryAccess:J
4: 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 0: aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 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 0: invokestatic sun.nio.fs.WindowsNativeDispatcher.GetCurrentProcess:()J
iload 0
invokestatic sun.nio.fs.WindowsNativeDispatcher.OpenProcessToken:(JI)J
1: lreturn
2: StackMap locals:
StackMap stack: sun.nio.fs.WindowsException
pop
3: lconst_0
lreturn
end local 0 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=8, locals=11, args_size=1
start local 0 0: aload 0
invokestatic sun.nio.fs.WindowsNativeDispatcher.LookupPrivilegeValue:(Ljava/lang/String;)J
lstore 1
start local 1 1: goto 4
end local 1 StackMap locals:
StackMap stack: sun.nio.fs.WindowsException
2: astore 3
start local 3 3: new java.lang.AssertionError
dup
aload 3
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
end local 3 start local 1 4: StackMap locals: long
StackMap stack:
lconst_0
lstore 3
start local 3 5: iconst_0
istore 5
start local 5 6: iconst_0
istore 6
start local 6 7: invokestatic sun.nio.fs.WindowsNativeDispatcher.GetCurrentThread:()J
8: bipush 32
iconst_0
9: invokestatic sun.nio.fs.WindowsNativeDispatcher.OpenThreadToken:(JIZ)J
lstore 3
10: lload 3
lconst_0
lcmp
ifne 16
getstatic sun.nio.fs.WindowsSecurity.processTokenWithDuplicateAccess:J
lconst_0
lcmp
ifeq 16
11: getstatic sun.nio.fs.WindowsSecurity.processTokenWithDuplicateAccess:J
12: bipush 36
13: invokestatic sun.nio.fs.WindowsNativeDispatcher.DuplicateTokenEx:(JI)J
lstore 3
14: lconst_0
lload 3
invokestatic sun.nio.fs.WindowsNativeDispatcher.SetThreadToken:(JJ)V
15: iconst_1
istore 5
16: StackMap locals: long int int
StackMap stack:
lload 3
lconst_0
lcmp
ifeq 21
17: lload 3
lload 1
iconst_2
invokestatic sun.nio.fs.WindowsNativeDispatcher.AdjustTokenPrivileges:(JJI)V
18: iconst_1
istore 6
19: goto 21
StackMap locals:
StackMap stack: sun.nio.fs.WindowsException
20: pop
21: StackMap locals:
StackMap stack:
lload 3
lstore 7
start local 7 22: iload 5
istore 9
start local 9 23: iload 6
istore 10
start local 10 24: new sun.nio.fs.WindowsSecurity$1
dup
lload 7
iload 9
iload 10
lload 1
invokespecial sun.nio.fs.WindowsSecurity$1.<init>:(JZZJ)V
areturn
end local 10 end local 9 end local 7 end local 6 end local 5 end local 3 end local 1 end local 0 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 start local 2 start local 3 start local 4 start local 5 start local 6 0: bipush 8
istore 7
start local 7 1: invokestatic sun.nio.fs.WindowsNativeDispatcher.GetCurrentThread:()J
iload 7
iconst_0
invokestatic sun.nio.fs.WindowsNativeDispatcher.OpenThreadToken:(JIZ)J
lstore 8
start local 8 2: lload 8
lconst_0
lcmp
ifne 6
getstatic sun.nio.fs.WindowsSecurity.processTokenWithDuplicateAccess:J
lconst_0
lcmp
ifeq 6
3: getstatic sun.nio.fs.WindowsSecurity.processTokenWithDuplicateAccess:J
4: iload 7
5: invokestatic sun.nio.fs.WindowsNativeDispatcher.DuplicateTokenEx:(JI)J
lstore 8
6: StackMap locals: int long
StackMap stack:
iconst_0
istore 10
start local 10 7: lload 8
lconst_0
lcmp
ifeq 16
8: lload 8
lload 0
iload 2
9: iload 3
iload 4
iload 5
iload 6
10: invokestatic sun.nio.fs.WindowsNativeDispatcher.AccessCheck:(JJIIIII)Z
istore 10
11: goto 15
StackMap locals: long int int int int int int long int
StackMap stack: java.lang.Throwable
12: astore 11
13: lload 8
invokestatic sun.nio.fs.WindowsNativeDispatcher.CloseHandle:(J)V
14: aload 11
athrow
15: StackMap locals:
StackMap stack:
lload 8
invokestatic sun.nio.fs.WindowsNativeDispatcher.CloseHandle:(J)V
16: StackMap locals:
StackMap stack:
iload 10
ireturn
end local 10 end local 8 end local 7 end local 6 end local 5 end local 4 end local 3 end local 2 end local 0 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
}
SourceFile: "WindowsSecurity.java"
NestMembers:
sun.nio.fs.WindowsSecurity$1 sun.nio.fs.WindowsSecurity$Privilege
InnerClasses:
sun.nio.fs.WindowsSecurity$1
abstract Privilege = sun.nio.fs.WindowsSecurity$Privilege of sun.nio.fs.WindowsSecurity