public class sun.security.tools.KeyStoreUtil
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: sun.security.tools.KeyStoreUtil
super_class: java.lang.Object
{
private static final java.lang.String JKS;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "jks"
private static final java.text.Collator collator;
descriptor: Ljava/text/Collator;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: invokestatic java.text.Collator.getInstance:()Ljava/text/Collator;
putstatic sun.security.tools.KeyStoreUtil.collator:Ljava/text/Collator;
1: getstatic sun.security.tools.KeyStoreUtil.collator:Ljava/text/Collator;
iconst_0
invokevirtual java.text.Collator.setStrength:(I)V
2: return
LocalVariableTable:
Start End Slot Name Signature
private void <init>();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/security/tools/KeyStoreUtil;
public static boolean isWindowsKeyStore(java.lang.String);
descriptor: (Ljava/lang/String;)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
ldc "Windows-MY"
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifne 3
1: aload 0
ldc "Windows-ROOT"
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifne 3
2: iconst_0
ireturn
StackMap locals:
StackMap stack:
3: iconst_1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 storetype Ljava/lang/String;
MethodParameters:
Name Flags
storetype
public static java.lang.String niceStoreTypeName(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
ldc "Windows-MY"
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifeq 2
1: ldc "Windows-MY"
areturn
2: StackMap locals:
StackMap stack:
aload 0
ldc "Windows-ROOT"
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifeq 4
3: ldc "Windows-ROOT"
areturn
4: StackMap locals:
StackMap stack:
aload 0
invokevirtual java.lang.String.toUpperCase:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 storetype Ljava/lang/String;
MethodParameters:
Name Flags
storetype
public static java.security.KeyStore getCacertsKeyStore();
descriptor: ()Ljava/security/KeyStore;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=5, args_size=0
0: getstatic java.io.File.separator:Ljava/lang/String;
astore 0
start local 0 1: new java.io.File
dup
new java.lang.StringBuilder
dup
ldc "java.home"
invokestatic java.lang.System.getProperty:(Ljava/lang/String;)Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
2: ldc "lib"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "security"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
3: ldc "cacerts"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
4: invokespecial java.io.File.<init>:(Ljava/lang/String;)V
astore 1
start local 1 5: aload 1
invokevirtual java.io.File.exists:()Z
ifne 7
6: aconst_null
areturn
7: StackMap locals: java.lang.String java.io.File
StackMap stack:
aconst_null
astore 2
start local 2 8: aconst_null
astore 3
start local 3 9: new java.io.FileInputStream
dup
aload 1
invokespecial java.io.FileInputStream.<init>:(Ljava/io/File;)V
astore 2
10: ldc "jks"
invokestatic java.security.KeyStore.getInstance:(Ljava/lang/String;)Ljava/security/KeyStore;
astore 3
11: aload 3
aload 2
aconst_null
invokevirtual java.security.KeyStore.load:(Ljava/io/InputStream;[C)V
12: goto 16
StackMap locals: java.lang.String java.io.File java.io.FileInputStream java.security.KeyStore
StackMap stack: java.lang.Throwable
13: astore 4
14: aload 2
ifnull 15
aload 2
invokevirtual java.io.FileInputStream.close:()V
15: StackMap locals: java.lang.Throwable
StackMap stack:
aload 4
athrow
16: StackMap locals:
StackMap stack:
aload 2
ifnull 17
aload 2
invokevirtual java.io.FileInputStream.close:()V
17: StackMap locals:
StackMap stack:
aload 3
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
1 18 0 sep Ljava/lang/String;
5 18 1 file Ljava/io/File;
8 18 2 fis Ljava/io/FileInputStream;
9 18 3 caks Ljava/security/KeyStore;
Exception table:
from to target type
9 13 13 any
Exceptions:
throws java.lang.Exception
public static char[] getPassWithModifier(java.lang.String, java.lang.String, java.util.ResourceBundle);
descriptor: (Ljava/lang/String;Ljava/lang/String;Ljava/util/ResourceBundle;)[C
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=8, args_size=3
start local 0 start local 1 start local 2 0: aload 0
ifnonnull 2
1: aload 1
invokevirtual java.lang.String.toCharArray:()[C
areturn
2: StackMap locals:
StackMap stack:
getstatic sun.security.tools.KeyStoreUtil.collator:Ljava/text/Collator;
aload 0
ldc "env"
invokevirtual java.text.Collator.compare:(Ljava/lang/String;Ljava/lang/String;)I
ifne 12
3: aload 1
invokestatic java.lang.System.getenv:(Ljava/lang/String;)Ljava/lang/String;
astore 3
start local 3 4: aload 3
ifnonnull 11
5: getstatic java.lang.System.err:Ljava/io/PrintStream;
new java.lang.StringBuilder
dup
aload 2
6: ldc "Cannot.find.environment.variable."
7: invokevirtual java.util.ResourceBundle.getString:(Ljava/lang/String;)Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
8: aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
9: invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
10: aconst_null
areturn
11: StackMap locals: java.lang.String
StackMap stack:
aload 3
invokevirtual java.lang.String.toCharArray:()[C
areturn
end local 3 12: StackMap locals:
StackMap stack:
getstatic sun.security.tools.KeyStoreUtil.collator:Ljava/text/Collator;
aload 0
ldc "file"
invokevirtual java.text.Collator.compare:(Ljava/lang/String;Ljava/lang/String;)I
ifne 43
13: aconst_null
astore 3
start local 3 14: new java.net.URL
dup
aload 1
invokespecial java.net.URL.<init>:(Ljava/lang/String;)V
astore 3
15: goto 27
StackMap locals: java.lang.String java.lang.String java.util.ResourceBundle java.net.URL
StackMap stack: java.net.MalformedURLException
16: pop
17: new java.io.File
dup
aload 1
invokespecial java.io.File.<init>:(Ljava/lang/String;)V
astore 4
start local 4 18: aload 4
invokevirtual java.io.File.exists:()Z
ifeq 21
19: aload 4
invokevirtual java.io.File.toURI:()Ljava/net/URI;
invokevirtual java.net.URI.toURL:()Ljava/net/URL;
astore 3
20: goto 27
21: StackMap locals: java.io.File
StackMap stack:
getstatic java.lang.System.err:Ljava/io/PrintStream;
new java.lang.StringBuilder
dup
aload 2
22: ldc "Cannot.find.file."
23: invokevirtual java.util.ResourceBundle.getString:(Ljava/lang/String;)Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
24: aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
25: invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
26: aconst_null
areturn
end local 4 27: StackMap locals:
StackMap stack:
aconst_null
astore 4
start local 4 28: new java.io.BufferedReader
dup
new java.io.InputStreamReader
dup
aload 3
invokevirtual java.net.URL.openStream:()Ljava/io/InputStream;
invokespecial java.io.InputStreamReader.<init>:(Ljava/io/InputStream;)V
invokespecial java.io.BufferedReader.<init>:(Ljava/io/Reader;)V
astore 4
29: aload 4
invokevirtual java.io.BufferedReader.readLine:()Ljava/lang/String;
astore 5
start local 5 30: aload 5
ifnonnull 34
31: iconst_0
newarray 5
astore 7
32: aload 4
ifnull 33
aload 4
invokevirtual java.io.BufferedReader.close:()V
33: StackMap locals: java.lang.String java.lang.String java.util.ResourceBundle java.net.URL java.io.BufferedReader java.lang.String top char[]
StackMap stack:
aload 7
areturn
34: StackMap locals: java.lang.String java.lang.String java.util.ResourceBundle java.net.URL java.io.BufferedReader java.lang.String
StackMap stack:
aload 5
invokevirtual java.lang.String.toCharArray:()[C
astore 7
35: aload 4
ifnull 36
aload 4
invokevirtual java.io.BufferedReader.close:()V
36: StackMap locals: java.lang.String java.lang.String java.util.ResourceBundle java.net.URL java.io.BufferedReader java.lang.String top char[]
StackMap stack:
aload 7
areturn
end local 5 37: StackMap locals: java.lang.String java.lang.String java.util.ResourceBundle java.net.URL java.io.BufferedReader
StackMap stack: java.lang.Throwable
astore 6
38: aload 4
ifnull 39
aload 4
invokevirtual java.io.BufferedReader.close:()V
39: StackMap locals: java.lang.String java.lang.String java.util.ResourceBundle java.net.URL java.io.BufferedReader top java.lang.Throwable
StackMap stack:
aload 6
athrow
end local 4 end local 3 40: StackMap locals: java.lang.String java.lang.String java.util.ResourceBundle
StackMap stack: java.io.IOException
astore 3
start local 3 41: getstatic java.lang.System.err:Ljava/io/PrintStream;
aload 3
invokevirtual java.io.PrintStream.println:(Ljava/lang/Object;)V
42: aconst_null
areturn
end local 3 43: StackMap locals:
StackMap stack:
getstatic java.lang.System.err:Ljava/io/PrintStream;
new java.lang.StringBuilder
dup
aload 2
ldc "Unknown.password.type."
invokevirtual java.util.ResourceBundle.getString:(Ljava/lang/String;)Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
44: aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
45: invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
46: aconst_null
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 47 0 modifier Ljava/lang/String;
0 47 1 arg Ljava/lang/String;
0 47 2 rb Ljava/util/ResourceBundle;
4 12 3 value Ljava/lang/String;
14 40 3 url Ljava/net/URL;
18 27 4 f Ljava/io/File;
28 40 4 br Ljava/io/BufferedReader;
30 37 5 value Ljava/lang/String;
41 43 3 ioe Ljava/io/IOException;
Exception table:
from to target type
14 15 16 Class java.net.MalformedURLException
28 32 37 any
34 35 37 any
13 26 40 Class java.io.IOException
27 33 40 Class java.io.IOException
34 36 40 Class java.io.IOException
37 40 40 Class java.io.IOException
MethodParameters:
Name Flags
modifier
arg
rb
}
SourceFile: "KeyStoreUtil.java"