final class sun.security.ssl.X509TrustManagerImpl extends javax.net.ssl.X509ExtendedTrustManager implements javax.net.ssl.X509TrustManager
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: sun.security.ssl.X509TrustManagerImpl
super_class: javax.net.ssl.X509ExtendedTrustManager
{
private final java.lang.String validatorType;
descriptor: Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.util.Collection<java.security.cert.X509Certificate> trustedCerts;
descriptor: Ljava/util/Collection;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Collection<Ljava/security/cert/X509Certificate;>;
private final java.security.cert.PKIXBuilderParameters pkixParams;
descriptor: Ljava/security/cert/PKIXBuilderParameters;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private volatile sun.security.validator.Validator clientValidator;
descriptor: Lsun/security/validator/Validator;
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
private volatile sun.security.validator.Validator serverValidator;
descriptor: Lsun/security/validator/Validator;
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
private static final sun.security.ssl.Debug debug;
descriptor: Lsun/security/ssl/Debug;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
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.X509TrustManagerImpl.debug:Lsun/security/ssl/Debug;
return
LocalVariableTable:
Start End Slot Name Signature
void <init>(java.lang.String, java.security.KeyStore);
descriptor: (Ljava/lang/String;Ljava/security/KeyStore;)V
flags: (0x0000)
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial javax.net.ssl.X509ExtendedTrustManager.<init>:()V
1: aload 0
aload 1
putfield sun.security.ssl.X509TrustManagerImpl.validatorType:Ljava/lang/String;
2: aload 0
aconst_null
putfield sun.security.ssl.X509TrustManagerImpl.pkixParams:Ljava/security/cert/PKIXBuilderParameters;
3: aload 2
ifnonnull 6
4: aload 0
invokestatic java.util.Collections.emptySet:()Ljava/util/Set;
putfield sun.security.ssl.X509TrustManagerImpl.trustedCerts:Ljava/util/Collection;
5: goto 7
6: StackMap locals: sun.security.ssl.X509TrustManagerImpl java.lang.String java.security.KeyStore
StackMap stack:
aload 0
aload 2
invokestatic sun.security.validator.KeyStores.getTrustedCerts:(Ljava/security/KeyStore;)Ljava/util/Set;
putfield sun.security.ssl.X509TrustManagerImpl.trustedCerts:Ljava/util/Collection;
7: StackMap locals:
StackMap stack:
aload 0
invokevirtual sun.security.ssl.X509TrustManagerImpl.showTrustedCerts:()V
8: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lsun/security/ssl/X509TrustManagerImpl;
0 9 1 validatorType Ljava/lang/String;
0 9 2 ks Ljava/security/KeyStore;
Exceptions:
throws java.security.KeyStoreException
MethodParameters:
Name Flags
validatorType
ks
void <init>(java.lang.String, java.security.cert.PKIXBuilderParameters);
descriptor: (Ljava/lang/String;Ljava/security/cert/PKIXBuilderParameters;)V
flags: (0x0000)
Code:
stack=2, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial javax.net.ssl.X509ExtendedTrustManager.<init>:()V
1: aload 0
aload 1
putfield sun.security.ssl.X509TrustManagerImpl.validatorType:Ljava/lang/String;
2: aload 0
aload 2
putfield sun.security.ssl.X509TrustManagerImpl.pkixParams:Ljava/security/cert/PKIXBuilderParameters;
3: aload 0
ldc "tls server"
invokevirtual sun.security.ssl.X509TrustManagerImpl.getValidator:(Ljava/lang/String;)Lsun/security/validator/Validator;
astore 3
start local 3 4: aload 0
aload 3
invokevirtual sun.security.validator.Validator.getTrustedCertificates:()Ljava/util/Collection;
putfield sun.security.ssl.X509TrustManagerImpl.trustedCerts:Ljava/util/Collection;
5: aload 0
aload 3
putfield sun.security.ssl.X509TrustManagerImpl.serverValidator:Lsun/security/validator/Validator;
6: aload 0
invokevirtual sun.security.ssl.X509TrustManagerImpl.showTrustedCerts:()V
7: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lsun/security/ssl/X509TrustManagerImpl;
0 8 1 validatorType Ljava/lang/String;
0 8 2 params Ljava/security/cert/PKIXBuilderParameters;
4 8 3 v Lsun/security/validator/Validator;
MethodParameters:
Name Flags
validatorType
params
public void checkClientTrusted(java.security.cert.X509Certificate[], java.lang.String);
descriptor: ([Ljava/security/cert/X509Certificate;Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
aconst_null
iconst_1
invokevirtual sun.security.ssl.X509TrustManagerImpl.checkTrusted:([Ljava/security/cert/X509Certificate;Ljava/lang/String;Ljava/net/Socket;Z)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/security/ssl/X509TrustManagerImpl;
0 2 1 chain [Ljava/security/cert/X509Certificate;
0 2 2 authType Ljava/lang/String;
Exceptions:
throws java.security.cert.CertificateException
MethodParameters:
Name Flags
chain
authType
public void checkServerTrusted(java.security.cert.X509Certificate[], java.lang.String);
descriptor: ([Ljava/security/cert/X509Certificate;Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
aconst_null
iconst_0
invokevirtual sun.security.ssl.X509TrustManagerImpl.checkTrusted:([Ljava/security/cert/X509Certificate;Ljava/lang/String;Ljava/net/Socket;Z)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/security/ssl/X509TrustManagerImpl;
0 2 1 chain [Ljava/security/cert/X509Certificate;
0 2 2 authType Ljava/lang/String;
Exceptions:
throws java.security.cert.CertificateException
MethodParameters:
Name Flags
chain
authType
public java.security.cert.X509Certificate[] getAcceptedIssuers();
descriptor: ()[Ljava/security/cert/X509Certificate;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
getfield sun.security.ssl.X509TrustManagerImpl.trustedCerts:Ljava/util/Collection;
invokeinterface java.util.Collection.size:()I
anewarray java.security.cert.X509Certificate
astore 1
start local 1 1: aload 0
getfield sun.security.ssl.X509TrustManagerImpl.trustedCerts:Ljava/util/Collection;
aload 1
invokeinterface java.util.Collection.toArray:([Ljava/lang/Object;)[Ljava/lang/Object;
pop
2: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lsun/security/ssl/X509TrustManagerImpl;
1 3 1 certsArray [Ljava/security/cert/X509Certificate;
public void checkClientTrusted(java.security.cert.X509Certificate[], java.lang.String, java.net.Socket);
descriptor: ([Ljava/security/cert/X509Certificate;Ljava/lang/String;Ljava/net/Socket;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
aload 1
aload 2
aload 3
iconst_1
invokevirtual sun.security.ssl.X509TrustManagerImpl.checkTrusted:([Ljava/security/cert/X509Certificate;Ljava/lang/String;Ljava/net/Socket;Z)V
1: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/security/ssl/X509TrustManagerImpl;
0 2 1 chain [Ljava/security/cert/X509Certificate;
0 2 2 authType Ljava/lang/String;
0 2 3 socket Ljava/net/Socket;
Exceptions:
throws java.security.cert.CertificateException
MethodParameters:
Name Flags
chain
authType
socket
public void checkServerTrusted(java.security.cert.X509Certificate[], java.lang.String, java.net.Socket);
descriptor: ([Ljava/security/cert/X509Certificate;Ljava/lang/String;Ljava/net/Socket;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
aload 1
aload 2
aload 3
iconst_0
invokevirtual sun.security.ssl.X509TrustManagerImpl.checkTrusted:([Ljava/security/cert/X509Certificate;Ljava/lang/String;Ljava/net/Socket;Z)V
1: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/security/ssl/X509TrustManagerImpl;
0 2 1 chain [Ljava/security/cert/X509Certificate;
0 2 2 authType Ljava/lang/String;
0 2 3 socket Ljava/net/Socket;
Exceptions:
throws java.security.cert.CertificateException
MethodParameters:
Name Flags
chain
authType
socket
public void checkClientTrusted(java.security.cert.X509Certificate[], java.lang.String, javax.net.ssl.SSLEngine);
descriptor: ([Ljava/security/cert/X509Certificate;Ljava/lang/String;Ljavax/net/ssl/SSLEngine;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
aload 1
aload 2
aload 3
iconst_1
invokevirtual sun.security.ssl.X509TrustManagerImpl.checkTrusted:([Ljava/security/cert/X509Certificate;Ljava/lang/String;Ljavax/net/ssl/SSLEngine;Z)V
1: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/security/ssl/X509TrustManagerImpl;
0 2 1 chain [Ljava/security/cert/X509Certificate;
0 2 2 authType Ljava/lang/String;
0 2 3 engine Ljavax/net/ssl/SSLEngine;
Exceptions:
throws java.security.cert.CertificateException
MethodParameters:
Name Flags
chain
authType
engine
public void checkServerTrusted(java.security.cert.X509Certificate[], java.lang.String, javax.net.ssl.SSLEngine);
descriptor: ([Ljava/security/cert/X509Certificate;Ljava/lang/String;Ljavax/net/ssl/SSLEngine;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
aload 1
aload 2
aload 3
iconst_0
invokevirtual sun.security.ssl.X509TrustManagerImpl.checkTrusted:([Ljava/security/cert/X509Certificate;Ljava/lang/String;Ljavax/net/ssl/SSLEngine;Z)V
1: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/security/ssl/X509TrustManagerImpl;
0 2 1 chain [Ljava/security/cert/X509Certificate;
0 2 2 authType Ljava/lang/String;
0 2 3 engine Ljavax/net/ssl/SSLEngine;
Exceptions:
throws java.security.cert.CertificateException
MethodParameters:
Name Flags
chain
authType
engine
private sun.security.validator.Validator checkTrustedInit(java.security.cert.X509Certificate[], java.lang.String, boolean);
descriptor: ([Ljava/security/cert/X509Certificate;Ljava/lang/String;Z)Lsun/security/validator/Validator;
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=6, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 1
ifnull 1
aload 1
arraylength
ifne 4
1: StackMap locals:
StackMap stack:
new java.lang.IllegalArgumentException
dup
2: ldc "null or zero-length certificate chain"
3: invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
aload 2
ifnull 5
aload 2
invokevirtual java.lang.String.length:()I
ifne 8
5: StackMap locals:
StackMap stack:
new java.lang.IllegalArgumentException
dup
6: ldc "null or zero-length authentication type"
7: invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
8: StackMap locals:
StackMap stack:
aconst_null
astore 4
start local 4 9: iload 3
ifeq 21
10: aload 0
getfield sun.security.ssl.X509TrustManagerImpl.clientValidator:Lsun/security/validator/Validator;
astore 4
11: aload 4
ifnonnull 32
12: aload 0
dup
astore 5
monitorenter
13: aload 0
getfield sun.security.ssl.X509TrustManagerImpl.clientValidator:Lsun/security/validator/Validator;
astore 4
14: aload 4
ifnonnull 17
15: aload 0
ldc "tls client"
invokevirtual sun.security.ssl.X509TrustManagerImpl.getValidator:(Ljava/lang/String;)Lsun/security/validator/Validator;
astore 4
16: aload 0
aload 4
putfield sun.security.ssl.X509TrustManagerImpl.clientValidator:Lsun/security/validator/Validator;
17: StackMap locals: sun.security.validator.Validator sun.security.ssl.X509TrustManagerImpl
StackMap stack:
aload 5
monitorexit
18: goto 32
StackMap locals:
StackMap stack: java.lang.Throwable
19: aload 5
monitorexit
20: athrow
21: StackMap locals:
StackMap stack:
aload 0
getfield sun.security.ssl.X509TrustManagerImpl.serverValidator:Lsun/security/validator/Validator;
astore 4
22: aload 4
ifnonnull 32
23: aload 0
dup
astore 5
monitorenter
24: aload 0
getfield sun.security.ssl.X509TrustManagerImpl.serverValidator:Lsun/security/validator/Validator;
astore 4
25: aload 4
ifnonnull 28
26: aload 0
ldc "tls server"
invokevirtual sun.security.ssl.X509TrustManagerImpl.getValidator:(Ljava/lang/String;)Lsun/security/validator/Validator;
astore 4
27: aload 0
aload 4
putfield sun.security.ssl.X509TrustManagerImpl.serverValidator:Lsun/security/validator/Validator;
28: StackMap locals: sun.security.ssl.X509TrustManagerImpl
StackMap stack:
aload 5
monitorexit
29: goto 32
StackMap locals:
StackMap stack: java.lang.Throwable
30: aload 5
monitorexit
31: athrow
32: StackMap locals:
StackMap stack:
aload 4
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 33 0 this Lsun/security/ssl/X509TrustManagerImpl;
0 33 1 chain [Ljava/security/cert/X509Certificate;
0 33 2 authType Ljava/lang/String;
0 33 3 isClient Z
9 33 4 v Lsun/security/validator/Validator;
Exception table:
from to target type
13 18 19 any
19 20 19 any
24 29 30 any
30 31 30 any
MethodParameters:
Name Flags
chain
authType
isClient
private void checkTrusted(java.security.cert.X509Certificate[], java.lang.String, java.net.Socket, boolean);
descriptor: ([Ljava/security/cert/X509Certificate;Ljava/lang/String;Ljava/net/Socket;Z)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=13, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 0
aload 1
aload 2
iload 4
invokevirtual sun.security.ssl.X509TrustManagerImpl.checkTrustedInit:([Ljava/security/cert/X509Certificate;Ljava/lang/String;Z)Lsun/security/validator/Validator;
astore 5
start local 5 1: aconst_null
astore 6
start local 6 2: aload 3
ifnull 30
aload 3
invokevirtual java.net.Socket.isConnected:()Z
ifeq 30
3: aload 3
instanceof javax.net.ssl.SSLSocket
ifeq 30
4: aload 3
checkcast javax.net.ssl.SSLSocket
astore 7
start local 7 5: aload 7
invokevirtual javax.net.ssl.SSLSocket.getHandshakeSession:()Ljavax/net/ssl/SSLSession;
astore 8
start local 8 6: aload 8
ifnonnull 8
7: new java.security.cert.CertificateException
dup
ldc "No handshake session"
invokespecial java.security.cert.CertificateException.<init>:(Ljava/lang/String;)V
athrow
8: StackMap locals: sun.security.ssl.X509TrustManagerImpl java.security.cert.X509Certificate[] java.lang.String java.net.Socket int sun.security.validator.Validator java.security.AlgorithmConstraints javax.net.ssl.SSLSocket javax.net.ssl.SSLSession
StackMap stack:
aload 7
invokevirtual javax.net.ssl.SSLSocket.getSSLParameters:()Ljavax/net/ssl/SSLParameters;
9: invokevirtual javax.net.ssl.SSLParameters.getEndpointIdentificationAlgorithm:()Ljava/lang/String;
10: astore 9
start local 9 11: aload 9
ifnull 14
aload 9
invokevirtual java.lang.String.length:()I
ifeq 14
12: aload 8
invokeinterface javax.net.ssl.SSLSession.getPeerHost:()Ljava/lang/String;
astore 10
start local 10 13: aload 10
aload 1
iconst_0
aaload
aload 9
invokestatic sun.security.ssl.X509TrustManagerImpl.checkIdentity:(Ljava/lang/String;Ljava/security/cert/X509Certificate;Ljava/lang/String;)V
end local 10 14: StackMap locals: java.lang.String
StackMap stack:
aload 8
invokeinterface javax.net.ssl.SSLSession.getProtocol:()Ljava/lang/String;
invokestatic sun.security.ssl.ProtocolVersion.valueOf:(Ljava/lang/String;)Lsun/security/ssl/ProtocolVersion;
15: astore 10
start local 10 16: aload 10
getfield sun.security.ssl.ProtocolVersion.v:I
getstatic sun.security.ssl.ProtocolVersion.TLS12:Lsun/security/ssl/ProtocolVersion;
getfield sun.security.ssl.ProtocolVersion.v:I
if_icmplt 29
17: aload 8
instanceof javax.net.ssl.ExtendedSSLSession
ifeq 26
18: aload 8
checkcast javax.net.ssl.ExtendedSSLSession
19: astore 11
start local 11 20: aload 11
invokevirtual javax.net.ssl.ExtendedSSLSession.getLocalSupportedSignatureAlgorithms:()[Ljava/lang/String;
21: astore 12
start local 12 22: new sun.security.ssl.SSLAlgorithmConstraints
dup
23: aload 7
aload 12
iconst_0
24: invokespecial sun.security.ssl.SSLAlgorithmConstraints.<init>:(Ljavax/net/ssl/SSLSocket;[Ljava/lang/String;Z)V
astore 6
end local 12 end local 11 25: goto 30
26: StackMap locals: sun.security.ssl.ProtocolVersion
StackMap stack:
new sun.security.ssl.SSLAlgorithmConstraints
dup
aload 7
iconst_0
invokespecial sun.security.ssl.SSLAlgorithmConstraints.<init>:(Ljavax/net/ssl/SSLSocket;Z)V
27: astore 6
28: goto 30
29: StackMap locals:
StackMap stack:
new sun.security.ssl.SSLAlgorithmConstraints
dup
aload 7
iconst_0
invokespecial sun.security.ssl.SSLAlgorithmConstraints.<init>:(Ljavax/net/ssl/SSLSocket;Z)V
astore 6
end local 10 end local 9 end local 8 end local 7 30: StackMap locals: sun.security.ssl.X509TrustManagerImpl java.security.cert.X509Certificate[] java.lang.String java.net.Socket int sun.security.validator.Validator java.security.AlgorithmConstraints
StackMap stack:
aconst_null
astore 7
start local 7 31: iload 4
ifeq 34
32: aload 5
aload 1
aload 6
aconst_null
invokestatic sun.security.ssl.X509TrustManagerImpl.validate:(Lsun/security/validator/Validator;[Ljava/security/cert/X509Certificate;Ljava/security/AlgorithmConstraints;Ljava/lang/String;)[Ljava/security/cert/X509Certificate;
astore 7
33: goto 35
34: StackMap locals: java.security.cert.X509Certificate[]
StackMap stack:
aload 5
aload 1
aload 6
aload 2
invokestatic sun.security.ssl.X509TrustManagerImpl.validate:(Lsun/security/validator/Validator;[Ljava/security/cert/X509Certificate;Ljava/security/AlgorithmConstraints;Ljava/lang/String;)[Ljava/security/cert/X509Certificate;
astore 7
35: StackMap locals:
StackMap stack:
getstatic sun.security.ssl.X509TrustManagerImpl.debug:Lsun/security/ssl/Debug;
ifnull 38
ldc "trustmanager"
invokestatic sun.security.ssl.Debug.isOn:(Ljava/lang/String;)Z
ifeq 38
36: getstatic java.lang.System.out:Ljava/io/PrintStream;
ldc "Found trusted certificate:"
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
37: getstatic java.lang.System.out:Ljava/io/PrintStream;
aload 7
aload 7
arraylength
iconst_1
isub
aaload
invokevirtual java.io.PrintStream.println:(Ljava/lang/Object;)V
38: StackMap locals:
StackMap stack:
return
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 39 0 this Lsun/security/ssl/X509TrustManagerImpl;
0 39 1 chain [Ljava/security/cert/X509Certificate;
0 39 2 authType Ljava/lang/String;
0 39 3 socket Ljava/net/Socket;
0 39 4 isClient Z
1 39 5 v Lsun/security/validator/Validator;
2 39 6 constraints Ljava/security/AlgorithmConstraints;
5 30 7 sslSocket Ljavax/net/ssl/SSLSocket;
6 30 8 session Ljavax/net/ssl/SSLSession;
11 30 9 identityAlg Ljava/lang/String;
13 14 10 hostname Ljava/lang/String;
16 30 10 protocolVersion Lsun/security/ssl/ProtocolVersion;
20 25 11 extSession Ljavax/net/ssl/ExtendedSSLSession;
22 25 12 localSupportedSignAlgs [Ljava/lang/String;
31 39 7 trustedChain [Ljava/security/cert/X509Certificate;
Exceptions:
throws java.security.cert.CertificateException
MethodParameters:
Name Flags
chain
authType
socket
isClient
private void checkTrusted(java.security.cert.X509Certificate[], java.lang.String, javax.net.ssl.SSLEngine, boolean);
descriptor: ([Ljava/security/cert/X509Certificate;Ljava/lang/String;Ljavax/net/ssl/SSLEngine;Z)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=12, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 0
aload 1
aload 2
iload 4
invokevirtual sun.security.ssl.X509TrustManagerImpl.checkTrustedInit:([Ljava/security/cert/X509Certificate;Ljava/lang/String;Z)Lsun/security/validator/Validator;
astore 5
start local 5 1: aconst_null
astore 6
start local 6 2: aload 3
ifnull 28
3: aload 3
invokevirtual javax.net.ssl.SSLEngine.getHandshakeSession:()Ljavax/net/ssl/SSLSession;
astore 7
start local 7 4: aload 7
ifnonnull 6
5: new java.security.cert.CertificateException
dup
ldc "No handshake session"
invokespecial java.security.cert.CertificateException.<init>:(Ljava/lang/String;)V
athrow
6: StackMap locals: sun.security.validator.Validator java.security.AlgorithmConstraints javax.net.ssl.SSLSession
StackMap stack:
aload 3
invokevirtual javax.net.ssl.SSLEngine.getSSLParameters:()Ljavax/net/ssl/SSLParameters;
7: invokevirtual javax.net.ssl.SSLParameters.getEndpointIdentificationAlgorithm:()Ljava/lang/String;
8: astore 8
start local 8 9: aload 8
ifnull 12
aload 8
invokevirtual java.lang.String.length:()I
ifeq 12
10: aload 7
invokeinterface javax.net.ssl.SSLSession.getPeerHost:()Ljava/lang/String;
astore 9
start local 9 11: aload 9
aload 1
iconst_0
aaload
aload 8
invokestatic sun.security.ssl.X509TrustManagerImpl.checkIdentity:(Ljava/lang/String;Ljava/security/cert/X509Certificate;Ljava/lang/String;)V
end local 9 12: StackMap locals: java.lang.String
StackMap stack:
aload 7
invokeinterface javax.net.ssl.SSLSession.getProtocol:()Ljava/lang/String;
invokestatic sun.security.ssl.ProtocolVersion.valueOf:(Ljava/lang/String;)Lsun/security/ssl/ProtocolVersion;
13: astore 9
start local 9 14: aload 9
getfield sun.security.ssl.ProtocolVersion.v:I
getstatic sun.security.ssl.ProtocolVersion.TLS12:Lsun/security/ssl/ProtocolVersion;
getfield sun.security.ssl.ProtocolVersion.v:I
if_icmplt 27
15: aload 7
instanceof javax.net.ssl.ExtendedSSLSession
ifeq 24
16: aload 7
checkcast javax.net.ssl.ExtendedSSLSession
17: astore 10
start local 10 18: aload 10
invokevirtual javax.net.ssl.ExtendedSSLSession.getLocalSupportedSignatureAlgorithms:()[Ljava/lang/String;
19: astore 11
start local 11 20: new sun.security.ssl.SSLAlgorithmConstraints
dup
21: aload 3
aload 11
iconst_0
22: invokespecial sun.security.ssl.SSLAlgorithmConstraints.<init>:(Ljavax/net/ssl/SSLEngine;[Ljava/lang/String;Z)V
astore 6
end local 11 end local 10 23: goto 28
24: StackMap locals: sun.security.ssl.ProtocolVersion
StackMap stack:
new sun.security.ssl.SSLAlgorithmConstraints
dup
aload 3
iconst_0
invokespecial sun.security.ssl.SSLAlgorithmConstraints.<init>:(Ljavax/net/ssl/SSLEngine;Z)V
25: astore 6
26: goto 28
27: StackMap locals:
StackMap stack:
new sun.security.ssl.SSLAlgorithmConstraints
dup
aload 3
iconst_0
invokespecial sun.security.ssl.SSLAlgorithmConstraints.<init>:(Ljavax/net/ssl/SSLEngine;Z)V
astore 6
end local 9 end local 8 end local 7 28: StackMap locals:
StackMap stack:
aconst_null
astore 7
start local 7 29: iload 4
ifeq 32
30: aload 5
aload 1
aload 6
aconst_null
invokestatic sun.security.ssl.X509TrustManagerImpl.validate:(Lsun/security/validator/Validator;[Ljava/security/cert/X509Certificate;Ljava/security/AlgorithmConstraints;Ljava/lang/String;)[Ljava/security/cert/X509Certificate;
astore 7
31: goto 33
32: StackMap locals: java.security.cert.X509Certificate[]
StackMap stack:
aload 5
aload 1
aload 6
aload 2
invokestatic sun.security.ssl.X509TrustManagerImpl.validate:(Lsun/security/validator/Validator;[Ljava/security/cert/X509Certificate;Ljava/security/AlgorithmConstraints;Ljava/lang/String;)[Ljava/security/cert/X509Certificate;
astore 7
33: StackMap locals:
StackMap stack:
getstatic sun.security.ssl.X509TrustManagerImpl.debug:Lsun/security/ssl/Debug;
ifnull 36
ldc "trustmanager"
invokestatic sun.security.ssl.Debug.isOn:(Ljava/lang/String;)Z
ifeq 36
34: getstatic java.lang.System.out:Ljava/io/PrintStream;
ldc "Found trusted certificate:"
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
35: getstatic java.lang.System.out:Ljava/io/PrintStream;
aload 7
aload 7
arraylength
iconst_1
isub
aaload
invokevirtual java.io.PrintStream.println:(Ljava/lang/Object;)V
36: StackMap locals:
StackMap stack:
return
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 37 0 this Lsun/security/ssl/X509TrustManagerImpl;
0 37 1 chain [Ljava/security/cert/X509Certificate;
0 37 2 authType Ljava/lang/String;
0 37 3 engine Ljavax/net/ssl/SSLEngine;
0 37 4 isClient Z
1 37 5 v Lsun/security/validator/Validator;
2 37 6 constraints Ljava/security/AlgorithmConstraints;
4 28 7 session Ljavax/net/ssl/SSLSession;
9 28 8 identityAlg Ljava/lang/String;
11 12 9 hostname Ljava/lang/String;
14 28 9 protocolVersion Lsun/security/ssl/ProtocolVersion;
18 23 10 extSession Ljavax/net/ssl/ExtendedSSLSession;
20 23 11 localSupportedSignAlgs [Ljava/lang/String;
29 37 7 trustedChain [Ljava/security/cert/X509Certificate;
Exceptions:
throws java.security.cert.CertificateException
MethodParameters:
Name Flags
chain
authType
engine
isClient
private void showTrustedCerts();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=3, args_size=1
start local 0 0: getstatic sun.security.ssl.X509TrustManagerImpl.debug:Lsun/security/ssl/Debug;
ifnull 21
ldc "trustmanager"
invokestatic sun.security.ssl.Debug.isOn:(Ljava/lang/String;)Z
ifeq 21
1: aload 0
getfield sun.security.ssl.X509TrustManagerImpl.trustedCerts:Ljava/util/Collection;
invokeinterface java.util.Collection.iterator:()Ljava/util/Iterator;
astore 2
goto 20
StackMap locals: sun.security.ssl.X509TrustManagerImpl top java.util.Iterator
StackMap stack:
2: aload 2
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.security.cert.X509Certificate
astore 1
start local 1 3: getstatic java.lang.System.out:Ljava/io/PrintStream;
ldc "adding as trusted cert:"
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
4: getstatic java.lang.System.out:Ljava/io/PrintStream;
new java.lang.StringBuilder
dup
ldc " Subject: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
5: aload 1
invokevirtual java.security.cert.X509Certificate.getSubjectX500Principal:()Ljavax/security/auth/x500/X500Principal;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
6: invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
7: getstatic java.lang.System.out:Ljava/io/PrintStream;
new java.lang.StringBuilder
dup
ldc " Issuer: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
8: aload 1
invokevirtual java.security.cert.X509Certificate.getIssuerX500Principal:()Ljavax/security/auth/x500/X500Principal;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
9: invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
10: getstatic java.lang.System.out:Ljava/io/PrintStream;
new java.lang.StringBuilder
dup
ldc " Algorithm: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
11: aload 1
invokevirtual java.security.cert.X509Certificate.getPublicKey:()Ljava/security/PublicKey;
invokeinterface java.security.PublicKey.getAlgorithm:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
12: ldc "; Serial number: 0x"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
13: aload 1
invokevirtual java.security.cert.X509Certificate.getSerialNumber:()Ljava/math/BigInteger;
bipush 16
invokevirtual java.math.BigInteger.toString:(I)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
14: invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
15: getstatic java.lang.System.out:Ljava/io/PrintStream;
new java.lang.StringBuilder
dup
ldc " Valid from "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
16: aload 1
invokevirtual java.security.cert.X509Certificate.getNotBefore:()Ljava/util/Date;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc " until "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
17: aload 1
invokevirtual java.security.cert.X509Certificate.getNotAfter:()Ljava/util/Date;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
18: invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
19: getstatic java.lang.System.out:Ljava/io/PrintStream;
invokevirtual java.io.PrintStream.println:()V
end local 1 20: StackMap locals:
StackMap stack:
aload 2
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
21: StackMap locals: sun.security.ssl.X509TrustManagerImpl
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 22 0 this Lsun/security/ssl/X509TrustManagerImpl;
3 20 1 cert Ljava/security/cert/X509Certificate;
private sun.security.validator.Validator getValidator(java.lang.String);
descriptor: (Ljava/lang/String;)Lsun/security/validator/Validator;
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield sun.security.ssl.X509TrustManagerImpl.pkixParams:Ljava/security/cert/PKIXBuilderParameters;
ifnonnull 3
1: aload 0
getfield sun.security.ssl.X509TrustManagerImpl.validatorType:Ljava/lang/String;
aload 1
aload 0
getfield sun.security.ssl.X509TrustManagerImpl.trustedCerts:Ljava/util/Collection;
invokestatic sun.security.validator.Validator.getInstance:(Ljava/lang/String;Ljava/lang/String;Ljava/util/Collection;)Lsun/security/validator/Validator;
astore 2
start local 2 2: goto 4
end local 2 3: StackMap locals:
StackMap stack:
aload 0
getfield sun.security.ssl.X509TrustManagerImpl.validatorType:Ljava/lang/String;
aload 1
aload 0
getfield sun.security.ssl.X509TrustManagerImpl.pkixParams:Ljava/security/cert/PKIXBuilderParameters;
invokestatic sun.security.validator.Validator.getInstance:(Ljava/lang/String;Ljava/lang/String;Ljava/security/cert/PKIXBuilderParameters;)Lsun/security/validator/Validator;
astore 2
start local 2 4: StackMap locals: sun.security.validator.Validator
StackMap stack:
aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lsun/security/ssl/X509TrustManagerImpl;
0 5 1 variant Ljava/lang/String;
2 3 2 v Lsun/security/validator/Validator;
4 5 2 v Lsun/security/validator/Validator;
MethodParameters:
Name Flags
variant
private static java.security.cert.X509Certificate[] validate(sun.security.validator.Validator, java.security.cert.X509Certificate[], java.security.AlgorithmConstraints, java.lang.String);
descriptor: (Lsun/security/validator/Validator;[Ljava/security/cert/X509Certificate;Ljava/security/AlgorithmConstraints;Ljava/lang/String;)[Ljava/security/cert/X509Certificate;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=7, args_size=4
start local 0 start local 1 start local 2 start local 3 0: invokestatic sun.security.ssl.JsseJce.beginFipsProvider:()Ljava/lang/Object;
astore 4
start local 4 1: aload 0
aload 1
aconst_null
aload 2
aload 3
invokevirtual sun.security.validator.Validator.validate:([Ljava/security/cert/X509Certificate;Ljava/util/Collection;Ljava/security/AlgorithmConstraints;Ljava/lang/Object;)[Ljava/security/cert/X509Certificate;
astore 6
2: aload 4
invokestatic sun.security.ssl.JsseJce.endFipsProvider:(Ljava/lang/Object;)V
3: aload 6
areturn
4: StackMap locals: sun.security.validator.Validator java.security.cert.X509Certificate[] java.security.AlgorithmConstraints java.lang.String java.lang.Object
StackMap stack: java.lang.Throwable
astore 5
5: aload 4
invokestatic sun.security.ssl.JsseJce.endFipsProvider:(Ljava/lang/Object;)V
6: aload 5
athrow
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 v Lsun/security/validator/Validator;
0 7 1 chain [Ljava/security/cert/X509Certificate;
0 7 2 constraints Ljava/security/AlgorithmConstraints;
0 7 3 authType Ljava/lang/String;
1 7 4 o Ljava/lang/Object;
Exception table:
from to target type
1 2 4 any
Exceptions:
throws java.security.cert.CertificateException
MethodParameters:
Name Flags
v
chain
constraints
authType
static void checkIdentity(java.lang.String, java.security.cert.X509Certificate, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/security/cert/X509Certificate;Ljava/lang/String;)V
flags: (0x0008) ACC_STATIC
Code:
stack=5, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 2
ifnull 18
aload 2
invokevirtual java.lang.String.length:()I
ifeq 18
1: aload 0
ifnull 4
aload 0
ldc "["
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 4
2: aload 0
ldc "]"
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ifeq 4
3: aload 0
iconst_1
aload 0
invokevirtual java.lang.String.length:()I
iconst_1
isub
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
astore 0
4: StackMap locals:
StackMap stack:
aload 2
ldc "HTTPS"
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifeq 9
5: iconst_1
invokestatic sun.security.util.HostnameChecker.getInstance:(B)Lsun/security/util/HostnameChecker;
6: aload 0
aload 1
7: invokevirtual sun.security.util.HostnameChecker.match:(Ljava/lang/String;Ljava/security/cert/X509Certificate;)V
8: goto 18
StackMap locals:
StackMap stack:
9: aload 2
ldc "LDAP"
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifne 11
10: aload 2
ldc "LDAPS"
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifeq 15
11: StackMap locals:
StackMap stack:
iconst_2
invokestatic sun.security.util.HostnameChecker.getInstance:(B)Lsun/security/util/HostnameChecker;
12: aload 0
aload 1
13: invokevirtual sun.security.util.HostnameChecker.match:(Ljava/lang/String;Ljava/security/cert/X509Certificate;)V
14: goto 18
15: StackMap locals:
StackMap stack:
new java.security.cert.CertificateException
dup
16: new java.lang.StringBuilder
dup
ldc "Unknown identification algorithm: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
17: invokespecial java.security.cert.CertificateException.<init>:(Ljava/lang/String;)V
athrow
18: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 19 0 hostname Ljava/lang/String;
0 19 1 cert Ljava/security/cert/X509Certificate;
0 19 2 algorithm Ljava/lang/String;
Exceptions:
throws java.security.cert.CertificateException
MethodParameters:
Name Flags
hostname
cert
algorithm
}
SourceFile: "X509TrustManagerImpl.java"