class sun.security.tools.policytool.AddEntryDoneButtonListener implements java.awt.event.ActionListener
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: sun.security.tools.policytool.AddEntryDoneButtonListener
super_class: java.lang.Object
{
private sun.security.tools.policytool.PolicyTool tool;
descriptor: Lsun/security/tools/policytool/PolicyTool;
flags: (0x0002) ACC_PRIVATE
private sun.security.tools.policytool.ToolWindow tw;
descriptor: Lsun/security/tools/policytool/ToolWindow;
flags: (0x0002) ACC_PRIVATE
private sun.security.tools.policytool.ToolDialog td;
descriptor: Lsun/security/tools/policytool/ToolDialog;
flags: (0x0002) ACC_PRIVATE
private boolean edit;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
void <init>(sun.security.tools.policytool.PolicyTool, sun.security.tools.policytool.ToolWindow, sun.security.tools.policytool.ToolDialog, boolean);
descriptor: (Lsun/security/tools/policytool/PolicyTool;Lsun/security/tools/policytool/ToolWindow;Lsun/security/tools/policytool/ToolDialog;Z)V
flags: (0x0000)
Code:
stack=2, locals=5, args_size=5
start local 0 // sun.security.tools.policytool.AddEntryDoneButtonListener this
start local 1 // sun.security.tools.policytool.PolicyTool tool
start local 2 // sun.security.tools.policytool.ToolWindow tw
start local 3 // sun.security.tools.policytool.ToolDialog td
start local 4 // boolean edit
0: .line 2946
aload 0 /* this */
invokespecial java.lang.Object.<init>:()V
1: .line 2948
aload 0 /* this */
aload 1 /* tool */
putfield sun.security.tools.policytool.AddEntryDoneButtonListener.tool:Lsun/security/tools/policytool/PolicyTool;
2: .line 2949
aload 0 /* this */
aload 2 /* tw */
putfield sun.security.tools.policytool.AddEntryDoneButtonListener.tw:Lsun/security/tools/policytool/ToolWindow;
3: .line 2950
aload 0 /* this */
aload 3 /* td */
putfield sun.security.tools.policytool.AddEntryDoneButtonListener.td:Lsun/security/tools/policytool/ToolDialog;
4: .line 2951
aload 0 /* this */
iload 4 /* edit */
putfield sun.security.tools.policytool.AddEntryDoneButtonListener.edit:Z
5: .line 2952
return
end local 4 // boolean edit
end local 3 // sun.security.tools.policytool.ToolDialog td
end local 2 // sun.security.tools.policytool.ToolWindow tw
end local 1 // sun.security.tools.policytool.PolicyTool tool
end local 0 // sun.security.tools.policytool.AddEntryDoneButtonListener this
LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lsun/security/tools/policytool/AddEntryDoneButtonListener;
0 6 1 tool Lsun/security/tools/policytool/PolicyTool;
0 6 2 tw Lsun/security/tools/policytool/ToolWindow;
0 6 3 td Lsun/security/tools/policytool/ToolDialog;
0 6 4 edit Z
MethodParameters:
Name Flags
tool
tw
td
edit
public void actionPerformed(java.awt.event.ActionEvent);
descriptor: (Ljava/awt/event/ActionEvent;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=9, args_size=2
start local 0 // sun.security.tools.policytool.AddEntryDoneButtonListener this
start local 1 // java.awt.event.ActionEvent e
0: .line 2958
aload 0 /* this */
getfield sun.security.tools.policytool.AddEntryDoneButtonListener.td:Lsun/security/tools/policytool/ToolDialog;
invokevirtual sun.security.tools.policytool.ToolDialog.getPolicyEntryFromDialog:()Lsun/security/tools/policytool/PolicyEntry;
astore 2 /* newEntry */
start local 2 // sun.security.tools.policytool.PolicyEntry newEntry
1: .line 2959
aload 2 /* newEntry */
invokevirtual sun.security.tools.policytool.PolicyEntry.getGrantEntry:()Lsun/security/provider/PolicyParser$GrantEntry;
astore 3 /* newGe */
start local 3 // sun.security.provider.PolicyParser$GrantEntry newGe
2: .line 2962
aload 3 /* newGe */
getfield sun.security.provider.PolicyParser$GrantEntry.signedBy:Ljava/lang/String;
ifnull 18
3: .line 2963
aload 0 /* this */
getfield sun.security.tools.policytool.AddEntryDoneButtonListener.tool:Lsun/security/tools/policytool/PolicyTool;
aload 3 /* newGe */
getfield sun.security.provider.PolicyParser$GrantEntry.signedBy:Ljava/lang/String;
invokevirtual sun.security.tools.policytool.PolicyTool.parseSigners:(Ljava/lang/String;)[Ljava/lang/String;
astore 4 /* signers */
start local 4 // java.lang.String[] signers
4: .line 2964
iconst_0
istore 5 /* i */
start local 5 // int i
5: goto 17
6: .line 2965
StackMap locals: sun.security.tools.policytool.AddEntryDoneButtonListener java.awt.event.ActionEvent sun.security.tools.policytool.PolicyEntry sun.security.provider.PolicyParser$GrantEntry java.lang.String[] int
StackMap stack:
aload 0 /* this */
getfield sun.security.tools.policytool.AddEntryDoneButtonListener.tool:Lsun/security/tools/policytool/PolicyTool;
aload 4 /* signers */
iload 5 /* i */
aaload
invokevirtual sun.security.tools.policytool.PolicyTool.getPublicKeyAlias:(Ljava/lang/String;)Ljava/security/PublicKey;
astore 6 /* pubKey */
start local 6 // java.security.PublicKey pubKey
7: .line 2966
aload 6 /* pubKey */
ifnonnull 16
8: .line 2967
new java.text.MessageFormat
dup
9: .line 2968
getstatic sun.security.tools.policytool.PolicyTool.rb:Ljava/util/ResourceBundle;
10: .line 2969
ldc "Warning.A.public.key.for.alias.signers.i.does.not.exist.Make.sure.a.KeyStore.is.properly.configured."
11: .line 2968
invokevirtual java.util.ResourceBundle.getString:(Ljava/lang/String;)Ljava/lang/String;
12: .line 2967
invokespecial java.text.MessageFormat.<init>:(Ljava/lang/String;)V
astore 7 /* form */
start local 7 // java.text.MessageFormat form
13: .line 2970
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 4 /* signers */
iload 5 /* i */
aaload
aastore
astore 8 /* source */
start local 8 // java.lang.Object[] source
14: .line 2971
aload 0 /* this */
getfield sun.security.tools.policytool.AddEntryDoneButtonListener.tool:Lsun/security/tools/policytool/PolicyTool;
getfield sun.security.tools.policytool.PolicyTool.warnings:Ljava/util/Vector;
aload 7 /* form */
aload 8 /* source */
invokevirtual java.text.MessageFormat.format:(Ljava/lang/Object;)Ljava/lang/String;
invokevirtual java.util.Vector.addElement:(Ljava/lang/Object;)V
15: .line 2972
aload 0 /* this */
getfield sun.security.tools.policytool.AddEntryDoneButtonListener.tw:Lsun/security/tools/policytool/ToolWindow;
aload 0 /* this */
getfield sun.security.tools.policytool.AddEntryDoneButtonListener.td:Lsun/security/tools/policytool/ToolDialog;
aload 7 /* form */
aload 8 /* source */
invokevirtual java.text.MessageFormat.format:(Ljava/lang/Object;)Ljava/lang/String;
invokevirtual sun.security.tools.policytool.ToolWindow.displayStatusDialog:(Ljava/awt/Window;Ljava/lang/String;)V
end local 8 // java.lang.Object[] source
end local 7 // java.text.MessageFormat form
end local 6 // java.security.PublicKey pubKey
16: .line 2964
StackMap locals:
StackMap stack:
iinc 5 /* i */ 1
StackMap locals:
StackMap stack:
17: iload 5 /* i */
aload 4 /* signers */
arraylength
if_icmplt 6
end local 5 // int i
end local 4 // java.lang.String[] signers
18: .line 2978
StackMap locals:
StackMap stack:
aload 0 /* this */
getfield sun.security.tools.policytool.AddEntryDoneButtonListener.tw:Lsun/security/tools/policytool/ToolWindow;
iconst_3
invokevirtual sun.security.tools.policytool.ToolWindow.getComponent:(I)Ljava/awt/Component;
checkcast java.awt.List
astore 4 /* policyList */
start local 4 // java.awt.List policyList
19: .line 2979
aload 0 /* this */
getfield sun.security.tools.policytool.AddEntryDoneButtonListener.edit:Z
ifeq 29
20: .line 2980
aload 4 /* policyList */
invokevirtual java.awt.List.getSelectedIndex:()I
istore 5 /* listIndex */
start local 5 // int listIndex
21: .line 2981
aload 0 /* this */
getfield sun.security.tools.policytool.AddEntryDoneButtonListener.tool:Lsun/security/tools/policytool/PolicyTool;
aload 2 /* newEntry */
iload 5 /* listIndex */
invokevirtual sun.security.tools.policytool.PolicyTool.addEntry:(Lsun/security/tools/policytool/PolicyEntry;I)Z
pop
22: .line 2982
aload 2 /* newEntry */
invokevirtual sun.security.tools.policytool.PolicyEntry.headerToString:()Ljava/lang/String;
astore 6 /* newCodeBaseStr */
start local 6 // java.lang.String newCodeBaseStr
23: .line 2983
getstatic sun.security.tools.policytool.PolicyTool.collator:Ljava/text/Collator;
24: .line 2984
aload 6 /* newCodeBaseStr */
aload 4 /* policyList */
iload 5 /* listIndex */
invokevirtual java.awt.List.getItem:(I)Ljava/lang/String;
25: .line 2983
invokevirtual java.text.Collator.compare:(Ljava/lang/String;Ljava/lang/String;)I
ifeq 27
26: .line 2985
aload 0 /* this */
getfield sun.security.tools.policytool.AddEntryDoneButtonListener.tool:Lsun/security/tools/policytool/PolicyTool;
iconst_1
putfield sun.security.tools.policytool.PolicyTool.modified:Z
27: .line 2986
StackMap locals: java.awt.List int java.lang.String
StackMap stack:
aload 4 /* policyList */
aload 6 /* newCodeBaseStr */
iload 5 /* listIndex */
invokevirtual java.awt.List.replaceItem:(Ljava/lang/String;I)V
end local 6 // java.lang.String newCodeBaseStr
end local 5 // int listIndex
28: .line 2987
goto 32
29: .line 2988
StackMap locals:
StackMap stack:
aload 0 /* this */
getfield sun.security.tools.policytool.AddEntryDoneButtonListener.tool:Lsun/security/tools/policytool/PolicyTool;
aload 2 /* newEntry */
iconst_m1
invokevirtual sun.security.tools.policytool.PolicyTool.addEntry:(Lsun/security/tools/policytool/PolicyEntry;I)Z
pop
30: .line 2989
aload 4 /* policyList */
aload 2 /* newEntry */
invokevirtual sun.security.tools.policytool.PolicyEntry.headerToString:()Ljava/lang/String;
invokevirtual java.awt.List.add:(Ljava/lang/String;)V
31: .line 2990
aload 0 /* this */
getfield sun.security.tools.policytool.AddEntryDoneButtonListener.tool:Lsun/security/tools/policytool/PolicyTool;
iconst_1
putfield sun.security.tools.policytool.PolicyTool.modified:Z
32: .line 2992
StackMap locals:
StackMap stack:
aload 0 /* this */
getfield sun.security.tools.policytool.AddEntryDoneButtonListener.td:Lsun/security/tools/policytool/ToolDialog;
iconst_0
invokevirtual sun.security.tools.policytool.ToolDialog.setVisible:(Z)V
33: .line 2993
aload 0 /* this */
getfield sun.security.tools.policytool.AddEntryDoneButtonListener.td:Lsun/security/tools/policytool/ToolDialog;
invokevirtual sun.security.tools.policytool.ToolDialog.dispose:()V
end local 4 // java.awt.List policyList
end local 3 // sun.security.provider.PolicyParser$GrantEntry newGe
end local 2 // sun.security.tools.policytool.PolicyEntry newEntry
34: .line 2995
goto 37
StackMap locals: sun.security.tools.policytool.AddEntryDoneButtonListener java.awt.event.ActionEvent
StackMap stack: java.lang.Exception
35: astore 2 /* eee */
start local 2 // java.lang.Exception eee
36: .line 2996
aload 0 /* this */
getfield sun.security.tools.policytool.AddEntryDoneButtonListener.tw:Lsun/security/tools/policytool/ToolWindow;
aload 0 /* this */
getfield sun.security.tools.policytool.AddEntryDoneButtonListener.td:Lsun/security/tools/policytool/ToolDialog;
aload 2 /* eee */
invokevirtual sun.security.tools.policytool.ToolWindow.displayErrorDialog:(Ljava/awt/Window;Ljava/lang/Throwable;)V
end local 2 // java.lang.Exception eee
37: .line 2998
StackMap locals:
StackMap stack:
return
end local 1 // java.awt.event.ActionEvent e
end local 0 // sun.security.tools.policytool.AddEntryDoneButtonListener this
LocalVariableTable:
Start End Slot Name Signature
0 38 0 this Lsun/security/tools/policytool/AddEntryDoneButtonListener;
0 38 1 e Ljava/awt/event/ActionEvent;
1 34 2 newEntry Lsun/security/tools/policytool/PolicyEntry;
2 34 3 newGe Lsun/security/provider/PolicyParser$GrantEntry;
4 18 4 signers [Ljava/lang/String;
5 18 5 i I
7 16 6 pubKey Ljava/security/PublicKey;
13 16 7 form Ljava/text/MessageFormat;
14 16 8 source [Ljava/lang/Object;
19 34 4 policyList Ljava/awt/List;
21 28 5 listIndex I
23 28 6 newCodeBaseStr Ljava/lang/String;
36 37 2 eee Ljava/lang/Exception;
Exception table:
from to target type
0 34 35 Class java.lang.Exception
MethodParameters:
Name Flags
e
}
SourceFile: "PolicyTool.java"
InnerClasses:
public GrantEntry = sun.security.provider.PolicyParser$GrantEntry of sun.security.provider.PolicyParser