final class sun.security.ssl.KeyShareExtension$SHKeyShareConsumer implements sun.security.ssl.SSLExtension$ExtensionConsumer
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: sun.security.ssl.KeyShareExtension$SHKeyShareConsumer
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/KeyShareExtension$SHKeyShareConsumer;
public void consume(sun.security.ssl.ConnectionContext, sun.security.ssl.SSLHandshake$HandshakeMessage, java.nio.ByteBuffer);
descriptor: (Lsun/security/ssl/ConnectionContext;Lsun/security/ssl/SSLHandshake$HandshakeMessage;Ljava/nio/ByteBuffer;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=11, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 1
checkcast sun.security.ssl.ClientHandshakeContext
astore 4
start local 4 1: aload 4
getfield sun.security.ssl.ClientHandshakeContext.clientRequestedNamedGroups:Ljava/util/List;
ifnull 3
2: aload 4
getfield sun.security.ssl.ClientHandshakeContext.clientRequestedNamedGroups:Ljava/util/List;
invokeinterface java.util.List.isEmpty:()Z
ifeq 6
3: StackMap locals: sun.security.ssl.ClientHandshakeContext
StackMap stack:
aload 4
getfield sun.security.ssl.ClientHandshakeContext.conContext:Lsun/security/ssl/TransportContext;
getstatic sun.security.ssl.Alert.UNEXPECTED_MESSAGE:Lsun/security/ssl/Alert;
4: ldc "Unexpected key_share extension in ServerHello"
5: invokevirtual sun.security.ssl.TransportContext.fatal:(Lsun/security/ssl/Alert;Ljava/lang/String;)Ljavax/net/ssl/SSLException;
athrow
6: StackMap locals:
StackMap stack:
aload 4
getfield sun.security.ssl.ClientHandshakeContext.sslConfig:Lsun/security/ssl/SSLConfiguration;
getstatic sun.security.ssl.SSLExtension.SH_KEY_SHARE:Lsun/security/ssl/SSLExtension;
invokevirtual sun.security.ssl.SSLConfiguration.isAvailable:(Lsun/security/ssl/SSLExtension;)Z
ifne 10
7: aload 4
getfield sun.security.ssl.ClientHandshakeContext.conContext:Lsun/security/ssl/TransportContext;
getstatic sun.security.ssl.Alert.UNEXPECTED_MESSAGE:Lsun/security/ssl/Alert;
8: ldc "Unsupported key_share extension in ServerHello"
9: invokevirtual sun.security.ssl.TransportContext.fatal:(Lsun/security/ssl/Alert;Ljava/lang/String;)Ljavax/net/ssl/SSLException;
athrow
10: StackMap locals:
StackMap stack:
new sun.security.ssl.KeyShareExtension$SHKeyShareSpec
dup
aload 3
invokespecial sun.security.ssl.KeyShareExtension$SHKeyShareSpec.<init>:(Ljava/nio/ByteBuffer;)V
astore 5
start local 5 11: goto 14
end local 5 StackMap locals:
StackMap stack: java.io.IOException
12: astore 6
start local 6 13: aload 4
getfield sun.security.ssl.ClientHandshakeContext.conContext:Lsun/security/ssl/TransportContext;
getstatic sun.security.ssl.Alert.UNEXPECTED_MESSAGE:Lsun/security/ssl/Alert;
aload 6
invokevirtual sun.security.ssl.TransportContext.fatal:(Lsun/security/ssl/Alert;Ljava/lang/Throwable;)Ljavax/net/ssl/SSLException;
athrow
end local 6 start local 5 14: StackMap locals: sun.security.ssl.KeyShareExtension$SHKeyShareSpec
StackMap stack:
aload 5
getfield sun.security.ssl.KeyShareExtension$SHKeyShareSpec.serverShare:Lsun/security/ssl/KeyShareExtension$KeyShareEntry;
astore 6
start local 6 15: aload 6
getfield sun.security.ssl.KeyShareExtension$KeyShareEntry.namedGroupId:I
invokestatic sun.security.ssl.NamedGroup.valueOf:(I)Lsun/security/ssl/NamedGroup;
astore 7
start local 7 16: aload 7
ifnull 20
17: aload 4
getfield sun.security.ssl.ClientHandshakeContext.algorithmConstraints:Ljava/security/AlgorithmConstraints;
aload 7
18: invokestatic sun.security.ssl.SupportedGroupsExtension$SupportedGroups.isActivatable:(Ljava/security/AlgorithmConstraints;Lsun/security/ssl/NamedGroup;)Z
19: ifne 25
20: StackMap locals: sun.security.ssl.KeyShareExtension$KeyShareEntry sun.security.ssl.NamedGroup
StackMap stack:
aload 4
getfield sun.security.ssl.ClientHandshakeContext.conContext:Lsun/security/ssl/TransportContext;
getstatic sun.security.ssl.Alert.UNEXPECTED_MESSAGE:Lsun/security/ssl/Alert;
21: new java.lang.StringBuilder
dup
ldc "Unsupported named group: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
22: aload 6
getfield sun.security.ssl.KeyShareExtension$KeyShareEntry.namedGroupId:I
invokestatic sun.security.ssl.NamedGroup.nameOf:(I)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
23: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
24: invokevirtual sun.security.ssl.TransportContext.fatal:(Lsun/security/ssl/Alert;Ljava/lang/String;)Ljavax/net/ssl/SSLException;
athrow
25: StackMap locals:
StackMap stack:
aload 7
invokestatic sun.security.ssl.SSLKeyExchange.valueOf:(Lsun/security/ssl/NamedGroup;)Lsun/security/ssl/SSLKeyExchange;
astore 8
start local 8 26: aload 8
ifnonnull 30
27: aload 4
getfield sun.security.ssl.ClientHandshakeContext.conContext:Lsun/security/ssl/TransportContext;
getstatic sun.security.ssl.Alert.UNEXPECTED_MESSAGE:Lsun/security/ssl/Alert;
28: new java.lang.StringBuilder
dup
ldc "No key exchange for named group "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 7
getfield sun.security.ssl.NamedGroup.name:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
29: invokevirtual sun.security.ssl.TransportContext.fatal:(Lsun/security/ssl/Alert;Ljava/lang/String;)Ljavax/net/ssl/SSLException;
athrow
30: StackMap locals: sun.security.ssl.SSLKeyExchange
StackMap stack:
aconst_null
astore 9
start local 9 31: aload 7
32: aload 6
getfield sun.security.ssl.KeyShareExtension$KeyShareEntry.keyExchange:[B
aload 4
getfield sun.security.ssl.ClientHandshakeContext.algorithmConstraints:Ljava/security/AlgorithmConstraints;
33: aload 4
invokedynamic apply(Lsun/security/ssl/ClientHandshakeContext;)Lsun/security/ssl/NamedGroup$ExceptionSupplier;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/String;)V
sun/security/ssl/KeyShareExtension$SHKeyShareConsumer.lambda$0(Lsun/security/ssl/ClientHandshakeContext;Ljava/lang/String;)V (6)
(Ljava/lang/String;)V
34: invokevirtual sun.security.ssl.NamedGroup.decodeCredentials:([BLjava/security/AlgorithmConstraints;Lsun/security/ssl/NamedGroup$ExceptionSupplier;)Lsun/security/ssl/SSLCredentials;
astore 10
start local 10 35: aload 10
ifnull 44
36: aload 10
astore 9
end local 10 37: goto 44
StackMap locals: sun.security.ssl.KeyShareExtension$SHKeyShareConsumer sun.security.ssl.ConnectionContext sun.security.ssl.SSLHandshake$HandshakeMessage java.nio.ByteBuffer sun.security.ssl.ClientHandshakeContext sun.security.ssl.KeyShareExtension$SHKeyShareSpec sun.security.ssl.KeyShareExtension$KeyShareEntry sun.security.ssl.NamedGroup sun.security.ssl.SSLKeyExchange sun.security.ssl.SSLCredentials
StackMap stack: java.security.GeneralSecurityException
38: pop
39: aload 4
getfield sun.security.ssl.ClientHandshakeContext.conContext:Lsun/security/ssl/TransportContext;
getstatic sun.security.ssl.Alert.UNEXPECTED_MESSAGE:Lsun/security/ssl/Alert;
40: new java.lang.StringBuilder
dup
ldc "Cannot decode named group: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
41: aload 6
getfield sun.security.ssl.KeyShareExtension$KeyShareEntry.namedGroupId:I
invokestatic sun.security.ssl.NamedGroup.nameOf:(I)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
42: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
43: invokevirtual sun.security.ssl.TransportContext.fatal:(Lsun/security/ssl/Alert;Ljava/lang/String;)Ljavax/net/ssl/SSLException;
athrow
44: StackMap locals:
StackMap stack:
aload 9
ifnonnull 48
45: aload 4
getfield sun.security.ssl.ClientHandshakeContext.conContext:Lsun/security/ssl/TransportContext;
getstatic sun.security.ssl.Alert.UNEXPECTED_MESSAGE:Lsun/security/ssl/Alert;
46: new java.lang.StringBuilder
dup
ldc "Unsupported named group: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 7
getfield sun.security.ssl.NamedGroup.name:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
47: invokevirtual sun.security.ssl.TransportContext.fatal:(Lsun/security/ssl/Alert;Ljava/lang/String;)Ljavax/net/ssl/SSLException;
athrow
48: StackMap locals:
StackMap stack:
aload 4
aload 8
putfield sun.security.ssl.ClientHandshakeContext.handshakeKeyExchange:Lsun/security/ssl/SSLKeyExchange;
49: aload 4
getfield sun.security.ssl.ClientHandshakeContext.handshakeCredentials:Ljava/util/List;
aload 9
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
50: aload 4
getfield sun.security.ssl.ClientHandshakeContext.handshakeExtensions:Ljava/util/Map;
getstatic sun.security.ssl.SSLExtension.SH_KEY_SHARE:Lsun/security/ssl/SSLExtension;
aload 5
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
51: return
end local 9 end local 8 end local 7 end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 52 0 this Lsun/security/ssl/KeyShareExtension$SHKeyShareConsumer;
0 52 1 context Lsun/security/ssl/ConnectionContext;
0 52 2 message Lsun/security/ssl/SSLHandshake$HandshakeMessage;
0 52 3 buffer Ljava/nio/ByteBuffer;
1 52 4 chc Lsun/security/ssl/ClientHandshakeContext;
11 12 5 spec Lsun/security/ssl/KeyShareExtension$SHKeyShareSpec;
14 52 5 spec Lsun/security/ssl/KeyShareExtension$SHKeyShareSpec;
13 14 6 ioe Ljava/io/IOException;
15 52 6 keyShare Lsun/security/ssl/KeyShareExtension$KeyShareEntry;
16 52 7 ng Lsun/security/ssl/NamedGroup;
26 52 8 ke Lsun/security/ssl/SSLKeyExchange;
31 52 9 credentials Lsun/security/ssl/SSLCredentials;
35 37 10 kaCred Lsun/security/ssl/SSLCredentials;
Exception table:
from to target type
10 11 12 Class java.io.IOException
31 37 38 Class java.security.GeneralSecurityException
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
context
message
buffer
private static void lambda$0(sun.security.ssl.ClientHandshakeContext, java.lang.String);
descriptor: (Lsun/security/ssl/ClientHandshakeContext;Ljava/lang/String;)V
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=3, locals=2, args_size=2
start local 1 0: aload 0
getfield sun.security.ssl.ClientHandshakeContext.conContext:Lsun/security/ssl/TransportContext;
getstatic sun.security.ssl.Alert.UNEXPECTED_MESSAGE:Lsun/security/ssl/Alert;
aload 1
invokevirtual sun.security.ssl.TransportContext.fatal:(Lsun/security/ssl/Alert;Ljava/lang/String;)Ljavax/net/ssl/SSLException;
return
end local 1 LocalVariableTable:
Start End Slot Name Signature
0 1 1 s Ljava/lang/String;
Exceptions:
throws javax.net.ssl.SSLException
}
SourceFile: "KeyShareExtension.java"
NestHost: sun.security.ssl.KeyShareExtension
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
private final KeyShareEntry = sun.security.ssl.KeyShareExtension$KeyShareEntry of sun.security.ssl.KeyShareExtension
private final SHKeyShareConsumer = sun.security.ssl.KeyShareExtension$SHKeyShareConsumer of sun.security.ssl.KeyShareExtension
final SHKeyShareSpec = sun.security.ssl.KeyShareExtension$SHKeyShareSpec of sun.security.ssl.KeyShareExtension
abstract ExceptionSupplier = sun.security.ssl.NamedGroup$ExceptionSupplier of sun.security.ssl.NamedGroup
abstract ExtensionConsumer = sun.security.ssl.SSLExtension$ExtensionConsumer of sun.security.ssl.SSLExtension
abstract HandshakeMessage = sun.security.ssl.SSLHandshake$HandshakeMessage of sun.security.ssl.SSLHandshake
SupportedGroups = sun.security.ssl.SupportedGroupsExtension$SupportedGroups of sun.security.ssl.SupportedGroupsExtension