final class sun.security.ssl.ClientHello$ClientHelloConsumer implements sun.security.ssl.SSLConsumer
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: sun.security.ssl.ClientHello$ClientHelloConsumer
super_class: java.lang.Object
{
private void <init>();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/security/ssl/ClientHello$ClientHelloConsumer;
public void consume(sun.security.ssl.ConnectionContext, java.nio.ByteBuffer);
descriptor: (Lsun/security/ssl/ConnectionContext;Ljava/nio/ByteBuffer;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=6, args_size=3
start local 0 start local 1 start local 2 0: aload 1
checkcast sun.security.ssl.ServerHandshakeContext
astore 3
start local 3 1: aload 3
getfield sun.security.ssl.ServerHandshakeContext.handshakeConsumers:Ljava/util/LinkedHashMap;
getstatic sun.security.ssl.SSLHandshake.CLIENT_HELLO:Lsun/security/ssl/SSLHandshake;
getfield sun.security.ssl.SSLHandshake.id:B
invokestatic java.lang.Byte.valueOf:(B)Ljava/lang/Byte;
invokevirtual java.util.LinkedHashMap.remove:(Ljava/lang/Object;)Ljava/lang/Object;
pop
2: aload 3
getfield sun.security.ssl.ServerHandshakeContext.handshakeConsumers:Ljava/util/LinkedHashMap;
invokevirtual java.util.LinkedHashMap.isEmpty:()Z
ifne 6
3: aload 3
getfield sun.security.ssl.ServerHandshakeContext.conContext:Lsun/security/ssl/TransportContext;
getstatic sun.security.ssl.Alert.UNEXPECTED_MESSAGE:Lsun/security/ssl/Alert;
4: ldc "No more handshake message allowed in a ClientHello flight"
5: invokevirtual sun.security.ssl.TransportContext.fatal:(Lsun/security/ssl/Alert;Ljava/lang/String;)Ljavax/net/ssl/SSLException;
athrow
6: StackMap locals: sun.security.ssl.ServerHandshakeContext
StackMap stack:
aload 3
getfield sun.security.ssl.ServerHandshakeContext.sslConfig:Lsun/security/ssl/SSLConfiguration;
7: getstatic sun.security.ssl.SSLHandshake.CLIENT_HELLO:Lsun/security/ssl/SSLHandshake;
8: invokevirtual sun.security.ssl.SSLConfiguration.getEnabledExtensions:(Lsun/security/ssl/SSLHandshake;)[Lsun/security/ssl/SSLExtension;
9: astore 4
start local 4 10: new sun.security.ssl.ClientHello$ClientHelloMessage
dup
aload 3
aload 2
aload 4
invokespecial sun.security.ssl.ClientHello$ClientHelloMessage.<init>:(Lsun/security/ssl/HandshakeContext;Ljava/nio/ByteBuffer;[Lsun/security/ssl/SSLExtension;)V
11: astore 5
start local 5 12: getstatic sun.security.ssl.SSLLogger.isOn:Z
ifeq 14
ldc "ssl,handshake"
invokestatic sun.security.ssl.SSLLogger.isOn:(Ljava/lang/String;)Z
ifeq 14
13: ldc "Consuming ClientHello handshake message"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 5
aastore
invokestatic sun.security.ssl.SSLLogger.fine:(Ljava/lang/String;[Ljava/lang/Object;)V
14: StackMap locals: sun.security.ssl.SSLExtension[] sun.security.ssl.ClientHello$ClientHelloMessage
StackMap stack:
aload 3
aload 5
getfield sun.security.ssl.ClientHello$ClientHelloMessage.clientVersion:I
putfield sun.security.ssl.ServerHandshakeContext.clientHelloVersion:I
15: aload 0
aload 3
aload 5
invokevirtual sun.security.ssl.ClientHello$ClientHelloConsumer.onClientHello:(Lsun/security/ssl/ServerHandshakeContext;Lsun/security/ssl/ClientHello$ClientHelloMessage;)V
16: return
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 17 0 this Lsun/security/ssl/ClientHello$ClientHelloConsumer;
0 17 1 context Lsun/security/ssl/ConnectionContext;
0 17 2 message Ljava/nio/ByteBuffer;
1 17 3 shc Lsun/security/ssl/ServerHandshakeContext;
10 17 4 enabledExtensions [Lsun/security/ssl/SSLExtension;
12 17 5 chm Lsun/security/ssl/ClientHello$ClientHelloMessage;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
context
message
private void onClientHello(sun.security.ssl.ServerHandshakeContext, sun.security.ssl.ClientHello$ClientHelloMessage);
descriptor: (Lsun/security/ssl/ServerHandshakeContext;Lsun/security/ssl/ClientHello$ClientHelloMessage;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=6, args_size=3
start local 0 start local 1 start local 2 0: iconst_1
anewarray sun.security.ssl.SSLExtension
dup
iconst_0
1: getstatic sun.security.ssl.SSLExtension.CH_SUPPORTED_VERSIONS:Lsun/security/ssl/SSLExtension;
aastore
2: astore 3
start local 3 3: aload 2
getfield sun.security.ssl.ClientHello$ClientHelloMessage.extensions:Lsun/security/ssl/SSLExtensions;
aload 1
aload 3
invokevirtual sun.security.ssl.SSLExtensions.consumeOnLoad:(Lsun/security/ssl/HandshakeContext;[Lsun/security/ssl/SSLExtension;)V
4: aload 1
getfield sun.security.ssl.ServerHandshakeContext.handshakeExtensions:Ljava/util/Map;
5: getstatic sun.security.ssl.SSLExtension.CH_SUPPORTED_VERSIONS:Lsun/security/ssl/SSLExtension;
6: invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast sun.security.ssl.SupportedVersionsExtension$CHSupportedVersionsSpec
7: astore 5
start local 5 8: aload 5
ifnull 12
9: aload 0
aload 1
aload 5
getfield sun.security.ssl.SupportedVersionsExtension$CHSupportedVersionsSpec.requestedProtocols:[I
invokevirtual sun.security.ssl.ClientHello$ClientHelloConsumer.negotiateProtocol:(Lsun/security/ssl/ServerHandshakeContext;[I)Lsun/security/ssl/ProtocolVersion;
10: astore 4
start local 4 11: goto 14
end local 4 12: StackMap locals: sun.security.ssl.ClientHello$ClientHelloConsumer sun.security.ssl.ServerHandshakeContext sun.security.ssl.ClientHello$ClientHelloMessage sun.security.ssl.SSLExtension[] top sun.security.ssl.SupportedVersionsExtension$CHSupportedVersionsSpec
StackMap stack:
aload 0
aload 1
aload 2
getfield sun.security.ssl.ClientHello$ClientHelloMessage.clientVersion:I
invokevirtual sun.security.ssl.ClientHello$ClientHelloConsumer.negotiateProtocol:(Lsun/security/ssl/ServerHandshakeContext;I)Lsun/security/ssl/ProtocolVersion;
13: astore 4
start local 4 14: StackMap locals: sun.security.ssl.ClientHello$ClientHelloConsumer sun.security.ssl.ServerHandshakeContext sun.security.ssl.ClientHello$ClientHelloMessage sun.security.ssl.SSLExtension[] sun.security.ssl.ProtocolVersion sun.security.ssl.SupportedVersionsExtension$CHSupportedVersionsSpec
StackMap stack:
aload 1
aload 4
putfield sun.security.ssl.ServerHandshakeContext.negotiatedProtocol:Lsun/security/ssl/ProtocolVersion;
15: getstatic sun.security.ssl.SSLLogger.isOn:Z
ifeq 18
ldc "ssl,handshake"
invokestatic sun.security.ssl.SSLLogger.isOn:(Ljava/lang/String;)Z
ifeq 18
16: new java.lang.StringBuilder
dup
ldc "Negotiated protocol version: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 4
getfield sun.security.ssl.ProtocolVersion.name:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
iconst_0
anewarray java.lang.Object
17: invokestatic sun.security.ssl.SSLLogger.fine:(Ljava/lang/String;[Ljava/lang/Object;)V
18: StackMap locals:
StackMap stack:
aload 4
getfield sun.security.ssl.ProtocolVersion.isDTLS:Z
ifeq 24
19: aload 4
invokevirtual sun.security.ssl.ProtocolVersion.useTLS13PlusSpec:()Z
ifeq 22
20: getstatic sun.security.ssl.ClientHello.d13HandshakeConsumer:Lsun/security/ssl/HandshakeConsumer;
aload 1
aload 2
invokeinterface sun.security.ssl.HandshakeConsumer.consume:(Lsun/security/ssl/ConnectionContext;Lsun/security/ssl/SSLHandshake$HandshakeMessage;)V
21: goto 28
22: StackMap locals:
StackMap stack:
getstatic sun.security.ssl.ClientHello.d12HandshakeConsumer:Lsun/security/ssl/HandshakeConsumer;
aload 1
aload 2
invokeinterface sun.security.ssl.HandshakeConsumer.consume:(Lsun/security/ssl/ConnectionContext;Lsun/security/ssl/SSLHandshake$HandshakeMessage;)V
23: goto 28
24: StackMap locals:
StackMap stack:
aload 4
invokevirtual sun.security.ssl.ProtocolVersion.useTLS13PlusSpec:()Z
ifeq 27
25: getstatic sun.security.ssl.ClientHello.t13HandshakeConsumer:Lsun/security/ssl/HandshakeConsumer;
aload 1
aload 2
invokeinterface sun.security.ssl.HandshakeConsumer.consume:(Lsun/security/ssl/ConnectionContext;Lsun/security/ssl/SSLHandshake$HandshakeMessage;)V
26: goto 28
27: StackMap locals:
StackMap stack:
getstatic sun.security.ssl.ClientHello.t12HandshakeConsumer:Lsun/security/ssl/HandshakeConsumer;
aload 1
aload 2
invokeinterface sun.security.ssl.HandshakeConsumer.consume:(Lsun/security/ssl/ConnectionContext;Lsun/security/ssl/SSLHandshake$HandshakeMessage;)V
28: StackMap locals:
StackMap stack:
return
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 29 0 this Lsun/security/ssl/ClientHello$ClientHelloConsumer;
0 29 1 context Lsun/security/ssl/ServerHandshakeContext;
0 29 2 clientHello Lsun/security/ssl/ClientHello$ClientHelloMessage;
3 29 3 extTypes [Lsun/security/ssl/SSLExtension;
11 12 4 negotiatedProtocol Lsun/security/ssl/ProtocolVersion;
14 29 4 negotiatedProtocol Lsun/security/ssl/ProtocolVersion;
8 29 5 svs Lsun/security/ssl/SupportedVersionsExtension$CHSupportedVersionsSpec;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
context
clientHello
private sun.security.ssl.ProtocolVersion negotiateProtocol(sun.security.ssl.ServerHandshakeContext, int);
descriptor: (Lsun/security/ssl/ServerHandshakeContext;I)Lsun/security/ssl/ProtocolVersion;
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=5, args_size=3
start local 0 start local 1 start local 2 0: iload 2
istore 3
start local 3 1: aload 1
getfield sun.security.ssl.ServerHandshakeContext.sslContext:Lsun/security/ssl/SSLContextImpl;
invokevirtual sun.security.ssl.SSLContextImpl.isDTLS:()Z
ifeq 5
2: iload 3
getstatic sun.security.ssl.ProtocolVersion.DTLS12:Lsun/security/ssl/ProtocolVersion;
getfield sun.security.ssl.ProtocolVersion.id:I
if_icmpge 7
3: getstatic sun.security.ssl.ProtocolVersion.DTLS12:Lsun/security/ssl/ProtocolVersion;
getfield sun.security.ssl.ProtocolVersion.id:I
istore 3
4: goto 7
5: StackMap locals: int
StackMap stack:
iload 3
getstatic sun.security.ssl.ProtocolVersion.TLS12:Lsun/security/ssl/ProtocolVersion;
getfield sun.security.ssl.ProtocolVersion.id:I
if_icmple 7
6: getstatic sun.security.ssl.ProtocolVersion.TLS12:Lsun/security/ssl/ProtocolVersion;
getfield sun.security.ssl.ProtocolVersion.id:I
istore 3
7: StackMap locals:
StackMap stack:
aload 1
getfield sun.security.ssl.ServerHandshakeContext.activeProtocols:Ljava/util/List;
iload 3
8: invokestatic sun.security.ssl.ProtocolVersion.selectedFrom:(Ljava/util/List;I)Lsun/security/ssl/ProtocolVersion;
astore 4
start local 4 9: aload 4
ifnull 11
aload 4
getstatic sun.security.ssl.ProtocolVersion.NONE:Lsun/security/ssl/ProtocolVersion;
if_acmpeq 11
10: aload 4
getstatic sun.security.ssl.ProtocolVersion.SSL20Hello:Lsun/security/ssl/ProtocolVersion;
if_acmpne 17
11: StackMap locals: sun.security.ssl.ProtocolVersion
StackMap stack:
aload 1
getfield sun.security.ssl.ServerHandshakeContext.conContext:Lsun/security/ssl/TransportContext;
getstatic sun.security.ssl.Alert.PROTOCOL_VERSION:Lsun/security/ssl/Alert;
12: new java.lang.StringBuilder
dup
ldc "Client requested protocol "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
13: iload 2
invokestatic sun.security.ssl.ProtocolVersion.nameOf:(I)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
14: ldc " is not enabled or supported in server context"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
15: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
16: invokevirtual sun.security.ssl.TransportContext.fatal:(Lsun/security/ssl/Alert;Ljava/lang/String;)Ljavax/net/ssl/SSLException;
athrow
17: 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 18 0 this Lsun/security/ssl/ClientHello$ClientHelloConsumer;
0 18 1 context Lsun/security/ssl/ServerHandshakeContext;
0 18 2 clientHelloVersion I
1 18 3 chv I
9 18 4 pv Lsun/security/ssl/ProtocolVersion;
Exceptions:
throws javax.net.ssl.SSLException
MethodParameters:
Name Flags
context
clientHelloVersion
private sun.security.ssl.ProtocolVersion negotiateProtocol(sun.security.ssl.ServerHandshakeContext, int[]);
descriptor: (Lsun/security/ssl/ServerHandshakeContext;[I)Lsun/security/ssl/ProtocolVersion;
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=9, args_size=3
start local 0 start local 1 start local 2 0: aload 1
getfield sun.security.ssl.ServerHandshakeContext.activeProtocols:Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 4
goto 12
StackMap locals: sun.security.ssl.ClientHello$ClientHelloConsumer sun.security.ssl.ServerHandshakeContext int[] top java.util.Iterator
StackMap stack:
1: aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast sun.security.ssl.ProtocolVersion
astore 3
start local 3 2: aload 3
getstatic sun.security.ssl.ProtocolVersion.SSL20Hello:Lsun/security/ssl/ProtocolVersion;
if_acmpne 4
3: goto 12
4: StackMap locals: sun.security.ssl.ClientHello$ClientHelloConsumer sun.security.ssl.ServerHandshakeContext int[] sun.security.ssl.ProtocolVersion java.util.Iterator
StackMap stack:
aload 2
dup
astore 8
arraylength
istore 7
iconst_0
istore 6
goto 11
StackMap locals: sun.security.ssl.ClientHello$ClientHelloConsumer sun.security.ssl.ServerHandshakeContext int[] sun.security.ssl.ProtocolVersion java.util.Iterator top int int int[]
StackMap stack:
5: aload 8
iload 6
iaload
istore 5
start local 5 6: iload 5
getstatic sun.security.ssl.ProtocolVersion.SSL20Hello:Lsun/security/ssl/ProtocolVersion;
getfield sun.security.ssl.ProtocolVersion.id:I
if_icmpne 8
7: goto 10
8: StackMap locals: sun.security.ssl.ClientHello$ClientHelloConsumer sun.security.ssl.ServerHandshakeContext int[] sun.security.ssl.ProtocolVersion java.util.Iterator int int int int[]
StackMap stack:
aload 3
getfield sun.security.ssl.ProtocolVersion.id:I
iload 5
if_icmpne 10
9: aload 3
areturn
end local 5 10: StackMap locals: sun.security.ssl.ClientHello$ClientHelloConsumer sun.security.ssl.ServerHandshakeContext int[] sun.security.ssl.ProtocolVersion java.util.Iterator top int int int[]
StackMap stack:
iinc 6 1
StackMap locals:
StackMap stack:
11: iload 6
iload 7
if_icmplt 5
end local 3 12: StackMap locals: sun.security.ssl.ClientHello$ClientHelloConsumer sun.security.ssl.ServerHandshakeContext int[] top java.util.Iterator
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 1
13: aload 1
getfield sun.security.ssl.ServerHandshakeContext.conContext:Lsun/security/ssl/TransportContext;
getstatic sun.security.ssl.Alert.PROTOCOL_VERSION:Lsun/security/ssl/Alert;
14: new java.lang.StringBuilder
dup
ldc "The client supported protocol versions "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
15: aload 2
invokestatic sun.security.ssl.ProtocolVersion.toStringArray:([I)[Ljava/lang/String;
16: invokestatic java.util.Arrays.toString:([Ljava/lang/Object;)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
17: ldc " are not accepted by server preferences "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
18: aload 1
getfield sun.security.ssl.ServerHandshakeContext.activeProtocols:Ljava/util/List;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
19: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
20: invokevirtual sun.security.ssl.TransportContext.fatal:(Lsun/security/ssl/Alert;Ljava/lang/String;)Ljavax/net/ssl/SSLException;
athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 21 0 this Lsun/security/ssl/ClientHello$ClientHelloConsumer;
0 21 1 context Lsun/security/ssl/ServerHandshakeContext;
0 21 2 clientSupportedVersions [I
2 12 3 spv Lsun/security/ssl/ProtocolVersion;
6 10 5 cpv I
Exceptions:
throws javax.net.ssl.SSLException
MethodParameters:
Name Flags
context
clientSupportedVersions
}
SourceFile: "ClientHello.java"
NestHost: sun.security.ssl.ClientHello
InnerClasses:
private final ClientHelloConsumer = sun.security.ssl.ClientHello$ClientHelloConsumer of sun.security.ssl.ClientHello
final ClientHelloMessage = sun.security.ssl.ClientHello$ClientHelloMessage of sun.security.ssl.ClientHello
abstract HandshakeMessage = sun.security.ssl.SSLHandshake$HandshakeMessage of sun.security.ssl.SSLHandshake
final CHSupportedVersionsSpec = sun.security.ssl.SupportedVersionsExtension$CHSupportedVersionsSpec of sun.security.ssl.SupportedVersionsExtension