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 isSelfSigned(java.security.cert.X509Certificate);
descriptor: (Ljava/security/cert/X509Certificate;)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
aload 0
invokestatic sun.security.tools.KeyStoreUtil.signedBy:(Ljava/security/cert/X509Certificate;Ljava/security/cert/X509Certificate;)Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 cert Ljava/security/cert/X509Certificate;
MethodParameters:
Name Flags
cert
public static boolean signedBy(java.security.cert.X509Certificate, java.security.cert.X509Certificate);
descriptor: (Ljava/security/cert/X509Certificate;Ljava/security/cert/X509Certificate;)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual java.security.cert.X509Certificate.getSubjectX500Principal:()Ljavax/security/auth/x500/X500Principal;
aload 0
invokevirtual java.security.cert.X509Certificate.getIssuerX500Principal:()Ljavax/security/auth/x500/X500Principal;
invokevirtual javax.security.auth.x500.X500Principal.equals:(Ljava/lang/Object;)Z
ifne 2
1: iconst_0
ireturn
2: StackMap locals:
StackMap stack:
aload 0
aload 1
invokevirtual java.security.cert.X509Certificate.getPublicKey:()Ljava/security/PublicKey;
invokevirtual java.security.cert.X509Certificate.verify:(Ljava/security/PublicKey;)V
3: iconst_1
ireturn
4: StackMap locals:
StackMap stack: java.lang.Exception
pop
5: iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 end Ljava/security/cert/X509Certificate;
0 6 1 ca Ljava/security/cert/X509Certificate;
Exception table:
from to target type
2 3 4 Class java.lang.Exception
MethodParameters:
Name Flags
end
ca
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
ifnull 4
1: aload 0
ldc "Windows-MY"
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifne 3
2: aload 0
ldc "Windows-ROOT"
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifeq 4
3: StackMap locals:
StackMap stack:
iconst_1
ireturn
StackMap locals:
StackMap stack:
4: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 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
getstatic java.util.Locale.ENGLISH:Ljava/util/Locale;
invokevirtual java.lang.String.toUpperCase:(Ljava/util/Locale;)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=6, 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
aconst_null
astore 4
9: new java.io.FileInputStream
dup
aload 1
invokespecial java.io.FileInputStream.<init>:(Ljava/io/File;)V
astore 5
start local 5 10: ldc "jks"
invokestatic java.security.KeyStore.getInstance:(Ljava/lang/String;)Ljava/security/KeyStore;
astore 2
11: aload 2
aload 5
aconst_null
invokevirtual java.security.KeyStore.load:(Ljava/io/InputStream;[C)V
12: aload 5
ifnull 18
aload 5
invokevirtual java.io.FileInputStream.close:()V
goto 18
StackMap locals: java.lang.String java.io.File java.security.KeyStore java.lang.Throwable java.lang.Throwable java.io.FileInputStream
StackMap stack: java.lang.Throwable
13: astore 3
aload 5
ifnull 14
aload 5
invokevirtual java.io.FileInputStream.close:()V
end local 5 StackMap locals:
StackMap stack:
14: aload 3
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
15: astore 4
aload 3
ifnonnull 16
aload 4
astore 3
goto 17
StackMap locals:
StackMap stack:
16: aload 3
aload 4
if_acmpeq 17
aload 3
aload 4
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
17: aload 3
athrow
18: StackMap locals:
StackMap stack:
aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
1 19 0 sep Ljava/lang/String;
5 19 1 file Ljava/io/File;
8 19 2 caks Ljava/security/KeyStore;
10 14 5 fis Ljava/io/FileInputStream;
Exception table:
from to target type
10 12 13 any
9 15 15 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 49
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
aconst_null
astore 5
28: new java.io.BufferedReader
dup
new java.io.InputStreamReader
dup
29: aload 3
invokevirtual java.net.URL.openStream:()Ljava/io/InputStream;
invokespecial java.io.InputStreamReader.<init>:(Ljava/io/InputStream;)V
30: invokespecial java.io.BufferedReader.<init>:(Ljava/io/Reader;)V
31: astore 6
start local 6 32: aload 6
invokevirtual java.io.BufferedReader.readLine:()Ljava/lang/String;
astore 7
start local 7 33: aload 7
ifnonnull 37
34: iconst_0
newarray 5
35: aload 6
ifnull 36
aload 6
invokevirtual java.io.BufferedReader.close:()V
36: StackMap locals: java.lang.String java.lang.String java.util.ResourceBundle java.net.URL java.lang.Throwable java.lang.Throwable java.io.BufferedReader java.lang.String
StackMap stack: char[]
areturn
37: StackMap locals:
StackMap stack:
aload 7
invokevirtual java.lang.String.toCharArray:()[C
38: aload 6
ifnull 39
aload 6
invokevirtual java.io.BufferedReader.close:()V
39: StackMap locals:
StackMap stack: char[]
areturn
end local 7 StackMap locals: java.lang.String java.lang.String java.util.ResourceBundle java.net.URL java.lang.Throwable java.lang.Throwable java.io.BufferedReader
StackMap stack: java.lang.Throwable
40: astore 4
41: aload 6
ifnull 42
aload 6
invokevirtual java.io.BufferedReader.close:()V
end local 6 StackMap locals:
StackMap stack:
42: aload 4
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
43: astore 5
aload 4
ifnonnull 44
aload 5
astore 4
goto 45
StackMap locals:
StackMap stack:
44: aload 4
aload 5
if_acmpeq 45
aload 4
aload 5
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
45: aload 4
athrow
end local 3 46: StackMap locals: java.lang.String java.lang.String java.util.ResourceBundle
StackMap stack: java.io.IOException
astore 3
start local 3 47: getstatic java.lang.System.err:Ljava/io/PrintStream;
aload 3
invokevirtual java.io.PrintStream.println:(Ljava/lang/Object;)V
48: aconst_null
areturn
end local 3 49: 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
50: aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
51: invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
52: aconst_null
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 53 0 modifier Ljava/lang/String;
0 53 1 arg Ljava/lang/String;
0 53 2 rb Ljava/util/ResourceBundle;
4 12 3 value Ljava/lang/String;
14 46 3 url Ljava/net/URL;
18 27 4 f Ljava/io/File;
32 42 6 br Ljava/io/BufferedReader;
33 40 7 value Ljava/lang/String;
47 49 3 ioe Ljava/io/IOException;
Exception table:
from to target type
14 15 16 Class java.net.MalformedURLException
32 35 40 any
37 38 40 any
28 36 43 any
37 39 43 any
40 43 43 any
13 26 46 Class java.io.IOException
27 36 46 Class java.io.IOException
37 39 46 Class java.io.IOException
40 46 46 Class java.io.IOException
MethodParameters:
Name Flags
modifier
arg
rb
}
SourceFile: "KeyStoreUtil.java"