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.util.Collection<java.security.cert.X509Certificate>);
descriptor: (Ljava/lang/String;Ljava/util/Collection;)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 5
4: invokestatic java.util.Collections.emptySet:()Ljava/util/Set;
astore 2
5: StackMap locals: sun.security.ssl.X509TrustManagerImpl java.lang.String java.util.Collection
StackMap stack:
aload 0
aload 2
putfield sun.security.ssl.X509TrustManagerImpl.trustedCerts:Ljava/util/Collection;
6: getstatic sun.security.ssl.X509TrustManagerImpl.debug:Lsun/security/ssl/Debug;
ifnull 8
ldc "trustmanager"
invokestatic sun.security.ssl.Debug.isOn:(Ljava/lang/String;)Z
ifeq 8
7: aload 0
invokevirtual sun.security.ssl.X509TrustManagerImpl.showTrustedCerts:()V
8: StackMap locals:
StackMap stack:
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 trustedCerts Ljava/util/Collection<Ljava/security/cert/X509Certificate;>;
Signature: (Ljava/lang/String;Ljava/util/Collection<Ljava/security/cert/X509Certificate;>;)V
MethodParameters:
Name Flags
validatorType
trustedCerts
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: getstatic sun.security.ssl.X509TrustManagerImpl.debug:Lsun/security/ssl/Debug;
ifnull 8
ldc "trustmanager"
invokestatic sun.security.ssl.Debug.isOn:(Ljava/lang/String;)Z
ifeq 8
7: aload 0
invokevirtual sun.security.ssl.X509TrustManagerImpl.showTrustedCerts:()V
8: StackMap locals: sun.security.ssl.X509TrustManagerImpl java.lang.String java.security.cert.PKIXBuilderParameters sun.security.validator.Validator
StackMap stack:
return
end local 3 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 params Ljava/security/cert/PKIXBuilderParameters;
4 9 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=6, locals=15, 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 39
aload 3
invokevirtual java.net.Socket.isConnected:()Z
ifeq 39
3: aload 3
instanceof javax.net.ssl.SSLSocket
ifeq 39
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.cert.X509Certificate[] javax.net.ssl.SSLSocket javax.net.ssl.SSLSession
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;
9: astore 9
start local 9 10: aload 8
instanceof javax.net.ssl.ExtendedSSLSession
istore 10
start local 10 11: aconst_null
astore 11
start local 11 12: 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 20
iload 10
ifeq 20
13: aload 8
checkcast javax.net.ssl.ExtendedSSLSession
astore 12
start local 12 14: aload 12
invokevirtual javax.net.ssl.ExtendedSSLSession.getLocalSupportedSignatureAlgorithms:()[Ljava/lang/String;
15: astore 13
start local 13 16: new sun.security.ssl.SSLAlgorithmConstraints
dup
17: aload 7
aload 13
iconst_0
18: invokespecial sun.security.ssl.SSLAlgorithmConstraints.<init>:(Ljavax/net/ssl/SSLSocket;[Ljava/lang/String;Z)V
astore 11
end local 13 end local 12 19: goto 21
20: StackMap locals: sun.security.ssl.ProtocolVersion int java.security.AlgorithmConstraints
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 11
21: StackMap locals:
StackMap stack:
invokestatic java.util.Collections.emptyList:()Ljava/util/List;
astore 12
start local 12 22: iload 4
ifne 25
iload 10
ifeq 25
23: aload 8
checkcast javax.net.ssl.ExtendedSSLSession
invokevirtual javax.net.ssl.ExtendedSSLSession.getStatusResponses:()Ljava/util/List;
24: astore 12
25: StackMap locals: java.util.List
StackMap stack:
aload 5
aload 1
aload 12
26: aload 11
iload 4
ifeq 27
aconst_null
goto 28
StackMap locals: sun.security.ssl.X509TrustManagerImpl java.security.cert.X509Certificate[] java.lang.String java.net.Socket int sun.security.validator.Validator java.security.cert.X509Certificate[] javax.net.ssl.SSLSocket javax.net.ssl.SSLSession sun.security.ssl.ProtocolVersion int java.security.AlgorithmConstraints java.util.List
StackMap stack: sun.security.validator.Validator java.security.cert.X509Certificate[] java.util.List java.security.AlgorithmConstraints
27: aload 2
28: StackMap locals: sun.security.ssl.X509TrustManagerImpl java.security.cert.X509Certificate[] java.lang.String java.net.Socket int sun.security.validator.Validator java.security.cert.X509Certificate[] javax.net.ssl.SSLSocket javax.net.ssl.SSLSession sun.security.ssl.ProtocolVersion int java.security.AlgorithmConstraints java.util.List
StackMap stack: sun.security.validator.Validator java.security.cert.X509Certificate[] java.util.List java.security.AlgorithmConstraints java.lang.String
invokestatic sun.security.ssl.X509TrustManagerImpl.validate:(Lsun/security/validator/Validator;[Ljava/security/cert/X509Certificate;Ljava/util/List;Ljava/security/AlgorithmConstraints;Ljava/lang/String;)[Ljava/security/cert/X509Certificate;
astore 6
29: aload 6
aload 6
arraylength
iconst_1
isub
aaload
invokestatic sun.security.util.AnchorCertificates.contains:(Ljava/security/cert/X509Certificate;)Z
30: istore 13
start local 13 31: aload 7
invokevirtual javax.net.ssl.SSLSocket.getSSLParameters:()Ljavax/net/ssl/SSLParameters;
32: invokevirtual javax.net.ssl.SSLParameters.getEndpointIdentificationAlgorithm:()Ljava/lang/String;
33: astore 14
start local 14 34: aload 14
ifnull 43
aload 14
invokevirtual java.lang.String.length:()I
ifeq 43
35: aload 8
aload 6
iconst_0
aaload
aload 14
iload 4
36: aload 3
invokestatic sun.security.ssl.X509TrustManagerImpl.getRequestedServerNames:(Ljava/net/Socket;)Ljava/util/List;
iload 13
37: invokestatic sun.security.ssl.X509TrustManagerImpl.checkIdentity:(Ljavax/net/ssl/SSLSession;Ljava/security/cert/X509Certificate;Ljava/lang/String;ZLjava/util/List;Z)V
end local 14 end local 13 end local 12 end local 11 end local 10 end local 9 end local 8 end local 7 38: goto 43
39: StackMap locals: sun.security.ssl.X509TrustManagerImpl java.security.cert.X509Certificate[] java.lang.String java.net.Socket int sun.security.validator.Validator java.security.cert.X509Certificate[]
StackMap stack:
aload 5
aload 1
invokestatic java.util.Collections.emptyList:()Ljava/util/List;
40: aconst_null
iload 4
ifeq 41
aconst_null
goto 42
StackMap locals: sun.security.ssl.X509TrustManagerImpl java.security.cert.X509Certificate[] java.lang.String java.net.Socket int sun.security.validator.Validator java.security.cert.X509Certificate[]
StackMap stack: sun.security.validator.Validator java.security.cert.X509Certificate[] java.util.List null
41: aload 2
42: StackMap locals: sun.security.ssl.X509TrustManagerImpl java.security.cert.X509Certificate[] java.lang.String java.net.Socket int sun.security.validator.Validator java.security.cert.X509Certificate[]
StackMap stack: sun.security.validator.Validator java.security.cert.X509Certificate[] java.util.List null java.lang.String
invokestatic sun.security.ssl.X509TrustManagerImpl.validate:(Lsun/security/validator/Validator;[Ljava/security/cert/X509Certificate;Ljava/util/List;Ljava/security/AlgorithmConstraints;Ljava/lang/String;)[Ljava/security/cert/X509Certificate;
astore 6
43: StackMap locals:
StackMap stack:
getstatic sun.security.ssl.X509TrustManagerImpl.debug:Lsun/security/ssl/Debug;
ifnull 46
ldc "trustmanager"
invokestatic sun.security.ssl.Debug.isOn:(Ljava/lang/String;)Z
ifeq 46
44: getstatic java.lang.System.out:Ljava/io/PrintStream;
ldc "Found trusted certificate:"
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
45: getstatic java.lang.System.out:Ljava/io/PrintStream;
aload 6
aload 6
arraylength
iconst_1
isub
aaload
invokevirtual java.io.PrintStream.println:(Ljava/lang/Object;)V
46: StackMap locals:
StackMap stack:
return
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 47 0 this Lsun/security/ssl/X509TrustManagerImpl;
0 47 1 chain [Ljava/security/cert/X509Certificate;
0 47 2 authType Ljava/lang/String;
0 47 3 socket Ljava/net/Socket;
0 47 4 isClient Z
1 47 5 v Lsun/security/validator/Validator;
2 47 6 trustedChain [Ljava/security/cert/X509Certificate;
5 38 7 sslSocket Ljavax/net/ssl/SSLSocket;
6 38 8 session Ljavax/net/ssl/SSLSession;
10 38 9 protocolVersion Lsun/security/ssl/ProtocolVersion;
11 38 10 isExtSession Z
12 38 11 constraints Ljava/security/AlgorithmConstraints;
14 19 12 extSession Ljavax/net/ssl/ExtendedSSLSession;
16 19 13 localSupportedSignAlgs [Ljava/lang/String;
22 38 12 responseList Ljava/util/List<[B>;
31 38 13 chainsToPublicCA Z
34 38 14 identityAlg Ljava/lang/String;
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=6, locals=14, 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 37
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.cert.X509Certificate[] javax.net.ssl.SSLSession
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;
7: astore 8
start local 8 8: aload 7
instanceof javax.net.ssl.ExtendedSSLSession
istore 9
start local 9 9: aconst_null
astore 10
start local 10 10: aload 8
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 18
iload 9
ifeq 18
11: aload 7
checkcast javax.net.ssl.ExtendedSSLSession
astore 11
start local 11 12: aload 11
invokevirtual javax.net.ssl.ExtendedSSLSession.getLocalSupportedSignatureAlgorithms:()[Ljava/lang/String;
13: astore 12
start local 12 14: new sun.security.ssl.SSLAlgorithmConstraints
dup
15: aload 3
aload 12
iconst_0
16: invokespecial sun.security.ssl.SSLAlgorithmConstraints.<init>:(Ljavax/net/ssl/SSLEngine;[Ljava/lang/String;Z)V
astore 10
end local 12 end local 11 17: goto 19
18: StackMap locals: sun.security.ssl.ProtocolVersion int java.security.AlgorithmConstraints
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 10
19: StackMap locals:
StackMap stack:
invokestatic java.util.Collections.emptyList:()Ljava/util/List;
astore 11
start local 11 20: iload 4
ifne 23
iload 9
ifeq 23
21: aload 7
checkcast javax.net.ssl.ExtendedSSLSession
invokevirtual javax.net.ssl.ExtendedSSLSession.getStatusResponses:()Ljava/util/List;
22: astore 11
23: StackMap locals: java.util.List
StackMap stack:
aload 5
aload 1
aload 11
24: aload 10
iload 4
ifeq 25
aconst_null
goto 26
StackMap locals: sun.security.ssl.X509TrustManagerImpl java.security.cert.X509Certificate[] java.lang.String javax.net.ssl.SSLEngine int sun.security.validator.Validator java.security.cert.X509Certificate[] javax.net.ssl.SSLSession sun.security.ssl.ProtocolVersion int java.security.AlgorithmConstraints java.util.List
StackMap stack: sun.security.validator.Validator java.security.cert.X509Certificate[] java.util.List java.security.AlgorithmConstraints
25: aload 2
26: StackMap locals: sun.security.ssl.X509TrustManagerImpl java.security.cert.X509Certificate[] java.lang.String javax.net.ssl.SSLEngine int sun.security.validator.Validator java.security.cert.X509Certificate[] javax.net.ssl.SSLSession sun.security.ssl.ProtocolVersion int java.security.AlgorithmConstraints java.util.List
StackMap stack: sun.security.validator.Validator java.security.cert.X509Certificate[] java.util.List java.security.AlgorithmConstraints java.lang.String
invokestatic sun.security.ssl.X509TrustManagerImpl.validate:(Lsun/security/validator/Validator;[Ljava/security/cert/X509Certificate;Ljava/util/List;Ljava/security/AlgorithmConstraints;Ljava/lang/String;)[Ljava/security/cert/X509Certificate;
astore 6
27: aload 6
aload 6
arraylength
iconst_1
isub
aaload
invokestatic sun.security.util.AnchorCertificates.contains:(Ljava/security/cert/X509Certificate;)Z
28: istore 12
start local 12 29: aload 3
invokevirtual javax.net.ssl.SSLEngine.getSSLParameters:()Ljavax/net/ssl/SSLParameters;
30: invokevirtual javax.net.ssl.SSLParameters.getEndpointIdentificationAlgorithm:()Ljava/lang/String;
31: astore 13
start local 13 32: aload 13
ifnull 41
aload 13
invokevirtual java.lang.String.length:()I
ifeq 41
33: aload 7
aload 6
iconst_0
aaload
aload 13
iload 4
34: aload 3
invokestatic sun.security.ssl.X509TrustManagerImpl.getRequestedServerNames:(Ljavax/net/ssl/SSLEngine;)Ljava/util/List;
iload 12
35: invokestatic sun.security.ssl.X509TrustManagerImpl.checkIdentity:(Ljavax/net/ssl/SSLSession;Ljava/security/cert/X509Certificate;Ljava/lang/String;ZLjava/util/List;Z)V
end local 13 end local 12 end local 11 end local 10 end local 9 end local 8 end local 7 36: goto 41
37: StackMap locals: sun.security.ssl.X509TrustManagerImpl java.security.cert.X509Certificate[] java.lang.String javax.net.ssl.SSLEngine int sun.security.validator.Validator java.security.cert.X509Certificate[]
StackMap stack:
aload 5
aload 1
invokestatic java.util.Collections.emptyList:()Ljava/util/List;
38: aconst_null
iload 4
ifeq 39
aconst_null
goto 40
StackMap locals: sun.security.ssl.X509TrustManagerImpl java.security.cert.X509Certificate[] java.lang.String javax.net.ssl.SSLEngine int sun.security.validator.Validator java.security.cert.X509Certificate[]
StackMap stack: sun.security.validator.Validator java.security.cert.X509Certificate[] java.util.List null
39: aload 2
40: StackMap locals: sun.security.ssl.X509TrustManagerImpl java.security.cert.X509Certificate[] java.lang.String javax.net.ssl.SSLEngine int sun.security.validator.Validator java.security.cert.X509Certificate[]
StackMap stack: sun.security.validator.Validator java.security.cert.X509Certificate[] java.util.List null java.lang.String
invokestatic sun.security.ssl.X509TrustManagerImpl.validate:(Lsun/security/validator/Validator;[Ljava/security/cert/X509Certificate;Ljava/util/List;Ljava/security/AlgorithmConstraints;Ljava/lang/String;)[Ljava/security/cert/X509Certificate;
astore 6
41: StackMap locals:
StackMap stack:
getstatic sun.security.ssl.X509TrustManagerImpl.debug:Lsun/security/ssl/Debug;
ifnull 44
ldc "trustmanager"
invokestatic sun.security.ssl.Debug.isOn:(Ljava/lang/String;)Z
ifeq 44
42: getstatic java.lang.System.out:Ljava/io/PrintStream;
ldc "Found trusted certificate:"
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
43: getstatic java.lang.System.out:Ljava/io/PrintStream;
aload 6
aload 6
arraylength
iconst_1
isub
aaload
invokevirtual java.io.PrintStream.println:(Ljava/lang/Object;)V
44: StackMap locals:
StackMap stack:
return
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 45 0 this Lsun/security/ssl/X509TrustManagerImpl;
0 45 1 chain [Ljava/security/cert/X509Certificate;
0 45 2 authType Ljava/lang/String;
0 45 3 engine Ljavax/net/ssl/SSLEngine;
0 45 4 isClient Z
1 45 5 v Lsun/security/validator/Validator;
2 45 6 trustedChain [Ljava/security/cert/X509Certificate;
4 36 7 session Ljavax/net/ssl/SSLSession;
8 36 8 protocolVersion Lsun/security/ssl/ProtocolVersion;
9 36 9 isExtSession Z
10 36 10 constraints Ljava/security/AlgorithmConstraints;
12 17 11 extSession Ljavax/net/ssl/ExtendedSSLSession;
14 17 12 localSupportedSignAlgs [Ljava/lang/String;
20 36 11 responseList Ljava/util/List<[B>;
29 36 12 chainsToPublicCA Z
32 36 13 identityAlg Ljava/lang/String;
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: aload 0
getfield sun.security.ssl.X509TrustManagerImpl.trustedCerts:Ljava/util/Collection;
invokeinterface java.util.Collection.iterator:()Ljava/util/Iterator;
astore 2
goto 19
StackMap locals: sun.security.ssl.X509TrustManagerImpl top java.util.Iterator
StackMap stack:
1: aload 2
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.security.cert.X509Certificate
astore 1
start local 1 2: getstatic java.lang.System.out:Ljava/io/PrintStream;
ldc "adding as trusted cert:"
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
3: getstatic java.lang.System.out:Ljava/io/PrintStream;
new java.lang.StringBuilder
dup
ldc " Subject: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
4: 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;
5: invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
6: getstatic java.lang.System.out:Ljava/io/PrintStream;
new java.lang.StringBuilder
dup
ldc " Issuer: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
7: 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;
8: invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
9: getstatic java.lang.System.out:Ljava/io/PrintStream;
new java.lang.StringBuilder
dup
ldc " Algorithm: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
10: 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;
11: ldc "; Serial number: 0x"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
12: 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;
13: invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
14: 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
15: 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;
16: 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;
17: invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
18: getstatic java.lang.System.out:Ljava/io/PrintStream;
invokevirtual java.io.PrintStream.println:()V
end local 1 19: StackMap locals:
StackMap stack:
aload 2
invokeinterface java.util.Iterator.hasNext:()Z
ifne 1
20: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 21 0 this Lsun/security/ssl/X509TrustManagerImpl;
2 19 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.util.List<byte[]>, java.security.AlgorithmConstraints, java.lang.String);
descriptor: (Lsun/security/validator/Validator;[Ljava/security/cert/X509Certificate;Ljava/util/List;Ljava/security/AlgorithmConstraints;Ljava/lang/String;)[Ljava/security/cert/X509Certificate;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=6, locals=8, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: invokestatic sun.security.ssl.JsseJce.beginFipsProvider:()Ljava/lang/Object;
astore 5
start local 5 1: aload 0
aload 1
aconst_null
aload 2
aload 3
aload 4
invokevirtual sun.security.validator.Validator.validate:([Ljava/security/cert/X509Certificate;Ljava/util/Collection;Ljava/util/List;Ljava/security/AlgorithmConstraints;Ljava/lang/Object;)[Ljava/security/cert/X509Certificate;
astore 7
2: aload 5
invokestatic sun.security.ssl.JsseJce.endFipsProvider:(Ljava/lang/Object;)V
3: aload 7
areturn
4: StackMap locals: sun.security.validator.Validator java.security.cert.X509Certificate[] java.util.List java.security.AlgorithmConstraints java.lang.String java.lang.Object
StackMap stack: java.lang.Throwable
astore 6
5: aload 5
invokestatic sun.security.ssl.JsseJce.endFipsProvider:(Ljava/lang/Object;)V
6: aload 6
athrow
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 7 0 v Lsun/security/validator/Validator;
0 7 1 chain [Ljava/security/cert/X509Certificate;
0 7 2 responseList Ljava/util/List<[B>;
0 7 3 constraints Ljava/security/AlgorithmConstraints;
0 7 4 authType Ljava/lang/String;
1 7 5 o Ljava/lang/Object;
Exception table:
from to target type
1 2 4 any
Exceptions:
throws java.security.cert.CertificateException
Signature: (Lsun/security/validator/Validator;[Ljava/security/cert/X509Certificate;Ljava/util/List<[B>;Ljava/security/AlgorithmConstraints;Ljava/lang/String;)[Ljava/security/cert/X509Certificate;
MethodParameters:
Name Flags
v
chain
responseList
constraints
authType
private static java.lang.String getHostNameInSNI(java.util.List<javax.net.ssl.SNIServerName>);
descriptor: (Ljava/util/List;)Ljava/lang/String;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=4, args_size=1
start local 0 0: aconst_null
astore 1
start local 1 1: aload 0
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 3
goto 14
StackMap locals: java.util.List javax.net.ssl.SNIHostName top java.util.Iterator
StackMap stack:
2: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast javax.net.ssl.SNIServerName
astore 2
start local 2 3: aload 2
invokevirtual javax.net.ssl.SNIServerName.getType:()I
ifeq 5
4: goto 14
5: StackMap locals: java.util.List javax.net.ssl.SNIHostName javax.net.ssl.SNIServerName java.util.Iterator
StackMap stack:
aload 2
instanceof javax.net.ssl.SNIHostName
ifeq 8
6: aload 2
checkcast javax.net.ssl.SNIHostName
astore 1
7: goto 15
8: StackMap locals:
StackMap stack:
new javax.net.ssl.SNIHostName
dup
aload 2
invokevirtual javax.net.ssl.SNIServerName.getEncoded:()[B
invokespecial javax.net.ssl.SNIHostName.<init>:([B)V
astore 1
9: goto 15
StackMap locals:
StackMap stack: java.lang.IllegalArgumentException
10: pop
11: getstatic sun.security.ssl.X509TrustManagerImpl.debug:Lsun/security/ssl/Debug;
ifnull 15
ldc "trustmanager"
invokestatic sun.security.ssl.Debug.isOn:(Ljava/lang/String;)Z
ifeq 15
12: getstatic java.lang.System.out:Ljava/io/PrintStream;
new java.lang.StringBuilder
dup
ldc "Illegal server name: "
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;
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
13: goto 15
end local 2 14: StackMap locals: java.util.List javax.net.ssl.SNIHostName top java.util.Iterator
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
15: StackMap locals: java.util.List javax.net.ssl.SNIHostName
StackMap stack:
aload 1
ifnull 17
16: aload 1
invokevirtual javax.net.ssl.SNIHostName.getAsciiName:()Ljava/lang/String;
areturn
17: StackMap locals:
StackMap stack:
aconst_null
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 18 0 sniNames Ljava/util/List<Ljavax/net/ssl/SNIServerName;>;
1 18 1 hostname Ljavax/net/ssl/SNIHostName;
3 14 2 sniName Ljavax/net/ssl/SNIServerName;
Exception table:
from to target type
8 9 10 Class java.lang.IllegalArgumentException
Signature: (Ljava/util/List<Ljavax/net/ssl/SNIServerName;>;)Ljava/lang/String;
MethodParameters:
Name Flags
sniNames
static java.util.List<javax.net.ssl.SNIServerName> getRequestedServerNames(java.net.Socket);
descriptor: (Ljava/net/Socket;)Ljava/util/List;
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=4, args_size=1
start local 0 0: aload 0
ifnull 7
aload 0
invokevirtual java.net.Socket.isConnected:()Z
ifeq 7
1: aload 0
instanceof javax.net.ssl.SSLSocket
ifeq 7
2: aload 0
checkcast javax.net.ssl.SSLSocket
astore 1
start local 1 3: aload 1
invokevirtual javax.net.ssl.SSLSocket.getHandshakeSession:()Ljavax/net/ssl/SSLSession;
astore 2
start local 2 4: aload 2
ifnull 7
aload 2
instanceof javax.net.ssl.ExtendedSSLSession
ifeq 7
5: aload 2
checkcast javax.net.ssl.ExtendedSSLSession
astore 3
start local 3 6: aload 3
invokevirtual javax.net.ssl.ExtendedSSLSession.getRequestedServerNames:()Ljava/util/List;
areturn
end local 3 end local 2 end local 1 7: StackMap locals:
StackMap stack:
invokestatic java.util.Collections.emptyList:()Ljava/util/List;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 socket Ljava/net/Socket;
3 7 1 sslSocket Ljavax/net/ssl/SSLSocket;
4 7 2 session Ljavax/net/ssl/SSLSession;
6 7 3 extSession Ljavax/net/ssl/ExtendedSSLSession;
Signature: (Ljava/net/Socket;)Ljava/util/List<Ljavax/net/ssl/SNIServerName;>;
MethodParameters:
Name Flags
socket
static java.util.List<javax.net.ssl.SNIServerName> getRequestedServerNames(javax.net.ssl.SSLEngine);
descriptor: (Ljavax/net/ssl/SSLEngine;)Ljava/util/List;
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=3, args_size=1
start local 0 0: aload 0
ifnull 5
1: aload 0
invokevirtual javax.net.ssl.SSLEngine.getHandshakeSession:()Ljavax/net/ssl/SSLSession;
astore 1
start local 1 2: aload 1
ifnull 5
aload 1
instanceof javax.net.ssl.ExtendedSSLSession
ifeq 5
3: aload 1
checkcast javax.net.ssl.ExtendedSSLSession
astore 2
start local 2 4: aload 2
invokevirtual javax.net.ssl.ExtendedSSLSession.getRequestedServerNames:()Ljava/util/List;
areturn
end local 2 end local 1 5: StackMap locals:
StackMap stack:
invokestatic java.util.Collections.emptyList:()Ljava/util/List;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 engine Ljavax/net/ssl/SSLEngine;
2 5 1 session Ljavax/net/ssl/SSLSession;
4 5 2 extSession Ljavax/net/ssl/ExtendedSSLSession;
Signature: (Ljavax/net/ssl/SSLEngine;)Ljava/util/List<Ljavax/net/ssl/SNIServerName;>;
MethodParameters:
Name Flags
engine
private static void checkIdentity(javax.net.ssl.SSLSession, java.security.cert.X509Certificate, java.lang.String, boolean, java.util.List<javax.net.ssl.SNIServerName>, );
descriptor: (Ljavax/net/ssl/SSLSession;Ljava/security/cert/X509Certificate;Ljava/lang/String;ZLjava/util/List;Z)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=10, args_size=6
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 0: iconst_0
istore 6
start local 6 1: aload 0
invokeinterface javax.net.ssl.SSLSession.getPeerHost:()Ljava/lang/String;
astore 7
start local 7 2: iload 3
ifeq 11
3: aload 4
invokestatic sun.security.ssl.X509TrustManagerImpl.getHostNameInSNI:(Ljava/util/List;)Ljava/lang/String;
astore 8
start local 8 4: aload 8
ifnull 11
5: aload 8
aload 1
aload 2
iload 5
invokestatic sun.security.ssl.X509TrustManagerImpl.checkIdentity:(Ljava/lang/String;Ljava/security/cert/X509Certificate;Ljava/lang/String;Z)V
6: iconst_1
istore 6
7: goto 11
StackMap locals: javax.net.ssl.SSLSession java.security.cert.X509Certificate java.lang.String int java.util.List int int java.lang.String java.lang.String
StackMap stack: java.security.cert.CertificateException
8: astore 9
start local 9 9: aload 8
aload 7
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifeq 11
10: aload 9
athrow
end local 9 end local 8 11: StackMap locals:
StackMap stack:
iload 6
ifne 13
12: aload 7
aload 1
aload 2
iload 5
invokestatic sun.security.ssl.X509TrustManagerImpl.checkIdentity:(Ljava/lang/String;Ljava/security/cert/X509Certificate;Ljava/lang/String;Z)V
13: 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 14 0 session Ljavax/net/ssl/SSLSession;
0 14 1 cert Ljava/security/cert/X509Certificate;
0 14 2 algorithm Ljava/lang/String;
0 14 3 isClient Z
0 14 4 sniNames Ljava/util/List<Ljavax/net/ssl/SNIServerName;>;
0 14 5 chainsToPublicCA Z
1 14 6 identifiable Z
2 14 7 peerHost Ljava/lang/String;
4 11 8 hostname Ljava/lang/String;
9 11 9 ce Ljava/security/cert/CertificateException;
Exception table:
from to target type
5 7 8 Class java.security.cert.CertificateException
Exceptions:
throws java.security.cert.CertificateException
Signature: (Ljavax/net/ssl/SSLSession;Ljava/security/cert/X509Certificate;Ljava/lang/String;ZLjava/util/List<Ljavax/net/ssl/SNIServerName;>;Z)V
MethodParameters:
Name Flags
session
cert
algorithm
isClient
sniNames
chainsToPublicCA
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=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
iconst_0
invokestatic sun.security.ssl.X509TrustManagerImpl.checkIdentity:(Ljava/lang/String;Ljava/security/cert/X509Certificate;Ljava/lang/String;Z)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 hostname Ljava/lang/String;
0 2 1 cert Ljava/security/cert/X509Certificate;
0 2 2 algorithm Ljava/lang/String;
Exceptions:
throws java.security.cert.CertificateException
MethodParameters:
Name Flags
hostname
cert
algorithm
private static void checkIdentity(java.lang.String, java.security.cert.X509Certificate, java.lang.String, boolean);
descriptor: (Ljava/lang/String;Ljava/security/cert/X509Certificate;Ljava/lang/String;Z)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 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
iload 3
7: invokevirtual sun.security.util.HostnameChecker.match:(Ljava/lang/String;Ljava/security/cert/X509Certificate;Z)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
iload 3
13: invokevirtual sun.security.util.HostnameChecker.match:(Ljava/lang/String;Ljava/security/cert/X509Certificate;Z)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 3 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;
0 19 3 chainsToPublicCA Z
Exceptions:
throws java.security.cert.CertificateException
MethodParameters:
Name Flags
hostname
cert
algorithm
chainsToPublicCA
}
SourceFile: "X509TrustManagerImpl.java"