public class com.sun.security.auth.callback.DialogCallbackHandler implements javax.security.auth.callback.CallbackHandler
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: com.sun.security.auth.callback.DialogCallbackHandler
super_class: java.lang.Object
{
private java.awt.Component parentComponent;
descriptor: Ljava/awt/Component;
flags: (0x0002) ACC_PRIVATE
private static final int JPasswordFieldLen;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 8
private static final int JTextFieldLen;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 8
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 Lcom/sun/security/auth/callback/DialogCallbackHandler;
public void <init>(java.awt.Component);
descriptor: (Ljava/awt/Component;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
putfield com.sun.security.auth.callback.DialogCallbackHandler.parentComponent:Ljava/awt/Component;
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/sun/security/auth/callback/DialogCallbackHandler;
0 3 1 parentComponent Ljava/awt/Component;
MethodParameters:
Name Flags
parentComponent
public void handle(javax.security.auth.callback.Callback[]);
descriptor: ([Ljavax/security/auth/callback/Callback;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=8, locals=11, args_size=2
start local 0 start local 1 0: new java.util.ArrayList
dup
iconst_3
invokespecial java.util.ArrayList.<init>:(I)V
astore 2
start local 2 1: new java.util.ArrayList
dup
iconst_2
invokespecial java.util.ArrayList.<init>:(I)V
astore 3
start local 3 2: new com.sun.security.auth.callback.DialogCallbackHandler$ConfirmationInfo
dup
invokespecial com.sun.security.auth.callback.DialogCallbackHandler$ConfirmationInfo.<init>:()V
astore 4
start local 4 3: iconst_0
istore 5
start local 5 4: goto 55
5: StackMap locals: com.sun.security.auth.callback.DialogCallbackHandler javax.security.auth.callback.Callback[] java.util.List java.util.List com.sun.security.auth.callback.DialogCallbackHandler$ConfirmationInfo int
StackMap stack:
aload 1
iload 5
aaload
instanceof javax.security.auth.callback.TextOutputCallback
ifeq 19
6: aload 1
iload 5
aaload
checkcast javax.security.auth.callback.TextOutputCallback
astore 6
start local 6 7: aload 6
invokevirtual javax.security.auth.callback.TextOutputCallback.getMessageType:()I
tableswitch { // 0 - 2
0: 8
1: 10
2: 12
default: 14
}
8: StackMap locals: javax.security.auth.callback.TextOutputCallback
StackMap stack:
aload 4
iconst_1
putfield com.sun.security.auth.callback.DialogCallbackHandler$ConfirmationInfo.messageType:I
9: goto 17
10: StackMap locals:
StackMap stack:
aload 4
iconst_2
putfield com.sun.security.auth.callback.DialogCallbackHandler$ConfirmationInfo.messageType:I
11: goto 17
12: StackMap locals:
StackMap stack:
aload 4
iconst_0
putfield com.sun.security.auth.callback.DialogCallbackHandler$ConfirmationInfo.messageType:I
13: goto 17
14: StackMap locals:
StackMap stack:
new javax.security.auth.callback.UnsupportedCallbackException
dup
15: aload 1
iload 5
aaload
ldc "Unrecognized message type"
16: invokespecial javax.security.auth.callback.UnsupportedCallbackException.<init>:(Ljavax/security/auth/callback/Callback;Ljava/lang/String;)V
athrow
17: StackMap locals:
StackMap stack:
aload 2
aload 6
invokevirtual javax.security.auth.callback.TextOutputCallback.getMessage:()Ljava/lang/String;
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 6 18: goto 54
StackMap locals:
StackMap stack:
19: aload 1
iload 5
aaload
instanceof javax.security.auth.callback.NameCallback
ifeq 32
20: aload 1
iload 5
aaload
checkcast javax.security.auth.callback.NameCallback
astore 6
start local 6 21: new javax.swing.JLabel
dup
aload 6
invokevirtual javax.security.auth.callback.NameCallback.getPrompt:()Ljava/lang/String;
invokespecial javax.swing.JLabel.<init>:(Ljava/lang/String;)V
astore 7
start local 7 22: new javax.swing.JTextField
dup
bipush 8
invokespecial javax.swing.JTextField.<init>:(I)V
astore 8
start local 8 23: aload 6
invokevirtual javax.security.auth.callback.NameCallback.getDefaultName:()Ljava/lang/String;
astore 9
start local 9 24: aload 9
ifnull 26
25: aload 8
aload 9
invokevirtual javax.swing.JTextField.setText:(Ljava/lang/String;)V
26: StackMap locals: com.sun.security.auth.callback.DialogCallbackHandler javax.security.auth.callback.Callback[] java.util.List java.util.List com.sun.security.auth.callback.DialogCallbackHandler$ConfirmationInfo int javax.security.auth.callback.NameCallback javax.swing.JLabel javax.swing.JTextField java.lang.String
StackMap stack:
invokestatic javax.swing.Box.createHorizontalBox:()Ljavax/swing/Box;
astore 10
start local 10 27: aload 10
aload 7
invokevirtual javax.swing.Box.add:(Ljava/awt/Component;)Ljava/awt/Component;
pop
28: aload 10
aload 8
invokevirtual javax.swing.Box.add:(Ljava/awt/Component;)Ljava/awt/Component;
pop
29: aload 2
aload 10
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
30: aload 3
new com.sun.security.auth.callback.DialogCallbackHandler$1
dup
aload 0
aload 6
aload 8
invokespecial com.sun.security.auth.callback.DialogCallbackHandler$1.<init>:(Lcom/sun/security/auth/callback/DialogCallbackHandler;Ljavax/security/auth/callback/NameCallback;Ljavax/swing/JTextField;)V
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 10 end local 9 end local 8 end local 7 end local 6 31: goto 54
StackMap locals: com.sun.security.auth.callback.DialogCallbackHandler javax.security.auth.callback.Callback[] java.util.List java.util.List com.sun.security.auth.callback.DialogCallbackHandler$ConfirmationInfo int
StackMap stack:
32: aload 1
iload 5
aaload
instanceof javax.security.auth.callback.PasswordCallback
ifeq 45
33: aload 1
iload 5
aaload
checkcast javax.security.auth.callback.PasswordCallback
astore 6
start local 6 34: new javax.swing.JLabel
dup
aload 6
invokevirtual javax.security.auth.callback.PasswordCallback.getPrompt:()Ljava/lang/String;
invokespecial javax.swing.JLabel.<init>:(Ljava/lang/String;)V
astore 7
start local 7 35: new javax.swing.JPasswordField
dup
bipush 8
invokespecial javax.swing.JPasswordField.<init>:(I)V
36: astore 8
start local 8 37: aload 6
invokevirtual javax.security.auth.callback.PasswordCallback.isEchoOn:()Z
ifne 39
38: aload 8
bipush 42
invokevirtual javax.swing.JPasswordField.setEchoChar:(C)V
39: StackMap locals: javax.security.auth.callback.PasswordCallback javax.swing.JLabel javax.swing.JPasswordField
StackMap stack:
invokestatic javax.swing.Box.createHorizontalBox:()Ljavax/swing/Box;
astore 9
start local 9 40: aload 9
aload 7
invokevirtual javax.swing.Box.add:(Ljava/awt/Component;)Ljava/awt/Component;
pop
41: aload 9
aload 8
invokevirtual javax.swing.Box.add:(Ljava/awt/Component;)Ljava/awt/Component;
pop
42: aload 2
aload 9
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
43: aload 3
new com.sun.security.auth.callback.DialogCallbackHandler$2
dup
aload 0
aload 6
aload 8
invokespecial com.sun.security.auth.callback.DialogCallbackHandler$2.<init>:(Lcom/sun/security/auth/callback/DialogCallbackHandler;Ljavax/security/auth/callback/PasswordCallback;Ljavax/swing/JPasswordField;)V
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 9 end local 8 end local 7 end local 6 44: goto 54
StackMap locals:
StackMap stack:
45: aload 1
iload 5
aaload
instanceof javax.security.auth.callback.ConfirmationCallback
ifeq 51
46: aload 1
iload 5
aaload
checkcast javax.security.auth.callback.ConfirmationCallback
astore 6
start local 6 47: aload 4
aload 6
invokevirtual com.sun.security.auth.callback.DialogCallbackHandler$ConfirmationInfo.setCallback:(Ljavax/security/auth/callback/ConfirmationCallback;)V
48: aload 6
invokevirtual javax.security.auth.callback.ConfirmationCallback.getPrompt:()Ljava/lang/String;
ifnull 54
49: aload 2
aload 6
invokevirtual javax.security.auth.callback.ConfirmationCallback.getPrompt:()Ljava/lang/String;
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 6 50: goto 54
51: StackMap locals:
StackMap stack:
new javax.security.auth.callback.UnsupportedCallbackException
dup
52: aload 1
iload 5
aaload
ldc "Unrecognized Callback"
53: invokespecial javax.security.auth.callback.UnsupportedCallbackException.<init>:(Ljavax/security/auth/callback/Callback;Ljava/lang/String;)V
athrow
54: StackMap locals:
StackMap stack:
iinc 5 1
StackMap locals:
StackMap stack:
55: iload 5
aload 1
arraylength
if_icmplt 5
end local 5 56: aload 0
getfield com.sun.security.auth.callback.DialogCallbackHandler.parentComponent:Ljava/awt/Component;
57: aload 2
invokeinterface java.util.List.toArray:()[Ljava/lang/Object;
58: ldc "Confirmation"
59: aload 4
getfield com.sun.security.auth.callback.DialogCallbackHandler$ConfirmationInfo.optionType:I
60: aload 4
getfield com.sun.security.auth.callback.DialogCallbackHandler$ConfirmationInfo.messageType:I
61: aconst_null
62: aload 4
getfield com.sun.security.auth.callback.DialogCallbackHandler$ConfirmationInfo.options:[Ljava/lang/Object;
63: aload 4
getfield com.sun.security.auth.callback.DialogCallbackHandler$ConfirmationInfo.initialValue:Ljava/lang/Object;
64: invokestatic javax.swing.JOptionPane.showOptionDialog:(Ljava/awt/Component;Ljava/lang/Object;Ljava/lang/String;IILjavax/swing/Icon;[Ljava/lang/Object;Ljava/lang/Object;)I
istore 5
start local 5 65: iload 5
ifeq 67
66: iload 5
ifne 71
67: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 6
start local 6 68: goto 70
69: StackMap locals: java.util.Iterator
StackMap stack:
aload 6
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast com.sun.security.auth.callback.DialogCallbackHandler$Action
invokeinterface com.sun.security.auth.callback.DialogCallbackHandler$Action.perform:()V
70: StackMap locals:
StackMap stack:
aload 6
invokeinterface java.util.Iterator.hasNext:()Z
ifne 69
end local 6 71: StackMap locals:
StackMap stack:
aload 4
iload 5
invokevirtual com.sun.security.auth.callback.DialogCallbackHandler$ConfirmationInfo.handleResult:(I)V
72: return
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 73 0 this Lcom/sun/security/auth/callback/DialogCallbackHandler;
0 73 1 callbacks [Ljavax/security/auth/callback/Callback;
1 73 2 messages Ljava/util/List<Ljava/lang/Object;>;
2 73 3 okActions Ljava/util/List<Lcom/sun/security/auth/callback/DialogCallbackHandler$Action;>;
3 73 4 confirmation Lcom/sun/security/auth/callback/DialogCallbackHandler$ConfirmationInfo;
4 56 5 i I
7 18 6 tc Ljavax/security/auth/callback/TextOutputCallback;
21 31 6 nc Ljavax/security/auth/callback/NameCallback;
22 31 7 prompt Ljavax/swing/JLabel;
23 31 8 name Ljavax/swing/JTextField;
24 31 9 defaultName Ljava/lang/String;
27 31 10 namePanel Ljavax/swing/Box;
34 44 6 pc Ljavax/security/auth/callback/PasswordCallback;
35 44 7 prompt Ljavax/swing/JLabel;
37 44 8 password Ljavax/swing/JPasswordField;
40 44 9 passwordPanel Ljavax/swing/Box;
47 50 6 cc Ljavax/security/auth/callback/ConfirmationCallback;
65 73 5 result I
68 71 6 iterator Ljava/util/Iterator<Lcom/sun/security/auth/callback/DialogCallbackHandler$Action;>;
Exceptions:
throws javax.security.auth.callback.UnsupportedCallbackException
MethodParameters:
Name Flags
callbacks
}
SourceFile: "DialogCallbackHandler.java"
NestMembers:
com.sun.security.auth.callback.DialogCallbackHandler$1 com.sun.security.auth.callback.DialogCallbackHandler$2 com.sun.security.auth.callback.DialogCallbackHandler$Action com.sun.security.auth.callback.DialogCallbackHandler$ConfirmationInfo
InnerClasses:
com.sun.security.auth.callback.DialogCallbackHandler$1
com.sun.security.auth.callback.DialogCallbackHandler$2
private abstract Action = com.sun.security.auth.callback.DialogCallbackHandler$Action of com.sun.security.auth.callback.DialogCallbackHandler
private ConfirmationInfo = com.sun.security.auth.callback.DialogCallbackHandler$ConfirmationInfo of com.sun.security.auth.callback.DialogCallbackHandler