final class sun.security.ssl.SSLContextImpl$DefaultManagersHolder
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: sun.security.ssl.SSLContextImpl$DefaultManagersHolder
super_class: java.lang.Object
{
private static final java.lang.String NONE;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "NONE"
private static final java.lang.String P11KEYSTORE;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "PKCS11"
private static final javax.net.ssl.TrustManager[] trustManagers;
descriptor: [Ljavax/net/ssl/TrustManager;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final javax.net.ssl.KeyManager[] keyManagers;
descriptor: [Ljavax/net/ssl/KeyManager;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
static java.lang.Exception reservedException;
descriptor: Ljava/lang/Exception;
flags: (0x0008) ACC_STATIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=3, args_size=0
0: aconst_null
putstatic sun.security.ssl.SSLContextImpl$DefaultManagersHolder.reservedException:Ljava/lang/Exception;
1: invokestatic sun.security.ssl.SSLContextImpl$DefaultManagersHolder.getTrustManagers:()[Ljavax/net/ssl/TrustManager;
astore 0
start local 0 2: goto 6
end local 0 StackMap locals:
StackMap stack: java.lang.Exception
3: astore 1
start local 1 4: aload 1
putstatic sun.security.ssl.SSLContextImpl$DefaultManagersHolder.reservedException:Ljava/lang/Exception;
5: iconst_0
anewarray javax.net.ssl.TrustManager
astore 0
end local 1 start local 0 6: StackMap locals: javax.net.ssl.TrustManager[]
StackMap stack:
aload 0
putstatic sun.security.ssl.SSLContextImpl$DefaultManagersHolder.trustManagers:[Ljavax/net/ssl/TrustManager;
7: getstatic sun.security.ssl.SSLContextImpl$DefaultManagersHolder.reservedException:Ljava/lang/Exception;
ifnonnull 15
8: invokestatic sun.security.ssl.SSLContextImpl$DefaultManagersHolder.getKeyManagers:()[Ljavax/net/ssl/KeyManager;
astore 1
start local 1 9: goto 13
end local 1 StackMap locals:
StackMap stack: java.lang.Exception
10: astore 2
start local 2 11: aload 2
putstatic sun.security.ssl.SSLContextImpl$DefaultManagersHolder.reservedException:Ljava/lang/Exception;
12: iconst_0
anewarray javax.net.ssl.KeyManager
astore 1
end local 2 start local 1 13: StackMap locals: javax.net.ssl.KeyManager[]
StackMap stack:
aload 1
putstatic sun.security.ssl.SSLContextImpl$DefaultManagersHolder.keyManagers:[Ljavax/net/ssl/KeyManager;
end local 1 14: goto 16
15: StackMap locals:
StackMap stack:
iconst_0
anewarray javax.net.ssl.KeyManager
putstatic sun.security.ssl.SSLContextImpl$DefaultManagersHolder.keyManagers:[Ljavax/net/ssl/KeyManager;
end local 0 16: StackMap locals:
StackMap stack:
return
LocalVariableTable:
Start End Slot Name Signature
2 3 0 tmMediator [Ljavax/net/ssl/TrustManager;
6 16 0 tmMediator [Ljavax/net/ssl/TrustManager;
4 6 1 e Ljava/lang/Exception;
9 10 1 kmMediator [Ljavax/net/ssl/KeyManager;
13 14 1 kmMediator [Ljavax/net/ssl/KeyManager;
11 13 2 e Ljava/lang/Exception;
Exception table:
from to target type
1 2 3 Class java.lang.Exception
8 9 10 Class java.lang.Exception
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
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/security/ssl/SSLContextImpl$DefaultManagersHolder;
private static javax.net.ssl.TrustManager[] getTrustManagers();
descriptor: ()[Ljavax/net/ssl/TrustManager;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=2, args_size=0
0: ldc "defaultctx"
invokestatic sun.security.ssl.TrustManagerFactoryImpl.getCacertsKeyStore:(Ljava/lang/String;)Ljava/security/KeyStore;
1: astore 0
start local 0 2: invokestatic javax.net.ssl.TrustManagerFactory.getDefaultAlgorithm:()Ljava/lang/String;
3: invokestatic javax.net.ssl.TrustManagerFactory.getInstance:(Ljava/lang/String;)Ljavax/net/ssl/TrustManagerFactory;
astore 1
start local 1 4: aload 1
aload 0
invokevirtual javax.net.ssl.TrustManagerFactory.init:(Ljava/security/KeyStore;)V
5: aload 1
invokevirtual javax.net.ssl.TrustManagerFactory.getTrustManagers:()[Ljavax/net/ssl/TrustManager;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
2 6 0 ks Ljava/security/KeyStore;
4 6 1 tmf Ljavax/net/ssl/TrustManagerFactory;
Exceptions:
throws java.lang.Exception
private static javax.net.ssl.KeyManager[] getKeyManagers();
descriptor: ()[Ljavax/net/ssl/KeyManager;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=9, args_size=0
0: new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
astore 0
start local 0 1: new sun.security.ssl.SSLContextImpl$DefaultManagersHolder$1
dup
aload 0
invokespecial sun.security.ssl.SSLContextImpl$DefaultManagersHolder$1.<init>:(Ljava/util/Map;)V
2: invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedExceptionAction;)Ljava/lang/Object;
pop
3: aload 0
ldc "keyStore"
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.String
astore 1
start local 1 4: aload 0
ldc "keyStoreType"
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.String
astore 2
start local 2 5: aload 0
ldc "keyStoreProvider"
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.String
astore 3
start local 3 6: getstatic sun.security.ssl.SSLContextImpl.debug:Lsun/security/ssl/Debug;
ifnull 14
ldc "defaultctx"
invokestatic sun.security.ssl.Debug.isOn:(Ljava/lang/String;)Z
ifeq 14
7: getstatic java.lang.System.out:Ljava/io/PrintStream;
new java.lang.StringBuilder
dup
ldc "keyStore is : "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
8: getstatic java.lang.System.out:Ljava/io/PrintStream;
new java.lang.StringBuilder
dup
ldc "keyStore type is : "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
9: aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
10: invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
11: getstatic java.lang.System.out:Ljava/io/PrintStream;
new java.lang.StringBuilder
dup
ldc "keyStore provider is : "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
12: aload 3
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
13: invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
14: StackMap locals: java.util.Map java.lang.String java.lang.String java.lang.String
StackMap stack:
ldc "PKCS11"
aload 2
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 17
15: ldc "NONE"
aload 1
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 17
16: new java.lang.IllegalArgumentException
dup
ldc "if keyStoreType is PKCS11, then keyStore must be NONE"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
17: StackMap locals:
StackMap stack:
aconst_null
astore 4
start local 4 18: aload 1
invokevirtual java.lang.String.length:()I
ifeq 21
ldc "NONE"
aload 1
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 21
19: new sun.security.ssl.SSLContextImpl$DefaultManagersHolder$2
dup
aload 1
invokespecial sun.security.ssl.SSLContextImpl$DefaultManagersHolder$2.<init>:(Ljava/lang/String;)V
20: invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedExceptionAction;)Ljava/lang/Object;
checkcast java.io.FileInputStream
astore 4
21: StackMap locals: java.io.FileInputStream
StackMap stack:
aload 0
ldc "keyStorePasswd"
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.String
astore 5
start local 5 22: aconst_null
astore 6
start local 6 23: aload 5
invokevirtual java.lang.String.length:()I
ifeq 25
24: aload 5
invokevirtual java.lang.String.toCharArray:()[C
astore 6
25: StackMap locals: java.lang.String char[]
StackMap stack:
aconst_null
astore 7
start local 7 26: aload 2
invokevirtual java.lang.String.length:()I
ifeq 36
27: getstatic sun.security.ssl.SSLContextImpl.debug:Lsun/security/ssl/Debug;
ifnull 29
ldc "defaultctx"
invokestatic sun.security.ssl.Debug.isOn:(Ljava/lang/String;)Z
ifeq 29
28: getstatic java.lang.System.out:Ljava/io/PrintStream;
ldc "init keystore"
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
29: StackMap locals: java.security.KeyStore
StackMap stack:
aload 3
invokevirtual java.lang.String.length:()I
ifne 32
30: aload 2
invokestatic java.security.KeyStore.getInstance:(Ljava/lang/String;)Ljava/security/KeyStore;
astore 7
31: goto 35
32: StackMap locals:
StackMap stack:
aload 2
33: aload 3
34: invokestatic java.security.KeyStore.getInstance:(Ljava/lang/String;Ljava/lang/String;)Ljava/security/KeyStore;
astore 7
35: StackMap locals:
StackMap stack:
aload 7
aload 4
aload 6
invokevirtual java.security.KeyStore.load:(Ljava/io/InputStream;[C)V
36: StackMap locals:
StackMap stack:
aload 4
ifnull 39
37: aload 4
invokevirtual java.io.FileInputStream.close:()V
38: aconst_null
astore 4
39: StackMap locals:
StackMap stack:
getstatic sun.security.ssl.SSLContextImpl.debug:Lsun/security/ssl/Debug;
ifnull 43
ldc "defaultctx"
invokestatic sun.security.ssl.Debug.isOn:(Ljava/lang/String;)Z
ifeq 43
40: getstatic java.lang.System.out:Ljava/io/PrintStream;
new java.lang.StringBuilder
dup
ldc "init keymanager of type "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
41: invokestatic javax.net.ssl.KeyManagerFactory.getDefaultAlgorithm:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
42: invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
43: StackMap locals:
StackMap stack:
invokestatic javax.net.ssl.KeyManagerFactory.getDefaultAlgorithm:()Ljava/lang/String;
44: invokestatic javax.net.ssl.KeyManagerFactory.getInstance:(Ljava/lang/String;)Ljavax/net/ssl/KeyManagerFactory;
astore 8
start local 8 45: ldc "PKCS11"
aload 2
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 48
46: aload 8
aload 7
aconst_null
invokevirtual javax.net.ssl.KeyManagerFactory.init:(Ljava/security/KeyStore;[C)V
47: goto 49
48: StackMap locals: javax.net.ssl.KeyManagerFactory
StackMap stack:
aload 8
aload 7
aload 6
invokevirtual javax.net.ssl.KeyManagerFactory.init:(Ljava/security/KeyStore;[C)V
49: StackMap locals:
StackMap stack:
aload 8
invokevirtual javax.net.ssl.KeyManagerFactory.getKeyManagers:()[Ljavax/net/ssl/KeyManager;
areturn
end local 8 end local 7 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
1 50 0 props Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
4 50 1 defaultKeyStore Ljava/lang/String;
5 50 2 defaultKeyStoreType Ljava/lang/String;
6 50 3 defaultKeyStoreProvider Ljava/lang/String;
18 50 4 fs Ljava/io/FileInputStream;
22 50 5 defaultKeyStorePassword Ljava/lang/String;
23 50 6 passwd [C
26 50 7 ks Ljava/security/KeyStore;
45 50 8 kmf Ljavax/net/ssl/KeyManagerFactory;
Exceptions:
throws java.lang.Exception
}
SourceFile: "SSLContextImpl.java"
NestHost: sun.security.ssl.SSLContextImpl
InnerClasses:
private final DefaultManagersHolder = sun.security.ssl.SSLContextImpl$DefaultManagersHolder of sun.security.ssl.SSLContextImpl
sun.security.ssl.SSLContextImpl$DefaultManagersHolder$1
sun.security.ssl.SSLContextImpl$DefaultManagersHolder$2