public final class java.security.Permissions extends java.security.PermissionCollection implements java.io.Serializable
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: java.security.Permissions
super_class: java.security.PermissionCollection
{
private transient java.util.concurrent.ConcurrentHashMap<java.lang.Class<?>, java.security.PermissionCollection> permsMap;
descriptor: Ljava/util/concurrent/ConcurrentHashMap;
flags: (0x0082) ACC_PRIVATE, ACC_TRANSIENT
Signature: Ljava/util/concurrent/ConcurrentHashMap<Ljava/lang/Class<*>;Ljava/security/PermissionCollection;>;
private transient boolean hasUnresolved;
descriptor: Z
flags: (0x0082) ACC_PRIVATE, ACC_TRANSIENT
java.security.PermissionCollection allPermission;
descriptor: Ljava/security/PermissionCollection;
flags: (0x0000)
private static final long serialVersionUID;
descriptor: J
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 4858622370623524688
private static final java.io.ObjectStreamField[] serialPersistentFields;
descriptor: [Ljava/io/ObjectStreamField;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=7, locals=0, args_size=0
0: iconst_2
anewarray java.io.ObjectStreamField
dup
iconst_0
1: new java.io.ObjectStreamField
dup
ldc "perms"
ldc Ljava/util/Hashtable;
invokespecial java.io.ObjectStreamField.<init>:(Ljava/lang/String;Ljava/lang/Class;)V
aastore
dup
iconst_1
2: new java.io.ObjectStreamField
dup
ldc "allPermission"
ldc Ljava/security/PermissionCollection;
invokespecial java.io.ObjectStreamField.<init>:(Ljava/lang/String;Ljava/lang/Class;)V
aastore
3: putstatic java.security.Permissions.serialPersistentFields:[Ljava/io/ObjectStreamField;
4: return
LocalVariableTable:
Start End Slot Name Signature
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.security.PermissionCollection.<init>:()V
1: aload 0
iconst_0
putfield java.security.Permissions.hasUnresolved:Z
2: aload 0
new java.util.concurrent.ConcurrentHashMap
dup
bipush 11
invokespecial java.util.concurrent.ConcurrentHashMap.<init>:(I)V
putfield java.security.Permissions.permsMap:Ljava/util/concurrent/ConcurrentHashMap;
3: aload 0
aconst_null
putfield java.security.Permissions.allPermission:Ljava/security/PermissionCollection;
4: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljava/security/Permissions;
public void add(java.security.Permission);
descriptor: (Ljava/security/Permission;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual java.security.Permissions.isReadOnly:()Z
ifeq 4
1: new java.lang.SecurityException
dup
2: ldc "attempt to add a Permission to a readonly Permissions object"
3: invokespecial java.lang.SecurityException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
aload 0
aload 1
iconst_1
invokevirtual java.security.Permissions.getPermissionCollection:(Ljava/security/Permission;Z)Ljava/security/PermissionCollection;
astore 2
start local 2 5: aload 2
aload 1
invokevirtual java.security.PermissionCollection.add:(Ljava/security/Permission;)V
6: aload 1
instanceof java.security.AllPermission
ifeq 8
7: aload 0
aload 2
putfield java.security.Permissions.allPermission:Ljava/security/PermissionCollection;
8: StackMap locals: java.security.PermissionCollection
StackMap stack:
aload 1
instanceof java.security.UnresolvedPermission
ifeq 10
9: aload 0
iconst_1
putfield java.security.Permissions.hasUnresolved:Z
10: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Ljava/security/Permissions;
0 11 1 permission Ljava/security/Permission;
5 11 2 pc Ljava/security/PermissionCollection;
MethodParameters:
Name Flags
permission
public boolean implies(java.security.Permission);
descriptor: (Ljava/security/Permission;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield java.security.Permissions.allPermission:Ljava/security/PermissionCollection;
ifnull 2
1: iconst_1
ireturn
2: StackMap locals:
StackMap stack:
aload 0
aload 1
3: iconst_0
4: invokevirtual java.security.Permissions.getPermissionCollection:(Ljava/security/Permission;Z)Ljava/security/PermissionCollection;
astore 2
start local 2 5: aload 2
ifnull 7
6: aload 2
aload 1
invokevirtual java.security.PermissionCollection.implies:(Ljava/security/Permission;)Z
ireturn
7: StackMap locals: java.security.PermissionCollection
StackMap stack:
iconst_0
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Ljava/security/Permissions;
0 8 1 permission Ljava/security/Permission;
5 8 2 pc Ljava/security/PermissionCollection;
MethodParameters:
Name Flags
permission
public java.util.Enumeration<java.security.Permission> elements();
descriptor: ()Ljava/util/Enumeration;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new java.security.PermissionsEnumerator
dup
aload 0
getfield java.security.Permissions.permsMap:Ljava/util/concurrent/ConcurrentHashMap;
invokevirtual java.util.concurrent.ConcurrentHashMap.values:()Ljava/util/Collection;
invokeinterface java.util.Collection.iterator:()Ljava/util/Iterator;
invokespecial java.security.PermissionsEnumerator.<init>:(Ljava/util/Iterator;)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/security/Permissions;
Signature: ()Ljava/util/Enumeration<Ljava/security/Permission;>;
private java.security.PermissionCollection getPermissionCollection(java.security.Permission, boolean);
descriptor: (Ljava/security/Permission;Z)Ljava/security/PermissionCollection;
flags: (0x0002) ACC_PRIVATE
Code:
stack=7, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 1
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
astore 3
start local 3 1: aload 0
getfield java.security.Permissions.hasUnresolved:Z
ifne 3
iload 2
ifne 3
2: aload 0
getfield java.security.Permissions.permsMap:Ljava/util/concurrent/ConcurrentHashMap;
aload 3
invokevirtual java.util.concurrent.ConcurrentHashMap.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.security.PermissionCollection
areturn
3: StackMap locals: java.lang.Class
StackMap stack:
aload 0
getfield java.security.Permissions.permsMap:Ljava/util/concurrent/ConcurrentHashMap;
aload 3
4: new java.security.Permissions$1
dup
aload 0
aload 1
iload 2
invokespecial java.security.Permissions$1.<init>:(Ljava/security/Permissions;Ljava/security/Permission;Z)V
5: invokevirtual java.util.concurrent.ConcurrentHashMap.computeIfAbsent:(Ljava/lang/Object;Ljava/util/function/Function;)Ljava/lang/Object;
checkcast java.security.PermissionCollection
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljava/security/Permissions;
0 6 1 p Ljava/security/Permission;
0 6 2 createEmpty Z
1 6 3 c Ljava/lang/Class<*>;
MethodParameters:
Name Flags
p
createEmpty
private java.security.PermissionCollection getUnresolvedPermissions(java.security.Permission);
descriptor: (Ljava/security/Permission;)Ljava/security/PermissionCollection;
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=13, args_size=2
start local 0 start local 1 0: aload 0
getfield java.security.Permissions.permsMap:Ljava/util/concurrent/ConcurrentHashMap;
ldc Ljava/security/UnresolvedPermission;
invokevirtual java.util.concurrent.ConcurrentHashMap.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.security.UnresolvedPermissionCollection
1: astore 2
start local 2 2: aload 2
ifnonnull 4
3: aconst_null
areturn
4: StackMap locals: java.security.UnresolvedPermissionCollection
StackMap stack:
aload 2
aload 1
invokevirtual java.security.UnresolvedPermissionCollection.getUnresolvedPermissions:(Ljava/security/Permission;)Ljava/util/List;
5: astore 3
start local 3 6: aload 3
ifnonnull 8
7: aconst_null
areturn
8: StackMap locals: java.util.List
StackMap stack:
aconst_null
astore 4
start local 4 9: aload 1
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokevirtual java.lang.Class.getSigners:()[Ljava/lang/Object;
astore 5
start local 5 10: iconst_0
istore 6
start local 6 11: aload 5
ifnull 26
12: iconst_0
istore 7
start local 7 13: goto 17
14: StackMap locals: java.security.Permissions java.security.Permission java.security.UnresolvedPermissionCollection java.util.List java.security.cert.Certificate[] java.lang.Object[] int int
StackMap stack:
aload 5
iload 7
aaload
instanceof java.security.cert.Certificate
ifeq 16
15: iinc 6 1
16: StackMap locals:
StackMap stack:
iinc 7 1
StackMap locals:
StackMap stack:
17: iload 7
aload 5
arraylength
if_icmplt 14
end local 7 18: iload 6
anewarray java.security.cert.Certificate
astore 4
19: iconst_0
istore 6
20: iconst_0
istore 7
start local 7 21: goto 25
22: StackMap locals:
StackMap stack:
aload 5
iload 7
aaload
instanceof java.security.cert.Certificate
ifeq 24
23: aload 4
iload 6
iinc 6 1
aload 5
iload 7
aaload
checkcast java.security.cert.Certificate
aastore
24: StackMap locals:
StackMap stack:
iinc 7 1
StackMap locals:
StackMap stack:
25: iload 7
aload 5
arraylength
if_icmplt 22
end local 7 26: StackMap locals:
StackMap stack:
aconst_null
astore 7
start local 7 27: aload 3
dup
astore 8
monitorenter
28: aload 3
invokeinterface java.util.List.size:()I
istore 9
start local 9 29: iconst_0
istore 10
start local 10 30: goto 40
31: StackMap locals: java.security.Permissions java.security.Permission java.security.UnresolvedPermissionCollection java.util.List java.security.cert.Certificate[] java.lang.Object[] int java.security.PermissionCollection java.util.List int int
StackMap stack:
aload 3
iload 10
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast java.security.UnresolvedPermission
astore 11
start local 11 32: aload 11
aload 1
aload 4
invokevirtual java.security.UnresolvedPermission.resolve:(Ljava/security/Permission;[Ljava/security/cert/Certificate;)Ljava/security/Permission;
astore 12
start local 12 33: aload 12
ifnull 39
34: aload 7
ifnonnull 38
35: aload 1
invokevirtual java.security.Permission.newPermissionCollection:()Ljava/security/PermissionCollection;
astore 7
36: aload 7
ifnonnull 38
37: new java.security.PermissionsHash
dup
invokespecial java.security.PermissionsHash.<init>:()V
astore 7
38: StackMap locals: java.security.UnresolvedPermission java.security.Permission
StackMap stack:
aload 7
aload 12
invokevirtual java.security.PermissionCollection.add:(Ljava/security/Permission;)V
end local 12 end local 11 39: StackMap locals:
StackMap stack:
iinc 10 1
StackMap locals:
StackMap stack:
40: iload 10
iload 9
if_icmplt 31
end local 10 end local 9 41: aload 8
monitorexit
42: goto 45
StackMap locals: java.security.Permissions java.security.Permission java.security.UnresolvedPermissionCollection java.util.List java.security.cert.Certificate[] java.lang.Object[] int java.security.PermissionCollection java.util.List
StackMap stack: java.lang.Throwable
43: aload 8
monitorexit
44: athrow
45: StackMap locals:
StackMap stack:
aload 7
areturn
end local 7 end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 46 0 this Ljava/security/Permissions;
0 46 1 p Ljava/security/Permission;
2 46 2 uc Ljava/security/UnresolvedPermissionCollection;
6 46 3 unresolvedPerms Ljava/util/List<Ljava/security/UnresolvedPermission;>;
9 46 4 certs [Ljava/security/cert/Certificate;
10 46 5 signers [Ljava/lang/Object;
11 46 6 n I
13 18 7 j I
21 26 7 j I
27 46 7 pc Ljava/security/PermissionCollection;
29 41 9 len I
30 41 10 i I
32 39 11 up Ljava/security/UnresolvedPermission;
33 39 12 perm Ljava/security/Permission;
Exception table:
from to target type
28 42 43 any
43 44 43 any
MethodParameters:
Name Flags
p
private void writeObject(java.io.ObjectOutputStream);
descriptor: (Ljava/io/ObjectOutputStream;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=4, args_size=2
start local 0 start local 1 0: new java.util.Hashtable
dup
aload 0
getfield java.security.Permissions.permsMap:Ljava/util/concurrent/ConcurrentHashMap;
invokevirtual java.util.concurrent.ConcurrentHashMap.size:()I
iconst_2
imul
invokespecial java.util.Hashtable.<init>:(I)V
1: astore 2
start local 2 2: aload 2
aload 0
getfield java.security.Permissions.permsMap:Ljava/util/concurrent/ConcurrentHashMap;
invokevirtual java.util.Hashtable.putAll:(Ljava/util/Map;)V
3: aload 1
invokevirtual java.io.ObjectOutputStream.putFields:()Ljava/io/ObjectOutputStream$PutField;
astore 3
start local 3 4: aload 3
ldc "allPermission"
aload 0
getfield java.security.Permissions.allPermission:Ljava/security/PermissionCollection;
invokevirtual java.io.ObjectOutputStream$PutField.put:(Ljava/lang/String;Ljava/lang/Object;)V
5: aload 3
ldc "perms"
aload 2
invokevirtual java.io.ObjectOutputStream$PutField.put:(Ljava/lang/String;Ljava/lang/Object;)V
6: aload 1
invokevirtual java.io.ObjectOutputStream.writeFields:()V
7: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Ljava/security/Permissions;
0 8 1 out Ljava/io/ObjectOutputStream;
2 8 2 perms Ljava/util/Hashtable<Ljava/lang/Class<*>;Ljava/security/PermissionCollection;>;
4 8 3 pfields Ljava/io/ObjectOutputStream$PutField;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
out
private void readObject(java.io.ObjectInputStream);
descriptor: (Ljava/io/ObjectInputStream;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=5, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual java.io.ObjectInputStream.readFields:()Ljava/io/ObjectInputStream$GetField;
astore 2
start local 2 1: aload 0
aload 2
ldc "allPermission"
aconst_null
invokevirtual java.io.ObjectInputStream$GetField.get:(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.security.PermissionCollection
putfield java.security.Permissions.allPermission:Ljava/security/PermissionCollection;
2: aload 2
ldc "perms"
aconst_null
invokevirtual java.io.ObjectInputStream$GetField.get:(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.util.Hashtable
3: astore 3
start local 3 4: aload 0
new java.util.concurrent.ConcurrentHashMap
dup
aload 3
invokevirtual java.util.Hashtable.size:()I
iconst_2
imul
invokespecial java.util.concurrent.ConcurrentHashMap.<init>:(I)V
putfield java.security.Permissions.permsMap:Ljava/util/concurrent/ConcurrentHashMap;
5: aload 0
getfield java.security.Permissions.permsMap:Ljava/util/concurrent/ConcurrentHashMap;
aload 3
invokevirtual java.util.concurrent.ConcurrentHashMap.putAll:(Ljava/util/Map;)V
6: aload 0
getfield java.security.Permissions.permsMap:Ljava/util/concurrent/ConcurrentHashMap;
ldc Ljava/security/UnresolvedPermission;
invokevirtual java.util.concurrent.ConcurrentHashMap.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.security.UnresolvedPermissionCollection
7: astore 4
start local 4 8: aload 0
aload 4
ifnull 9
aload 4
invokevirtual java.security.UnresolvedPermissionCollection.elements:()Ljava/util/Enumeration;
invokeinterface java.util.Enumeration.hasMoreElements:()Z
ifeq 9
iconst_1
goto 10
StackMap locals: java.security.Permissions java.io.ObjectInputStream java.io.ObjectInputStream$GetField java.util.Hashtable java.security.UnresolvedPermissionCollection
StackMap stack: java.security.Permissions
9: iconst_0
StackMap locals: java.security.Permissions java.io.ObjectInputStream java.io.ObjectInputStream$GetField java.util.Hashtable java.security.UnresolvedPermissionCollection
StackMap stack: java.security.Permissions int
10: putfield java.security.Permissions.hasUnresolved:Z
11: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Ljava/security/Permissions;
0 12 1 in Ljava/io/ObjectInputStream;
1 12 2 gfields Ljava/io/ObjectInputStream$GetField;
4 12 3 perms Ljava/util/Hashtable<Ljava/lang/Class<*>;Ljava/security/PermissionCollection;>;
8 12 4 uc Ljava/security/UnresolvedPermissionCollection;
Exceptions:
throws java.io.IOException, java.lang.ClassNotFoundException
MethodParameters:
Name Flags
in
}
SourceFile: "Permissions.java"
NestMembers:
java.security.Permissions$1
InnerClasses:
public abstract GetField = java.io.ObjectInputStream$GetField of java.io.ObjectInputStream
public abstract PutField = java.io.ObjectOutputStream$PutField of java.io.ObjectOutputStream
java.security.Permissions$1