class com.sun.security.auth.PolicyPermissions extends java.security.PermissionCollection
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: com.sun.security.auth.PolicyPermissions
super_class: java.security.PermissionCollection
{
private static final long serialVersionUID;
descriptor: J
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: -1954188373270545523
private java.security.CodeSource codesource;
descriptor: Ljava/security/CodeSource;
flags: (0x0002) ACC_PRIVATE
private java.security.Permissions perms;
descriptor: Ljava/security/Permissions;
flags: (0x0002) ACC_PRIVATE
private com.sun.security.auth.PolicyFile policy;
descriptor: Lcom/sun/security/auth/PolicyFile;
flags: (0x0002) ACC_PRIVATE
private boolean notInit;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private java.util.Vector<java.security.Permission> additionalPerms;
descriptor: Ljava/util/Vector;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/util/Vector<Ljava/security/Permission;>;
void <init>(com.sun.security.auth.PolicyFile, java.security.CodeSource);
descriptor: (Lcom/sun/security/auth/PolicyFile;Ljava/security/CodeSource;)V
flags: (0x0000)
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.security.PermissionCollection.<init>:()V
1: aload 0
aload 2
putfield com.sun.security.auth.PolicyPermissions.codesource:Ljava/security/CodeSource;
2: aload 0
aload 1
putfield com.sun.security.auth.PolicyPermissions.policy:Lcom/sun/security/auth/PolicyFile;
3: aload 0
aconst_null
putfield com.sun.security.auth.PolicyPermissions.perms:Ljava/security/Permissions;
4: aload 0
iconst_1
putfield com.sun.security.auth.PolicyPermissions.notInit:Z
5: aload 0
aconst_null
putfield com.sun.security.auth.PolicyPermissions.additionalPerms:Ljava/util/Vector;
6: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lcom/sun/security/auth/PolicyPermissions;
0 7 1 policy Lcom/sun/security/auth/PolicyFile;
0 7 2 codesource Ljava/security/CodeSource;
MethodParameters:
Name Flags
policy
codesource
public void add(java.security.Permission);
descriptor: (Ljava/security/Permission;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual com.sun.security.auth.PolicyPermissions.isReadOnly:()Z
ifeq 6
1: new java.lang.SecurityException
dup
2: getstatic com.sun.security.auth.PolicyFile.rb:Ljava/util/ResourceBundle;
3: ldc "attempt.to.add.a.Permission.to.a.readonly.PermissionCollection"
4: invokevirtual java.util.ResourceBundle.getString:(Ljava/lang/String;)Ljava/lang/String;
5: invokespecial java.lang.SecurityException.<init>:(Ljava/lang/String;)V
athrow
6: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.security.auth.PolicyPermissions.perms:Ljava/security/Permissions;
ifnonnull 11
7: aload 0
getfield com.sun.security.auth.PolicyPermissions.additionalPerms:Ljava/util/Vector;
ifnonnull 9
8: aload 0
new java.util.Vector
dup
invokespecial java.util.Vector.<init>:()V
putfield com.sun.security.auth.PolicyPermissions.additionalPerms:Ljava/util/Vector;
9: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.security.auth.PolicyPermissions.additionalPerms:Ljava/util/Vector;
aload 1
invokevirtual java.util.Vector.add:(Ljava/lang/Object;)Z
pop
10: goto 12
11: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.security.auth.PolicyPermissions.perms:Ljava/security/Permissions;
aload 1
invokevirtual java.security.Permissions.add:(Ljava/security/Permission;)V
12: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lcom/sun/security/auth/PolicyPermissions;
0 13 1 permission Ljava/security/Permission;
MethodParameters:
Name Flags
permission
private synchronized void init();
descriptor: ()V
flags: (0x0022) ACC_PRIVATE, ACC_SYNCHRONIZED
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
getfield com.sun.security.auth.PolicyPermissions.notInit:Z
ifeq 11
1: aload 0
getfield com.sun.security.auth.PolicyPermissions.perms:Ljava/security/Permissions;
ifnonnull 3
2: aload 0
new java.security.Permissions
dup
invokespecial java.security.Permissions.<init>:()V
putfield com.sun.security.auth.PolicyPermissions.perms:Ljava/security/Permissions;
3: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.security.auth.PolicyPermissions.additionalPerms:Ljava/util/Vector;
ifnull 9
4: aload 0
getfield com.sun.security.auth.PolicyPermissions.additionalPerms:Ljava/util/Vector;
invokevirtual java.util.Vector.elements:()Ljava/util/Enumeration;
astore 1
start local 1 5: goto 7
6: StackMap locals: java.util.Enumeration
StackMap stack:
aload 0
getfield com.sun.security.auth.PolicyPermissions.perms:Ljava/security/Permissions;
aload 1
invokeinterface java.util.Enumeration.nextElement:()Ljava/lang/Object;
checkcast java.security.Permission
invokevirtual java.security.Permissions.add:(Ljava/security/Permission;)V
7: StackMap locals:
StackMap stack:
aload 1
invokeinterface java.util.Enumeration.hasMoreElements:()Z
ifne 6
8: aload 0
aconst_null
putfield com.sun.security.auth.PolicyPermissions.additionalPerms:Ljava/util/Vector;
end local 1 9: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.security.auth.PolicyPermissions.policy:Lcom/sun/security/auth/PolicyFile;
aload 0
getfield com.sun.security.auth.PolicyPermissions.perms:Ljava/security/Permissions;
aload 0
getfield com.sun.security.auth.PolicyPermissions.codesource:Ljava/security/CodeSource;
invokevirtual com.sun.security.auth.PolicyFile.getPermissions:(Ljava/security/Permissions;Ljava/security/CodeSource;)Ljava/security/Permissions;
pop
10: aload 0
iconst_0
putfield com.sun.security.auth.PolicyPermissions.notInit:Z
11: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lcom/sun/security/auth/PolicyPermissions;
5 9 1 e Ljava/util/Enumeration<Ljava/security/Permission;>;
public boolean implies(java.security.Permission);
descriptor: (Ljava/security/Permission;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield com.sun.security.auth.PolicyPermissions.notInit:Z
ifeq 2
1: aload 0
invokevirtual com.sun.security.auth.PolicyPermissions.init:()V
2: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.security.auth.PolicyPermissions.perms:Ljava/security/Permissions;
aload 1
invokevirtual java.security.Permissions.implies:(Ljava/security/Permission;)Z
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/sun/security/auth/PolicyPermissions;
0 3 1 permission Ljava/security/Permission;
MethodParameters:
Name Flags
permission
public java.util.Enumeration<java.security.Permission> elements();
descriptor: ()Ljava/util/Enumeration;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.sun.security.auth.PolicyPermissions.notInit:Z
ifeq 2
1: aload 0
invokevirtual com.sun.security.auth.PolicyPermissions.init:()V
2: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.security.auth.PolicyPermissions.perms:Ljava/security/Permissions;
invokevirtual java.security.Permissions.elements:()Ljava/util/Enumeration;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/sun/security/auth/PolicyPermissions;
Signature: ()Ljava/util/Enumeration<Ljava/security/Permission;>;
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.sun.security.auth.PolicyPermissions.notInit:Z
ifeq 2
1: aload 0
invokevirtual com.sun.security.auth.PolicyPermissions.init:()V
2: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.security.auth.PolicyPermissions.perms:Ljava/security/Permissions;
invokevirtual java.security.Permissions.toString:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/sun/security/auth/PolicyPermissions;
}
SourceFile: "PolicyFile.java"