public class org.apache.naming.ContextAccessController
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.apache.naming.ContextAccessController
super_class: java.lang.Object
{
private static final java.util.Hashtable<java.lang.Object, java.lang.Object> readOnlyContexts;
descriptor: Ljava/util/Hashtable;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
Signature: Ljava/util/Hashtable<Ljava/lang/Object;Ljava/lang/Object;>;
private static final java.util.Hashtable<java.lang.Object, java.lang.Object> securityTokens;
descriptor: Ljava/util/Hashtable;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
Signature: Ljava/util/Hashtable<Ljava/lang/Object;Ljava/lang/Object;>;
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: new java.util.Hashtable
dup
invokespecial java.util.Hashtable.<init>:()V
putstatic org.apache.naming.ContextAccessController.readOnlyContexts:Ljava/util/Hashtable;
1: new java.util.Hashtable
dup
invokespecial java.util.Hashtable.<init>:()V
putstatic org.apache.naming.ContextAccessController.securityTokens:Ljava/util/Hashtable;
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
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 Lorg/apache/naming/ContextAccessController;
public static void setSecurityToken(java.lang.Object, java.lang.Object);
descriptor: (Ljava/lang/Object;Ljava/lang/Object;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=3, args_size=2
start local 0 start local 1 0: invokestatic java.lang.System.getSecurityManager:()Ljava/lang/SecurityManager;
astore 2
start local 2 1: aload 2
ifnull 7
2: aload 2
new java.lang.RuntimePermission
dup
3: new java.lang.StringBuilder
dup
ldc Lorg/apache/naming/ContextAccessController;
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
4: ldc ".setSecurityToken"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
5: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.RuntimePermission.<init>:(Ljava/lang/String;)V
6: invokevirtual java.lang.SecurityManager.checkPermission:(Ljava/security/Permission;)V
7: StackMap locals: java.lang.SecurityManager
StackMap stack:
getstatic org.apache.naming.ContextAccessController.securityTokens:Ljava/util/Hashtable;
aload 0
invokevirtual java.util.Hashtable.containsKey:(Ljava/lang/Object;)Z
ifne 9
aload 1
ifnull 9
8: getstatic org.apache.naming.ContextAccessController.securityTokens:Ljava/util/Hashtable;
aload 0
aload 1
invokevirtual java.util.Hashtable.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
9: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 name Ljava/lang/Object;
0 10 1 token Ljava/lang/Object;
1 10 2 sm Ljava/lang/SecurityManager;
MethodParameters:
Name Flags
name
token
public static void unsetSecurityToken(java.lang.Object, java.lang.Object);
descriptor: (Ljava/lang/Object;Ljava/lang/Object;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokestatic org.apache.naming.ContextAccessController.checkSecurityToken:(Ljava/lang/Object;Ljava/lang/Object;)Z
ifeq 2
1: getstatic org.apache.naming.ContextAccessController.securityTokens:Ljava/util/Hashtable;
aload 0
invokevirtual java.util.Hashtable.remove:(Ljava/lang/Object;)Ljava/lang/Object;
pop
2: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 name Ljava/lang/Object;
0 3 1 token Ljava/lang/Object;
MethodParameters:
Name Flags
name
token
public static boolean checkSecurityToken(java.lang.Object, java.lang.Object);
descriptor: (Ljava/lang/Object;Ljava/lang/Object;)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: getstatic org.apache.naming.ContextAccessController.securityTokens:Ljava/util/Hashtable;
aload 0
invokevirtual java.util.Hashtable.get:(Ljava/lang/Object;)Ljava/lang/Object;
astore 2
start local 2 1: aload 2
ifnull 2
aload 2
aload 1
invokevirtual java.lang.Object.equals:(Ljava/lang/Object;)Z
ifne 2
iconst_0
ireturn
StackMap locals: java.lang.Object
StackMap stack:
2: iconst_1
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 name Ljava/lang/Object;
0 3 1 token Ljava/lang/Object;
1 3 2 refToken Ljava/lang/Object;
MethodParameters:
Name Flags
name
token
public static void setWritable(java.lang.Object, java.lang.Object);
descriptor: (Ljava/lang/Object;Ljava/lang/Object;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokestatic org.apache.naming.ContextAccessController.checkSecurityToken:(Ljava/lang/Object;Ljava/lang/Object;)Z
ifeq 2
1: getstatic org.apache.naming.ContextAccessController.readOnlyContexts:Ljava/util/Hashtable;
aload 0
invokevirtual java.util.Hashtable.remove:(Ljava/lang/Object;)Ljava/lang/Object;
pop
2: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 name Ljava/lang/Object;
0 3 1 token Ljava/lang/Object;
MethodParameters:
Name Flags
name
token
public static void setReadOnly(java.lang.Object);
descriptor: (Ljava/lang/Object;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: getstatic org.apache.naming.ContextAccessController.readOnlyContexts:Ljava/util/Hashtable;
aload 0
aload 0
invokevirtual java.util.Hashtable.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 name Ljava/lang/Object;
MethodParameters:
Name Flags
name
public static boolean isWritable(java.lang.Object);
descriptor: (Ljava/lang/Object;)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: getstatic org.apache.naming.ContextAccessController.readOnlyContexts:Ljava/util/Hashtable;
aload 0
invokevirtual java.util.Hashtable.containsKey:(Ljava/lang/Object;)Z
ifeq 1
iconst_0
goto 2
StackMap locals:
StackMap stack:
1: iconst_1
StackMap locals:
StackMap stack: int
2: ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 name Ljava/lang/Object;
MethodParameters:
Name Flags
name
}
SourceFile: "ContextAccessController.java"