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/NamedGroup;
ifnull 9
7: iconst_1
anewarray sun.security.ssl.NamedGroup
dup
iconst_0
aload 3
getfield sun.security.ssl.ClientHandshakeContext.serverSelectedNamedGroup:Lsun/security/ssl/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 35
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.NamedGroup
astore 6
start local 6 18: aload 6
invokestatic sun.security.ssl.SSLKeyExchange.valueOf:(Lsun/security/ssl/NamedGroup;)Lsun/security/ssl/SSLKeyExchange;
astore 8
start local 8 19: aload 8
ifnonnull 24
20: getstatic sun.security.ssl.SSLLogger.isOn:Z
ifeq 35
ldc "ssl,handshake"
invokestatic sun.security.ssl.SSLLogger.isOn:(Ljava/lang/String;)Z
ifeq 35
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.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 35
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.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 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.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.NamedGroupPossession
ifne 30
29: goto 31
30: 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.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.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 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.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:
32: iload 11
iload 12
if_icmplt 26
33: aload 5
invokeinterface java.util.List.isEmpty:()Z
ifne 35
34: goto 36
end local 9 end local 8 end local 6 35: 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
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
StackMap stack:
iconst_0
istore 6
start local 6 37: aload 5
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 8
goto 40
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:
38: aload 8
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast sun.security.ssl.KeyShareExtension$KeyShareEntry
astore 7
start local 7 39: iload 6
aload 7
invokevirtual sun.security.ssl.KeyShareExtension$KeyShareEntry.getEncodedSize:()I
iadd
istore 6
end local 7 40: StackMap locals:
StackMap stack:
aload 8
invokeinterface java.util.Iterator.hasNext:()Z
ifne 38
41: iload 6
iconst_2
iadd
newarray 8
astore 7
start local 7 42: aload 7
invokestatic java.nio.ByteBuffer.wrap:([B)Ljava/nio/ByteBuffer;
astore 8
start local 8 43: aload 8
iload 6
invokestatic sun.security.ssl.Record.putInt16:(Ljava/nio/ByteBuffer;I)V
44: aload 5
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 10
goto 47
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:
45: aload 10
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast sun.security.ssl.KeyShareExtension$KeyShareEntry
astore 9
start local 9 46: 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 47: StackMap locals:
StackMap stack:
aload 10
invokeinterface java.util.Iterator.hasNext:()Z
ifne 45
48: aload 3
getfield sun.security.ssl.ClientHandshakeContext.handshakeExtensions:Ljava/util/Map;
getstatic sun.security.ssl.SSLExtension.CH_KEY_SHARE:Lsun/security/ssl/SSLExtension;
49: new sun.security.ssl.KeyShareExtension$CHKeyShareSpec
dup
aload 5
invokespecial sun.security.ssl.KeyShareExtension$CHKeyShareSpec.<init>:(Ljava/util/List;)V
50: invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
51: 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 52 0 this Lsun/security/ssl/KeyShareExtension$CHKeyShareProducer;
0 52 1 context Lsun/security/ssl/ConnectionContext;
0 52 2 message Lsun/security/ssl/SSLHandshake$HandshakeMessage;
1 52 3 chc Lsun/security/ssl/ClientHandshakeContext;
8 9 4 namedGroups Ljava/util/List<Lsun/security/ssl/NamedGroup;>;
10 52 4 namedGroups Ljava/util/List<Lsun/security/ssl/NamedGroup;>;
16 52 5 keyShares Ljava/util/List<Lsun/security/ssl/KeyShareExtension$KeyShareEntry;>;
18 35 6 ng Lsun/security/ssl/NamedGroup;
19 35 8 ke Lsun/security/ssl/SSLKeyExchange;
25 35 9 poses [Lsun/security/ssl/SSLPossession;
27 31 10 pos Lsun/security/ssl/SSLPossession;
37 52 6 listLen I
39 40 7 entry Lsun/security/ssl/KeyShareExtension$KeyShareEntry;
42 52 7 extData [B
43 52 8 m Ljava/nio/ByteBuffer;
46 47 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:
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