final class sun.security.ssl.KeyShareExtension$CHKeyShareProducer implements sun.security.ssl.HandshakeProducer
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: sun.security.ssl.KeyShareExtension$CHKeyShareProducer
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$CHKeyShareProducer;
public byte[] produce(sun.security.ssl.ConnectionContext, sun.security.ssl.SSLHandshake$HandshakeMessage);
descriptor: (Lsun/security/ssl/ConnectionContext;Lsun/security/ssl/SSLHandshake$HandshakeMessage;)[B
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=14, args_size=3
start local 0 start local 1 start local 2 0: aload 1
checkcast sun.security.ssl.ClientHandshakeContext
astore 3
start local 3 1: aload 3
getfield sun.security.ssl.ClientHandshakeContext.sslConfig:Lsun/security/ssl/SSLConfiguration;
getstatic sun.security.ssl.SSLExtension.CH_KEY_SHARE:Lsun/security/ssl/SSLExtension;
invokevirtual sun.security.ssl.SSLConfiguration.isAvailable:(Lsun/security/ssl/SSLExtension;)Z
ifne 6
2: getstatic sun.security.ssl.SSLLogger.isOn:Z
ifeq 5
ldc "ssl,handshake"
invokestatic sun.security.ssl.SSLLogger.isOn:(Ljava/lang/String;)Z
ifeq 5
3: ldc "Ignore unavailable key_share extension"
iconst_0
anewarray java.lang.Object
4: invokestatic sun.security.ssl.SSLLogger.fine:(Ljava/lang/String;[Ljava/lang/Object;)V
5: StackMap locals: sun.security.ssl.ClientHandshakeContext
StackMap stack:
aconst_null
areturn
6: StackMap locals:
StackMap stack:
aload 3
getfield sun.security.ssl.ClientHandshakeContext.serverSelectedNamedGroup:Lsun/security/ssl/SupportedGroupsExtension$NamedGroup;
ifnull 9
7: iconst_1
anewarray sun.security.ssl.SupportedGroupsExtension$NamedGroup
dup
iconst_0
aload 3
getfield sun.security.ssl.ClientHandshakeContext.serverSelectedNamedGroup:Lsun/security/ssl/SupportedGroupsExtension$NamedGroup;
aastore
invokestatic java.util.Arrays.asList:([Ljava/lang/Object;)Ljava/util/List;
astore 4
start local 4 8: goto 15
end local 4 9: StackMap locals:
StackMap stack:
aload 3
getfield sun.security.ssl.ClientHandshakeContext.clientRequestedNamedGroups:Ljava/util/List;
astore 4
start local 4 10: aload 4
ifnull 11
aload 4
invokeinterface java.util.List.isEmpty:()Z
ifeq 15
11: StackMap locals: java.util.List
StackMap stack:
getstatic sun.security.ssl.SSLLogger.isOn:Z
ifeq 14
ldc "ssl,handshake"
invokestatic sun.security.ssl.SSLLogger.isOn:(Ljava/lang/String;)Z
ifeq 14
12: ldc "Ignore key_share extension, no supported groups"
iconst_0
anewarray java.lang.Object
13: invokestatic sun.security.ssl.SSLLogger.warning:(Ljava/lang/String;[Ljava/lang/Object;)V
14: StackMap locals:
StackMap stack:
aconst_null
areturn
15: StackMap locals:
StackMap stack:
new java.util.LinkedList
dup
invokespecial java.util.LinkedList.<init>:()V
astore 5
start local 5 16: aload 4
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 7
goto 36
StackMap locals: sun.security.ssl.KeyShareExtension$CHKeyShareProducer sun.security.ssl.ConnectionContext sun.security.ssl.SSLHandshake$HandshakeMessage sun.security.ssl.ClientHandshakeContext java.util.List java.util.List top java.util.Iterator
StackMap stack:
17: aload 7
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast sun.security.ssl.SupportedGroupsExtension$NamedGroup
astore 6
start local 6 18: aload 6
invokestatic sun.security.ssl.SSLKeyExchange.valueOf:(Lsun/security/ssl/SupportedGroupsExtension$NamedGroup;)Lsun/security/ssl/SSLKeyExchange;
astore 8
start local 8 19: aload 8
ifnonnull 24
20: getstatic sun.security.ssl.SSLLogger.isOn:Z
ifeq 36
ldc "ssl,handshake"
invokestatic sun.security.ssl.SSLLogger.isOn:(Ljava/lang/String;)Z
ifeq 36
21: new java.lang.StringBuilder
dup
ldc "No key exchange for named group "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 6
getfield sun.security.ssl.SupportedGroupsExtension$NamedGroup.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
22: invokestatic sun.security.ssl.SSLLogger.warning:(Ljava/lang/String;[Ljava/lang/Object;)V
23: goto 36
24: StackMap locals: sun.security.ssl.KeyShareExtension$CHKeyShareProducer sun.security.ssl.ConnectionContext sun.security.ssl.SSLHandshake$HandshakeMessage sun.security.ssl.ClientHandshakeContext java.util.List java.util.List sun.security.ssl.SupportedGroupsExtension$NamedGroup java.util.Iterator sun.security.ssl.SSLKeyExchange
StackMap stack:
aload 8
aload 3
invokevirtual sun.security.ssl.SSLKeyExchange.createPossessions:(Lsun/security/ssl/HandshakeContext;)[Lsun/security/ssl/SSLPossession;
astore 9
start local 9 25: aload 9
dup
astore 13
arraylength
istore 12
iconst_0
istore 11
goto 33
StackMap locals: sun.security.ssl.KeyShareExtension$CHKeyShareProducer sun.security.ssl.ConnectionContext sun.security.ssl.SSLHandshake$HandshakeMessage sun.security.ssl.ClientHandshakeContext java.util.List java.util.List sun.security.ssl.SupportedGroupsExtension$NamedGroup java.util.Iterator sun.security.ssl.SSLKeyExchange sun.security.ssl.SSLPossession[] top int int sun.security.ssl.SSLPossession[]
StackMap stack:
26: aload 13
iload 11
aaload
astore 10
start local 10 27: aload 3
getfield sun.security.ssl.ClientHandshakeContext.handshakePossessions:Ljava/util/List;
aload 10
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
28: aload 10
instanceof sun.security.ssl.ECDHKeyExchange$ECDHEPossession
ifne 31
29: aload 10
instanceof sun.security.ssl.DHKeyExchange$DHEPossession
ifne 31
30: goto 32
31: StackMap locals: sun.security.ssl.KeyShareExtension$CHKeyShareProducer sun.security.ssl.ConnectionContext sun.security.ssl.SSLHandshake$HandshakeMessage sun.security.ssl.ClientHandshakeContext java.util.List java.util.List sun.security.ssl.SupportedGroupsExtension$NamedGroup java.util.Iterator sun.security.ssl.SSLKeyExchange sun.security.ssl.SSLPossession[] sun.security.ssl.SSLPossession int int sun.security.ssl.SSLPossession[]
StackMap stack:
aload 5
new sun.security.ssl.KeyShareExtension$KeyShareEntry
dup
aload 6
getfield sun.security.ssl.SupportedGroupsExtension$NamedGroup.id:I
aload 10
invokeinterface sun.security.ssl.SSLPossession.encode:()[B
invokespecial sun.security.ssl.KeyShareExtension$KeyShareEntry.<init>:(I[B)V
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 10 32: StackMap locals: sun.security.ssl.KeyShareExtension$CHKeyShareProducer sun.security.ssl.ConnectionContext sun.security.ssl.SSLHandshake$HandshakeMessage sun.security.ssl.ClientHandshakeContext java.util.List java.util.List sun.security.ssl.SupportedGroupsExtension$NamedGroup java.util.Iterator sun.security.ssl.SSLKeyExchange sun.security.ssl.SSLPossession[] top int int sun.security.ssl.SSLPossession[]
StackMap stack:
iinc 11 1
StackMap locals:
StackMap stack:
33: iload 11
iload 12
if_icmplt 26
34: aload 5
invokeinterface java.util.List.isEmpty:()Z
ifne 36
35: goto 37
end local 9 end local 8 end local 6 36: StackMap locals: sun.security.ssl.KeyShareExtension$CHKeyShareProducer sun.security.ssl.ConnectionContext sun.security.ssl.SSLHandshake$HandshakeMessage sun.security.ssl.ClientHandshakeContext java.util.List java.util.List top java.util.Iterator
StackMap stack:
aload 7
invokeinterface java.util.Iterator.hasNext:()Z
ifne 17
37: StackMap locals: sun.security.ssl.KeyShareExtension$CHKeyShareProducer sun.security.ssl.ConnectionContext sun.security.ssl.SSLHandshake$HandshakeMessage sun.security.ssl.ClientHandshakeContext java.util.List java.util.List
StackMap stack:
iconst_0
istore 6
start local 6 38: aload 5
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 8
goto 41
StackMap locals: sun.security.ssl.KeyShareExtension$CHKeyShareProducer sun.security.ssl.ConnectionContext sun.security.ssl.SSLHandshake$HandshakeMessage sun.security.ssl.ClientHandshakeContext java.util.List java.util.List int top java.util.Iterator
StackMap stack:
39: aload 8
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast sun.security.ssl.KeyShareExtension$KeyShareEntry
astore 7
start local 7 40: iload 6
aload 7
invokevirtual sun.security.ssl.KeyShareExtension$KeyShareEntry.getEncodedSize:()I
iadd
istore 6
end local 7 41: StackMap locals:
StackMap stack:
aload 8
invokeinterface java.util.Iterator.hasNext:()Z
ifne 39
42: iload 6
iconst_2
iadd
newarray 8
astore 7
start local 7 43: aload 7
invokestatic java.nio.ByteBuffer.wrap:([B)Ljava/nio/ByteBuffer;
astore 8
start local 8 44: aload 8
iload 6
invokestatic sun.security.ssl.Record.putInt16:(Ljava/nio/ByteBuffer;I)V
45: aload 5
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 10
goto 48
StackMap locals: sun.security.ssl.KeyShareExtension$CHKeyShareProducer sun.security.ssl.ConnectionContext sun.security.ssl.SSLHandshake$HandshakeMessage sun.security.ssl.ClientHandshakeContext java.util.List java.util.List int byte[] java.nio.ByteBuffer top java.util.Iterator
StackMap stack:
46: aload 10
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast sun.security.ssl.KeyShareExtension$KeyShareEntry
astore 9
start local 9 47: aload 8
aload 9
invokevirtual sun.security.ssl.KeyShareExtension$KeyShareEntry.getEncoded:()[B
invokevirtual java.nio.ByteBuffer.put:([B)Ljava/nio/ByteBuffer;
pop
end local 9 48: StackMap locals:
StackMap stack:
aload 10
invokeinterface java.util.Iterator.hasNext:()Z
ifne 46
49: aload 3
getfield sun.security.ssl.ClientHandshakeContext.handshakeExtensions:Ljava/util/Map;
getstatic sun.security.ssl.SSLExtension.CH_KEY_SHARE:Lsun/security/ssl/SSLExtension;
50: new sun.security.ssl.KeyShareExtension$CHKeyShareSpec
dup
aload 5
invokespecial sun.security.ssl.KeyShareExtension$CHKeyShareSpec.<init>:(Ljava/util/List;)V
51: invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
52: aload 7
areturn
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 53 0 this Lsun/security/ssl/KeyShareExtension$CHKeyShareProducer;
0 53 1 context Lsun/security/ssl/ConnectionContext;
0 53 2 message Lsun/security/ssl/SSLHandshake$HandshakeMessage;
1 53 3 chc Lsun/security/ssl/ClientHandshakeContext;
8 9 4 namedGroups Ljava/util/List<Lsun/security/ssl/SupportedGroupsExtension$NamedGroup;>;
10 53 4 namedGroups Ljava/util/List<Lsun/security/ssl/SupportedGroupsExtension$NamedGroup;>;
16 53 5 keyShares Ljava/util/List<Lsun/security/ssl/KeyShareExtension$KeyShareEntry;>;
18 36 6 ng Lsun/security/ssl/SupportedGroupsExtension$NamedGroup;
19 36 8 ke Lsun/security/ssl/SSLKeyExchange;
25 36 9 poses [Lsun/security/ssl/SSLPossession;
27 32 10 pos Lsun/security/ssl/SSLPossession;
38 53 6 listLen I
40 41 7 entry Lsun/security/ssl/KeyShareExtension$KeyShareEntry;
43 53 7 extData [B
44 53 8 m Ljava/nio/ByteBuffer;
47 48 9 entry Lsun/security/ssl/KeyShareExtension$KeyShareEntry;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
context
message
}
SourceFile: "KeyShareExtension.java"
NestHost: sun.security.ssl.KeyShareExtension
InnerClasses:
final DHEPossession = sun.security.ssl.DHKeyExchange$DHEPossession of sun.security.ssl.DHKeyExchange
final ECDHEPossession = sun.security.ssl.ECDHKeyExchange$ECDHEPossession of sun.security.ssl.ECDHKeyExchange
private final CHKeyShareProducer = sun.security.ssl.KeyShareExtension$CHKeyShareProducer of sun.security.ssl.KeyShareExtension
final CHKeyShareSpec = sun.security.ssl.KeyShareExtension$CHKeyShareSpec of sun.security.ssl.KeyShareExtension
private final KeyShareEntry = sun.security.ssl.KeyShareExtension$KeyShareEntry of sun.security.ssl.KeyShareExtension
abstract HandshakeMessage = sun.security.ssl.SSLHandshake$HandshakeMessage of sun.security.ssl.SSLHandshake
final NamedGroup = sun.security.ssl.SupportedGroupsExtension$NamedGroup of sun.security.ssl.SupportedGroupsExtension