abstract class sun.security.ssl.TrustManagerFactoryImpl extends javax.net.ssl.TrustManagerFactorySpi
minor version: 0
major version: 59
flags: flags: (0x0420) ACC_SUPER, ACC_ABSTRACT
this_class: sun.security.ssl.TrustManagerFactoryImpl
super_class: javax.net.ssl.TrustManagerFactorySpi
{
private static final sun.security.ssl.Debug debug;
descriptor: Lsun/security/ssl/Debug;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private javax.net.ssl.X509TrustManager trustManager;
descriptor: Ljavax/net/ssl/X509TrustManager;
flags: (0x0002) ACC_PRIVATE
private boolean isInitialized;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc "ssl"
invokestatic sun.security.ssl.Debug.getInstance:(Ljava/lang/String;)Lsun/security/ssl/Debug;
putstatic sun.security.ssl.TrustManagerFactoryImpl.debug:Lsun/security/ssl/Debug;
return
LocalVariableTable:
Start End Slot Name Signature
void <init>();
descriptor: ()V
flags: (0x0000)
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokespecial javax.net.ssl.TrustManagerFactorySpi.<init>:()V
1: aload 0
aconst_null
putfield sun.security.ssl.TrustManagerFactoryImpl.trustManager:Ljavax/net/ssl/X509TrustManager;
2: aload 0
iconst_0
putfield sun.security.ssl.TrustManagerFactoryImpl.isInitialized:Z
3: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lsun/security/ssl/TrustManagerFactoryImpl;
protected void engineInit(java.security.KeyStore);
descriptor: (Ljava/security/KeyStore;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: aload 1
ifnonnull 29
1: ldc "trustmanager"
invokestatic sun.security.ssl.TrustManagerFactoryImpl.getCacertsKeyStore:(Ljava/lang/String;)Ljava/security/KeyStore;
astore 1
2: goto 29
StackMap locals:
StackMap stack: java.lang.SecurityException
3: astore 2
start local 2 4: getstatic sun.security.ssl.TrustManagerFactoryImpl.debug:Lsun/security/ssl/Debug;
ifnull 29
ldc "trustmanager"
invokestatic sun.security.ssl.Debug.isOn:(Ljava/lang/String;)Z
ifeq 29
5: getstatic java.lang.System.out:Ljava/io/PrintStream;
6: new java.lang.StringBuilder
dup
ldc "SunX509: skip default keystore: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
7: invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
end local 2 8: goto 29
9: StackMap locals:
StackMap stack: java.lang.Error
astore 2
start local 2 10: getstatic sun.security.ssl.TrustManagerFactoryImpl.debug:Lsun/security/ssl/Debug;
ifnull 14
ldc "trustmanager"
invokestatic sun.security.ssl.Debug.isOn:(Ljava/lang/String;)Z
ifeq 14
11: getstatic java.lang.System.out:Ljava/io/PrintStream;
12: new java.lang.StringBuilder
dup
ldc "SunX509: skip default keystore: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)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.lang.Error
StackMap stack:
aload 2
athrow
end local 2 15: StackMap locals: sun.security.ssl.TrustManagerFactoryImpl java.security.KeyStore
StackMap stack: java.lang.RuntimeException
astore 2
start local 2 16: getstatic sun.security.ssl.TrustManagerFactoryImpl.debug:Lsun/security/ssl/Debug;
ifnull 20
ldc "trustmanager"
invokestatic sun.security.ssl.Debug.isOn:(Ljava/lang/String;)Z
ifeq 20
17: getstatic java.lang.System.out:Ljava/io/PrintStream;
18: new java.lang.StringBuilder
dup
ldc "SunX509: skip default keystore: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
19: invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
20: StackMap locals: java.lang.RuntimeException
StackMap stack:
aload 2
athrow
end local 2 21: StackMap locals: sun.security.ssl.TrustManagerFactoryImpl java.security.KeyStore
StackMap stack: java.lang.Exception
astore 2
start local 2 22: getstatic sun.security.ssl.TrustManagerFactoryImpl.debug:Lsun/security/ssl/Debug;
ifnull 26
ldc "trustmanager"
invokestatic sun.security.ssl.Debug.isOn:(Ljava/lang/String;)Z
ifeq 26
23: getstatic java.lang.System.out:Ljava/io/PrintStream;
24: new java.lang.StringBuilder
dup
ldc "SunX509: skip default keystore: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
25: invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
26: StackMap locals: java.lang.Exception
StackMap stack:
new java.security.KeyStoreException
dup
27: new java.lang.StringBuilder
dup
ldc "problem accessing trust store"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
28: invokespecial java.security.KeyStoreException.<init>:(Ljava/lang/String;)V
athrow
end local 2 29: StackMap locals:
StackMap stack:
aload 0
aload 0
aload 1
invokevirtual sun.security.ssl.TrustManagerFactoryImpl.getInstance:(Ljava/security/KeyStore;)Ljavax/net/ssl/X509TrustManager;
putfield sun.security.ssl.TrustManagerFactoryImpl.trustManager:Ljavax/net/ssl/X509TrustManager;
30: aload 0
iconst_1
putfield sun.security.ssl.TrustManagerFactoryImpl.isInitialized:Z
31: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 32 0 this Lsun/security/ssl/TrustManagerFactoryImpl;
0 32 1 ks Ljava/security/KeyStore;
4 8 2 se Ljava/lang/SecurityException;
10 15 2 err Ljava/lang/Error;
16 21 2 re Ljava/lang/RuntimeException;
22 29 2 e Ljava/lang/Exception;
Exception table:
from to target type
1 2 3 Class java.lang.SecurityException
1 2 9 Class java.lang.Error
1 2 15 Class java.lang.RuntimeException
1 2 21 Class java.lang.Exception
Exceptions:
throws java.security.KeyStoreException
MethodParameters:
Name Flags
ks
abstract javax.net.ssl.X509TrustManager getInstance(java.security.KeyStore);
descriptor: (Ljava/security/KeyStore;)Ljavax/net/ssl/X509TrustManager;
flags: (0x0400) ACC_ABSTRACT
Exceptions:
throws java.security.KeyStoreException
MethodParameters:
Name Flags
ks
abstract javax.net.ssl.X509TrustManager getInstance(javax.net.ssl.ManagerFactoryParameters);
descriptor: (Ljavax/net/ssl/ManagerFactoryParameters;)Ljavax/net/ssl/X509TrustManager;
flags: (0x0400) ACC_ABSTRACT
Exceptions:
throws java.security.InvalidAlgorithmParameterException
MethodParameters:
Name Flags
spec
protected void engineInit(javax.net.ssl.ManagerFactoryParameters);
descriptor: (Ljavax/net/ssl/ManagerFactoryParameters;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 0
aload 1
invokevirtual sun.security.ssl.TrustManagerFactoryImpl.getInstance:(Ljavax/net/ssl/ManagerFactoryParameters;)Ljavax/net/ssl/X509TrustManager;
putfield sun.security.ssl.TrustManagerFactoryImpl.trustManager:Ljavax/net/ssl/X509TrustManager;
1: aload 0
iconst_1
putfield sun.security.ssl.TrustManagerFactoryImpl.isInitialized:Z
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lsun/security/ssl/TrustManagerFactoryImpl;
0 3 1 spec Ljavax/net/ssl/ManagerFactoryParameters;
Exceptions:
throws java.security.InvalidAlgorithmParameterException
MethodParameters:
Name Flags
spec
protected javax.net.ssl.TrustManager[] engineGetTrustManagers();
descriptor: ()[Ljavax/net/ssl/TrustManager;
flags: (0x0004) ACC_PROTECTED
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.security.ssl.TrustManagerFactoryImpl.isInitialized:Z
ifne 4
1: new java.lang.IllegalStateException
dup
2: ldc "TrustManagerFactoryImpl is not initialized"
3: invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
iconst_1
anewarray javax.net.ssl.TrustManager
dup
iconst_0
aload 0
getfield sun.security.ssl.TrustManagerFactoryImpl.trustManager:Ljavax/net/ssl/X509TrustManager;
aastore
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lsun/security/ssl/TrustManagerFactoryImpl;
private static java.io.FileInputStream getFileInputStream(java.io.File);
descriptor: (Ljava/io/File;)Ljava/io/FileInputStream;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new sun.security.ssl.TrustManagerFactoryImpl$1
dup
aload 0
invokespecial sun.security.ssl.TrustManagerFactoryImpl$1.<init>:(Ljava/io/File;)V
1: invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedExceptionAction;)Ljava/lang/Object;
checkcast java.io.FileInputStream
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 file Ljava/io/File;
Exceptions:
throws java.lang.Exception
MethodParameters:
Name Flags
file final
static java.security.KeyStore getCacertsKeyStore(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/security/KeyStore;
flags: (0x0008) ACC_STATIC
Code:
stack=5, locals=12, args_size=1
start local 0 0: aconst_null
astore 1
start local 1 1: aconst_null
astore 2
start local 2 2: aconst_null
astore 3
start local 3 3: new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
astore 6
start local 6 4: getstatic java.io.File.separator:Ljava/lang/String;
astore 7
start local 7 5: aconst_null
astore 8
start local 8 6: new sun.security.ssl.TrustManagerFactoryImpl$2
dup
aload 6
invokespecial sun.security.ssl.TrustManagerFactoryImpl$2.<init>:(Ljava/util/HashMap;)V
invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedExceptionAction;)Ljava/lang/Object;
pop
7: aload 6
ldc "trustStore"
invokevirtual java.util.HashMap.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.String
astore 1
8: ldc "NONE"
aload 1
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 28
9: aload 1
ifnull 13
10: new java.io.File
dup
aload 1
invokespecial java.io.File.<init>:(Ljava/lang/String;)V
astore 2
11: aload 2
invokestatic sun.security.ssl.TrustManagerFactoryImpl.getFileInputStream:(Ljava/io/File;)Ljava/io/FileInputStream;
astore 3
12: goto 24
13: StackMap locals: java.lang.String java.lang.String java.io.File java.io.FileInputStream top top java.util.HashMap java.lang.String java.security.KeyStore
StackMap stack:
aload 6
ldc "javaHome"
invokevirtual java.util.HashMap.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.String
astore 9
start local 9 14: new java.io.File
dup
new java.lang.StringBuilder
dup
aload 9
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 7
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "lib"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 7
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
15: ldc "security"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 7
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
16: ldc "jssecacerts"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
17: invokespecial java.io.File.<init>:(Ljava/lang/String;)V
astore 2
18: aload 2
invokestatic sun.security.ssl.TrustManagerFactoryImpl.getFileInputStream:(Ljava/io/File;)Ljava/io/FileInputStream;
dup
astore 3
ifnonnull 24
19: new java.io.File
dup
new java.lang.StringBuilder
dup
aload 9
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 7
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "lib"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 7
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
20: ldc "security"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 7
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
21: ldc "cacerts"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
22: invokespecial java.io.File.<init>:(Ljava/lang/String;)V
astore 2
23: aload 2
invokestatic sun.security.ssl.TrustManagerFactoryImpl.getFileInputStream:(Ljava/io/File;)Ljava/io/FileInputStream;
astore 3
end local 9 24: StackMap locals:
StackMap stack:
aload 3
ifnull 27
25: aload 2
invokevirtual java.io.File.getPath:()Ljava/lang/String;
astore 1
26: goto 28
27: StackMap locals:
StackMap stack:
ldc "No File Available, using empty keystore."
astore 1
28: StackMap locals:
StackMap stack:
aload 6
ldc "trustStoreType"
invokevirtual java.util.HashMap.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.String
astore 4
start local 4 29: aload 6
ldc "trustStoreProvider"
invokevirtual java.util.HashMap.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.String
astore 5
start local 5 30: getstatic sun.security.ssl.TrustManagerFactoryImpl.debug:Lsun/security/ssl/Debug;
ifnull 38
aload 0
invokestatic sun.security.ssl.Debug.isOn:(Ljava/lang/String;)Z
ifeq 38
31: getstatic java.lang.System.out:Ljava/io/PrintStream;
new java.lang.StringBuilder
dup
ldc "trustStore 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
32: getstatic java.lang.System.out:Ljava/io/PrintStream;
new java.lang.StringBuilder
dup
ldc "trustStore type is : "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
33: aload 4
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
34: invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
35: getstatic java.lang.System.out:Ljava/io/PrintStream;
new java.lang.StringBuilder
dup
ldc "trustStore provider is : "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
36: aload 5
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
37: invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
38: StackMap locals: java.lang.String java.lang.String java.io.File java.io.FileInputStream java.lang.String java.lang.String java.util.HashMap java.lang.String java.security.KeyStore
StackMap stack:
aload 4
invokevirtual java.lang.String.length:()I
ifeq 58
39: getstatic sun.security.ssl.TrustManagerFactoryImpl.debug:Lsun/security/ssl/Debug;
ifnull 41
aload 0
invokestatic sun.security.ssl.Debug.isOn:(Ljava/lang/String;)Z
ifeq 41
40: getstatic java.lang.System.out:Ljava/io/PrintStream;
ldc "init truststore"
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
41: StackMap locals:
StackMap stack:
aload 5
invokevirtual java.lang.String.length:()I
ifne 44
42: aload 4
invokestatic java.security.KeyStore.getInstance:(Ljava/lang/String;)Ljava/security/KeyStore;
astore 8
43: goto 47
44: StackMap locals:
StackMap stack:
aload 4
45: aload 5
46: invokestatic java.security.KeyStore.getInstance:(Ljava/lang/String;Ljava/lang/String;)Ljava/security/KeyStore;
astore 8
47: StackMap locals:
StackMap stack:
aconst_null
astore 9
start local 9 48: aload 6
ldc "trustStorePasswd"
invokevirtual java.util.HashMap.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.String
astore 10
start local 10 49: aload 10
invokevirtual java.lang.String.length:()I
ifeq 51
50: aload 10
invokevirtual java.lang.String.toCharArray:()[C
astore 9
51: StackMap locals: char[] java.lang.String
StackMap stack:
aload 8
aload 3
aload 9
invokevirtual java.security.KeyStore.load:(Ljava/io/InputStream;[C)V
52: aload 9
ifnull 58
53: iconst_0
istore 11
start local 11 54: goto 57
55: StackMap locals: int
StackMap stack:
aload 9
iload 11
iconst_0
castore
56: iinc 11 1
StackMap locals:
StackMap stack:
57: iload 11
aload 9
arraylength
if_icmplt 55
end local 11 end local 10 end local 9 58: StackMap locals:
StackMap stack:
aload 3
ifnull 60
59: aload 3
invokevirtual java.io.FileInputStream.close:()V
60: StackMap locals:
StackMap stack:
aload 8
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
0 61 0 dbgname Ljava/lang/String;
1 61 1 storeFileName Ljava/lang/String;
2 61 2 storeFile Ljava/io/File;
3 61 3 fis Ljava/io/FileInputStream;
29 61 4 defaultTrustStoreType Ljava/lang/String;
30 61 5 defaultTrustStoreProvider Ljava/lang/String;
4 61 6 props Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/String;>;
5 61 7 sep Ljava/lang/String;
6 61 8 ks Ljava/security/KeyStore;
14 24 9 javaHome Ljava/lang/String;
48 58 9 passwd [C
49 58 10 defaultTrustStorePassword Ljava/lang/String;
54 58 11 i I
Exceptions:
throws java.lang.Exception
MethodParameters:
Name Flags
dbgname
}
SourceFile: "TrustManagerFactoryImpl.java"
NestMembers:
sun.security.ssl.TrustManagerFactoryImpl$1 sun.security.ssl.TrustManagerFactoryImpl$2 sun.security.ssl.TrustManagerFactoryImpl$PKIXFactory sun.security.ssl.TrustManagerFactoryImpl$SimpleFactory
InnerClasses:
sun.security.ssl.TrustManagerFactoryImpl$1
sun.security.ssl.TrustManagerFactoryImpl$2
public final PKIXFactory = sun.security.ssl.TrustManagerFactoryImpl$PKIXFactory of sun.security.ssl.TrustManagerFactoryImpl
public final SimpleFactory = sun.security.ssl.TrustManagerFactoryImpl$SimpleFactory of sun.security.ssl.TrustManagerFactoryImpl