public class sun.security.util.PolicyUtil
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: sun.security.util.PolicyUtil
super_class: java.lang.Object
{
private static final java.lang.String P11KEYSTORE;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "PKCS11"
private static final java.lang.String NONE;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "NONE"
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 Lsun/security/util/PolicyUtil;
public static java.io.InputStream getInputStream(java.net.URL);
descriptor: (Ljava/net/URL;)Ljava/io/InputStream;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: ldc "file"
aload 0
invokevirtual java.net.URL.getProtocol:()Ljava/lang/String;
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 4
1: aload 0
invokevirtual java.net.URL.getFile:()Ljava/lang/String;
bipush 47
getstatic java.io.File.separatorChar:C
invokevirtual java.lang.String.replace:(CC)Ljava/lang/String;
astore 1
start local 1 2: aload 1
invokestatic sun.net.www.ParseUtil.decode:(Ljava/lang/String;)Ljava/lang/String;
astore 1
3: new java.io.FileInputStream
dup
aload 1
invokespecial java.io.FileInputStream.<init>:(Ljava/lang/String;)V
areturn
end local 1 4: StackMap locals:
StackMap stack:
aload 0
invokevirtual java.net.URL.openStream:()Ljava/io/InputStream;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 url Ljava/net/URL;
2 4 1 path Ljava/lang/String;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
url
public static java.security.KeyStore getKeyStore(java.net.URL, java.lang.String, java.lang.String, java.lang.String, java.lang.String, sun.security.util.Debug);
descriptor: (Ljava/net/URL;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lsun/security/util/Debug;)Ljava/security/KeyStore;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=13, args_size=6
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 0: aload 1
ifnonnull 2
1: new java.lang.IllegalArgumentException
dup
ldc "null KeyStore name"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aconst_null
astore 6
start local 6 3: aload 2
ifnonnull 5
4: invokestatic java.security.KeyStore.getDefaultType:()Ljava/lang/String;
astore 2
5: StackMap locals: char[]
StackMap stack:
ldc "PKCS11"
aload 2
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifeq 17
6: ldc "NONE"
aload 1
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 17
7: new java.lang.IllegalArgumentException
dup
8: new java.lang.StringBuilder
dup
ldc "Invalid value ("
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
9: aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
10: ldc ") for keystore URL. If the keystore type is \""
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
11: ldc "PKCS11"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
12: ldc "\", the keystore url must be \""
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
13: ldc "NONE"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
14: ldc "\""
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
15: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
16: invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
17: StackMap locals:
StackMap stack:
aload 3
ifnull 20
18: aload 2
aload 3
invokestatic java.security.KeyStore.getInstance:(Ljava/lang/String;Ljava/lang/String;)Ljava/security/KeyStore;
astore 7
start local 7 19: goto 21
end local 7 20: StackMap locals:
StackMap stack:
aload 2
invokestatic java.security.KeyStore.getInstance:(Ljava/lang/String;)Ljava/security/KeyStore;
astore 7
start local 7 21: StackMap locals: java.security.KeyStore
StackMap stack:
aload 4
ifnull 40
22: new java.net.URL
dup
aload 4
invokespecial java.net.URL.<init>:(Ljava/lang/String;)V
astore 8
start local 8 23: goto 28
end local 8 StackMap locals:
StackMap stack: java.net.MalformedURLException
24: astore 9
start local 9 25: aload 0
ifnonnull 27
26: aload 9
athrow
27: StackMap locals: java.net.URL java.lang.String java.lang.String java.lang.String java.lang.String sun.security.util.Debug char[] java.security.KeyStore top java.net.MalformedURLException
StackMap stack:
new java.net.URL
dup
aload 0
aload 4
invokespecial java.net.URL.<init>:(Ljava/net/URL;Ljava/lang/String;)V
astore 8
end local 9 start local 8 28: StackMap locals: java.net.URL java.lang.String java.lang.String java.lang.String java.lang.String sun.security.util.Debug char[] java.security.KeyStore java.net.URL
StackMap stack:
aload 5
ifnull 30
29: aload 5
new java.lang.StringBuilder
dup
ldc "reading password"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 8
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual sun.security.util.Debug.println:(Ljava/lang/String;)V
30: StackMap locals:
StackMap stack:
aconst_null
astore 9
start local 9 31: aload 8
invokevirtual java.net.URL.openStream:()Ljava/io/InputStream;
astore 9
32: aload 9
invokestatic sun.security.util.Password.readPassword:(Ljava/io/InputStream;)[C
astore 6
33: goto 38
StackMap locals: java.net.URL java.lang.String java.lang.String java.lang.String java.lang.String sun.security.util.Debug char[] java.security.KeyStore java.net.URL java.io.InputStream
StackMap stack: java.lang.Throwable
34: astore 10
35: aload 9
ifnull 37
36: aload 9
invokevirtual java.io.InputStream.close:()V
37: StackMap locals: java.lang.Throwable
StackMap stack:
aload 10
athrow
38: StackMap locals:
StackMap stack:
aload 9
ifnull 40
39: aload 9
invokevirtual java.io.InputStream.close:()V
end local 9 end local 8 40: StackMap locals:
StackMap stack:
ldc "NONE"
aload 1
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 46
41: aload 7
aconst_null
aload 6
invokevirtual java.security.KeyStore.load:(Ljava/io/InputStream;[C)V
42: aload 7
astore 12
43: aload 6
ifnull 45
44: aload 6
bipush 32
invokestatic java.util.Arrays.fill:([CC)V
45: StackMap locals: java.net.URL java.lang.String java.lang.String java.lang.String java.lang.String sun.security.util.Debug char[] java.security.KeyStore top top top top java.security.KeyStore
StackMap stack:
aload 12
areturn
46: StackMap locals: java.net.URL java.lang.String java.lang.String java.lang.String java.lang.String sun.security.util.Debug char[] java.security.KeyStore
StackMap stack:
aconst_null
astore 8
start local 8 47: new java.net.URL
dup
aload 1
invokespecial java.net.URL.<init>:(Ljava/lang/String;)V
astore 8
48: goto 53
StackMap locals: java.net.URL java.lang.String java.lang.String java.lang.String java.lang.String sun.security.util.Debug char[] java.security.KeyStore java.net.URL
StackMap stack: java.net.MalformedURLException
49: astore 9
start local 9 50: aload 0
ifnonnull 52
51: aload 9
athrow
52: StackMap locals: java.net.MalformedURLException
StackMap stack:
new java.net.URL
dup
aload 0
aload 1
invokespecial java.net.URL.<init>:(Ljava/net/URL;Ljava/lang/String;)V
astore 8
end local 9 53: StackMap locals:
StackMap stack:
aload 5
ifnull 55
54: aload 5
new java.lang.StringBuilder
dup
ldc "reading keystore"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 8
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual sun.security.util.Debug.println:(Ljava/lang/String;)V
55: StackMap locals:
StackMap stack:
aconst_null
astore 9
start local 9 56: new java.io.BufferedInputStream
dup
aload 8
invokestatic sun.security.util.PolicyUtil.getInputStream:(Ljava/net/URL;)Ljava/io/InputStream;
invokespecial java.io.BufferedInputStream.<init>:(Ljava/io/InputStream;)V
57: astore 9
58: aload 7
aload 9
aload 6
invokevirtual java.security.KeyStore.load:(Ljava/io/InputStream;[C)V
59: goto 63
StackMap locals: java.net.URL java.lang.String java.lang.String java.lang.String java.lang.String sun.security.util.Debug char[] java.security.KeyStore java.net.URL java.io.InputStream
StackMap stack: java.lang.Throwable
60: astore 10
61: aload 9
invokevirtual java.io.InputStream.close:()V
62: aload 10
athrow
63: StackMap locals:
StackMap stack:
aload 9
invokevirtual java.io.InputStream.close:()V
64: aload 7
astore 12
65: aload 6
ifnull 67
66: aload 6
bipush 32
invokestatic java.util.Arrays.fill:([CC)V
67: StackMap locals: java.net.URL java.lang.String java.lang.String java.lang.String java.lang.String sun.security.util.Debug char[] java.security.KeyStore java.net.URL java.io.InputStream top top java.security.KeyStore
StackMap stack:
aload 12
areturn
end local 9 end local 8 end local 7 68: StackMap locals: java.net.URL java.lang.String java.lang.String java.lang.String java.lang.String sun.security.util.Debug char[]
StackMap stack: java.lang.Throwable
astore 11
69: aload 6
ifnull 71
70: aload 6
bipush 32
invokestatic java.util.Arrays.fill:([CC)V
71: StackMap locals: java.net.URL java.lang.String java.lang.String java.lang.String java.lang.String sun.security.util.Debug char[] top top top top java.lang.Throwable
StackMap stack:
aload 11
athrow
end local 6 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 72 0 policyUrl Ljava/net/URL;
0 72 1 keyStoreName Ljava/lang/String;
0 72 2 keyStoreType Ljava/lang/String;
0 72 3 keyStoreProvider Ljava/lang/String;
0 72 4 storePassURL Ljava/lang/String;
0 72 5 debug Lsun/security/util/Debug;
3 72 6 keyStorePassword [C
19 20 7 ks Ljava/security/KeyStore;
21 68 7 ks Ljava/security/KeyStore;
23 24 8 passURL Ljava/net/URL;
28 40 8 passURL Ljava/net/URL;
25 28 9 e Ljava/net/MalformedURLException;
31 40 9 in Ljava/io/InputStream;
47 68 8 keyStoreUrl Ljava/net/URL;
50 53 9 e Ljava/net/MalformedURLException;
56 68 9 inStream Ljava/io/InputStream;
Exception table:
from to target type
22 23 24 Class java.net.MalformedURLException
31 34 34 any
47 48 49 Class java.net.MalformedURLException
56 60 60 any
3 43 68 any
46 65 68 any
Exceptions:
throws java.security.KeyStoreException, java.net.MalformedURLException, java.io.IOException, java.security.NoSuchProviderException, java.security.NoSuchAlgorithmException, java.security.cert.CertificateException
MethodParameters:
Name Flags
policyUrl
keyStoreName
keyStoreType
keyStoreProvider
storePassURL
debug
}
SourceFile: "PolicyUtil.java"