final class sun.security.ssl.HandshakeMessage$CertificateMsg extends sun.security.ssl.HandshakeMessage
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: sun.security.ssl.HandshakeMessage$CertificateMsg
super_class: sun.security.ssl.HandshakeMessage
{
private java.security.cert.X509Certificate[] chain;
descriptor: [Ljava/security/cert/X509Certificate;
flags: (0x0002) ACC_PRIVATE
private java.util.List<byte[]> encodedChain;
descriptor: Ljava/util/List;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/util/List<[B>;
private int messageLength;
descriptor: I
flags: (0x0002) ACC_PRIVATE
int messageType();
descriptor: ()I
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: bipush 11
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/security/ssl/HandshakeMessage$CertificateMsg;
void <init>(java.security.cert.X509Certificate[]);
descriptor: ([Ljava/security/cert/X509Certificate;)V
flags: (0x0000)
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial sun.security.ssl.HandshakeMessage.<init>:()V
1: aload 0
aload 1
putfield sun.security.ssl.HandshakeMessage$CertificateMsg.chain:[Ljava/security/cert/X509Certificate;
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lsun/security/ssl/HandshakeMessage$CertificateMsg;
0 3 1 certs [Ljava/security/cert/X509Certificate;
MethodParameters:
Name Flags
certs
void <init>(sun.security.ssl.HandshakeInStream);
descriptor: (Lsun/security/ssl/HandshakeInStream;)V
flags: (0x0000)
Code:
stack=5, locals=7, args_size=2
start local 0 start local 1 0: aload 0
invokespecial sun.security.ssl.HandshakeMessage.<init>:()V
1: aload 1
invokevirtual sun.security.ssl.HandshakeInStream.getInt24:()I
istore 2
start local 2 2: new java.util.ArrayList
dup
iconst_4
invokespecial java.util.ArrayList.<init>:(I)V
astore 3
start local 3 3: aconst_null
astore 4
start local 4 4: goto 17
5: StackMap locals: sun.security.ssl.HandshakeMessage$CertificateMsg sun.security.ssl.HandshakeInStream int java.util.List java.security.cert.CertificateFactory
StackMap stack:
aload 1
invokevirtual sun.security.ssl.HandshakeInStream.getBytes24:()[B
astore 5
start local 5 6: iload 2
iconst_3
aload 5
arraylength
iadd
isub
istore 2
7: aload 4
ifnonnull 9
8: ldc "X.509"
invokestatic java.security.cert.CertificateFactory.getInstance:(Ljava/lang/String;)Ljava/security/cert/CertificateFactory;
astore 4
9: StackMap locals: byte[]
StackMap stack:
aload 3
aload 4
new java.io.ByteArrayInputStream
dup
aload 5
invokespecial java.io.ByteArrayInputStream.<init>:([B)V
invokevirtual java.security.cert.CertificateFactory.generateCertificate:(Ljava/io/InputStream;)Ljava/security/cert/Certificate;
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
10: goto 17
StackMap locals:
StackMap stack: java.security.cert.CertificateException
11: astore 6
start local 6 12: new javax.net.ssl.SSLProtocolException
dup
13: aload 6
invokevirtual java.security.cert.CertificateException.getMessage:()Ljava/lang/String;
14: invokespecial javax.net.ssl.SSLProtocolException.<init>:(Ljava/lang/String;)V
15: aload 6
invokevirtual javax.net.ssl.SSLProtocolException.initCause:(Ljava/lang/Throwable;)Ljava/lang/Throwable;
16: checkcast javax.net.ssl.SSLProtocolException
athrow
end local 6 end local 5 17: StackMap locals:
StackMap stack:
iload 2
ifgt 5
18: aload 0
aload 3
aload 3
invokeinterface java.util.List.size:()I
anewarray java.security.cert.X509Certificate
invokeinterface java.util.List.toArray:([Ljava/lang/Object;)[Ljava/lang/Object;
checkcast java.security.cert.X509Certificate[]
putfield sun.security.ssl.HandshakeMessage$CertificateMsg.chain:[Ljava/security/cert/X509Certificate;
19: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 20 0 this Lsun/security/ssl/HandshakeMessage$CertificateMsg;
0 20 1 input Lsun/security/ssl/HandshakeInStream;
2 20 2 chainLen I
3 20 3 v Ljava/util/List<Ljava/security/cert/Certificate;>;
4 20 4 cf Ljava/security/cert/CertificateFactory;
6 17 5 cert [B
12 17 6 e Ljava/security/cert/CertificateException;
Exception table:
from to target type
7 10 11 Class java.security.cert.CertificateException
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
input
int messageLength();
descriptor: ()I
flags: (0x0000)
Code:
stack=4, locals=6, args_size=1
start local 0 0: aload 0
getfield sun.security.ssl.HandshakeMessage$CertificateMsg.encodedChain:Ljava/util/List;
ifnonnull 14
1: aload 0
iconst_3
putfield sun.security.ssl.HandshakeMessage$CertificateMsg.messageLength:I
2: aload 0
new java.util.ArrayList
dup
aload 0
getfield sun.security.ssl.HandshakeMessage$CertificateMsg.chain:[Ljava/security/cert/X509Certificate;
arraylength
invokespecial java.util.ArrayList.<init>:(I)V
putfield sun.security.ssl.HandshakeMessage$CertificateMsg.encodedChain:Ljava/util/List;
3: aload 0
getfield sun.security.ssl.HandshakeMessage$CertificateMsg.chain:[Ljava/security/cert/X509Certificate;
dup
astore 4
arraylength
istore 3
iconst_0
istore 2
goto 9
StackMap locals: sun.security.ssl.HandshakeMessage$CertificateMsg top int int java.security.cert.X509Certificate[]
StackMap stack:
4: aload 4
iload 2
aaload
astore 1
start local 1 5: aload 1
invokevirtual java.security.cert.X509Certificate.getEncoded:()[B
astore 5
start local 5 6: aload 0
getfield sun.security.ssl.HandshakeMessage$CertificateMsg.encodedChain:Ljava/util/List;
aload 5
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
7: aload 0
dup
getfield sun.security.ssl.HandshakeMessage$CertificateMsg.messageLength:I
aload 5
arraylength
iconst_3
iadd
iadd
putfield sun.security.ssl.HandshakeMessage$CertificateMsg.messageLength:I
end local 5 end local 1 8: iinc 2 1
StackMap locals:
StackMap stack:
9: iload 2
iload 3
if_icmplt 4
10: goto 14
StackMap locals: sun.security.ssl.HandshakeMessage$CertificateMsg
StackMap stack: java.security.cert.CertificateEncodingException
11: astore 1
start local 1 12: aload 0
aconst_null
putfield sun.security.ssl.HandshakeMessage$CertificateMsg.encodedChain:Ljava/util/List;
13: new java.lang.RuntimeException
dup
ldc "Could not encode certificates"
aload 1
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 1 14: StackMap locals:
StackMap stack:
aload 0
getfield sun.security.ssl.HandshakeMessage$CertificateMsg.messageLength:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 this Lsun/security/ssl/HandshakeMessage$CertificateMsg;
5 8 1 cert Ljava/security/cert/X509Certificate;
6 8 5 b [B
12 14 1 e Ljava/security/cert/CertificateEncodingException;
Exception table:
from to target type
3 10 11 Class java.security.cert.CertificateEncodingException
void send(sun.security.ssl.HandshakeOutStream);
descriptor: (Lsun/security/ssl/HandshakeOutStream;)V
flags: (0x0000)
Code:
stack=3, locals=4, args_size=2
start local 0 start local 1 0: aload 1
aload 0
invokevirtual sun.security.ssl.HandshakeMessage$CertificateMsg.messageLength:()I
iconst_3
isub
invokevirtual sun.security.ssl.HandshakeOutStream.putInt24:(I)V
1: aload 0
getfield sun.security.ssl.HandshakeMessage$CertificateMsg.encodedChain:Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 3
goto 4
StackMap locals: sun.security.ssl.HandshakeMessage$CertificateMsg sun.security.ssl.HandshakeOutStream top java.util.Iterator
StackMap stack:
2: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast byte[]
astore 2
start local 2 3: aload 1
aload 2
invokevirtual sun.security.ssl.HandshakeOutStream.putBytes24:([B)V
end local 2 4: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
5: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lsun/security/ssl/HandshakeMessage$CertificateMsg;
0 6 1 s Lsun/security/ssl/HandshakeOutStream;
3 4 2 b [B
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
s
void print(java.io.PrintStream);
descriptor: (Ljava/io/PrintStream;)V
flags: (0x0000)
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: aload 1
ldc "*** Certificate chain"
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
1: aload 0
getfield sun.security.ssl.HandshakeMessage$CertificateMsg.chain:[Ljava/security/cert/X509Certificate;
arraylength
ifne 4
2: aload 1
ldc "<Empty>"
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
3: goto 10
StackMap locals:
StackMap stack:
4: getstatic sun.security.ssl.HandshakeMessage$CertificateMsg.debug:Lsun/security/ssl/Debug;
ifnull 10
ldc "verbose"
invokestatic sun.security.ssl.Debug.isOn:(Ljava/lang/String;)Z
ifeq 10
5: iconst_0
istore 2
start local 2 6: goto 9
7: StackMap locals: int
StackMap stack:
aload 1
new java.lang.StringBuilder
dup
ldc "chain ["
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 2
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc "] = "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield sun.security.ssl.HandshakeMessage$CertificateMsg.chain:[Ljava/security/cert/X509Certificate;
iload 2
aaload
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
8: iinc 2 1
StackMap locals:
StackMap stack:
9: iload 2
aload 0
getfield sun.security.ssl.HandshakeMessage$CertificateMsg.chain:[Ljava/security/cert/X509Certificate;
arraylength
if_icmplt 7
end local 2 10: StackMap locals:
StackMap stack:
aload 1
ldc "***"
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
11: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lsun/security/ssl/HandshakeMessage$CertificateMsg;
0 12 1 s Ljava/io/PrintStream;
6 10 2 i I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
s
java.security.cert.X509Certificate[] getCertificateChain();
descriptor: ()[Ljava/security/cert/X509Certificate;
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.security.ssl.HandshakeMessage$CertificateMsg.chain:[Ljava/security/cert/X509Certificate;
invokevirtual java.security.cert.X509Certificate[].clone:()Ljava/lang/Object;
checkcast java.security.cert.X509Certificate[]
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/security/ssl/HandshakeMessage$CertificateMsg;
}
SourceFile: "HandshakeMessage.java"
NestHost: sun.security.ssl.HandshakeMessage
InnerClasses:
final CertificateMsg = sun.security.ssl.HandshakeMessage$CertificateMsg of sun.security.ssl.HandshakeMessage