final class sun.security.ssl.ServerNameExtension$CHServerNameProducer implements sun.security.ssl.HandshakeProducer
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: sun.security.ssl.ServerNameExtension$CHServerNameProducer
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 // sun.security.ssl.ServerNameExtension$CHServerNameProducer this
0: .line 210
aload 0 /* this */
invokespecial java.lang.Object.<init>:()V
1: .line 212
return
end local 0 // sun.security.ssl.ServerNameExtension$CHServerNameProducer this
LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/security/ssl/ServerNameExtension$CHServerNameProducer;
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=10, args_size=3
start local 0 // sun.security.ssl.ServerNameExtension$CHServerNameProducer this
start local 1 // sun.security.ssl.ConnectionContext context
start local 2 // sun.security.ssl.SSLHandshake$HandshakeMessage message
0: .line 218
aload 1 /* context */
checkcast sun.security.ssl.ClientHandshakeContext
astore 3 /* chc */
start local 3 // sun.security.ssl.ClientHandshakeContext chc
1: .line 221
aload 3 /* chc */
getfield sun.security.ssl.ClientHandshakeContext.sslConfig:Lsun/security/ssl/SSLConfiguration;
getstatic sun.security.ssl.SSLExtension.CH_SERVER_NAME:Lsun/security/ssl/SSLExtension;
invokevirtual sun.security.ssl.SSLConfiguration.isAvailable:(Lsun/security/ssl/SSLExtension;)Z
ifne 6
2: .line 222
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: .line 224
ldc "Ignore unavailable server_name extension"
iconst_0
anewarray java.lang.Object
4: .line 223
invokestatic sun.security.ssl.SSLLogger.warning:(Ljava/lang/String;[Ljava/lang/Object;)V
5: .line 226
StackMap locals: sun.security.ssl.ClientHandshakeContext
StackMap stack:
aconst_null
areturn
6: .line 231
StackMap locals:
StackMap stack:
aload 3 /* chc */
getfield sun.security.ssl.ClientHandshakeContext.isResumption:Z
ifeq 10
aload 3 /* chc */
getfield sun.security.ssl.ClientHandshakeContext.resumingSession:Lsun/security/ssl/SSLSessionImpl;
ifnull 10
7: .line 233
aload 3 /* chc */
getfield sun.security.ssl.ClientHandshakeContext.resumingSession:Lsun/security/ssl/SSLSessionImpl;
invokevirtual sun.security.ssl.SSLSessionImpl.getRequestedServerNames:()Ljava/util/List;
8: .line 232
astore 4 /* serverNames */
start local 4 // java.util.List serverNames
9: .line 234
goto 11
end local 4 // java.util.List serverNames
10: .line 235
StackMap locals:
StackMap stack:
aload 3 /* chc */
getfield sun.security.ssl.ClientHandshakeContext.sslConfig:Lsun/security/ssl/SSLConfiguration;
getfield sun.security.ssl.SSLConfiguration.serverNames:Ljava/util/List;
astore 4 /* serverNames */
start local 4 // java.util.List serverNames
11: .line 239
StackMap locals: java.util.List
StackMap stack:
aload 4 /* serverNames */
ifnull 31
aload 4 /* serverNames */
invokeinterface java.util.List.isEmpty:()Z
ifne 31
12: .line 240
iconst_0
istore 5 /* sniLen */
start local 5 // int sniLen
13: .line 241
aload 4 /* serverNames */
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 7
goto 17
StackMap locals: sun.security.ssl.ServerNameExtension$CHServerNameProducer sun.security.ssl.ConnectionContext sun.security.ssl.SSLHandshake$HandshakeMessage sun.security.ssl.ClientHandshakeContext java.util.List int top java.util.Iterator
StackMap stack:
14: aload 7
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast javax.net.ssl.SNIServerName
astore 6 /* sniName */
start local 6 // javax.net.ssl.SNIServerName sniName
15: .line 247
iinc 5 /* sniLen */ 3
16: .line 248
iload 5 /* sniLen */
aload 6 /* sniName */
invokevirtual javax.net.ssl.SNIServerName.getEncoded:()[B
arraylength
iadd
istore 5 /* sniLen */
end local 6 // javax.net.ssl.SNIServerName sniName
17: .line 241
StackMap locals:
StackMap stack:
aload 7
invokeinterface java.util.Iterator.hasNext:()Z
ifne 14
18: .line 251
iload 5 /* sniLen */
iconst_2
iadd
newarray 8
astore 6 /* extData */
start local 6 // byte[] extData
19: .line 252
aload 6 /* extData */
invokestatic java.nio.ByteBuffer.wrap:([B)Ljava/nio/ByteBuffer;
astore 7 /* m */
start local 7 // java.nio.ByteBuffer m
20: .line 253
aload 7 /* m */
iload 5 /* sniLen */
invokestatic sun.security.ssl.Record.putInt16:(Ljava/nio/ByteBuffer;I)V
21: .line 254
aload 4 /* serverNames */
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 9
goto 25
StackMap locals: sun.security.ssl.ServerNameExtension$CHServerNameProducer sun.security.ssl.ConnectionContext sun.security.ssl.SSLHandshake$HandshakeMessage sun.security.ssl.ClientHandshakeContext java.util.List int byte[] java.nio.ByteBuffer top java.util.Iterator
StackMap stack:
22: aload 9
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast javax.net.ssl.SNIServerName
astore 8 /* sniName */
start local 8 // javax.net.ssl.SNIServerName sniName
23: .line 255
aload 7 /* m */
aload 8 /* sniName */
invokevirtual javax.net.ssl.SNIServerName.getType:()I
invokestatic sun.security.ssl.Record.putInt8:(Ljava/nio/ByteBuffer;I)V
24: .line 256
aload 7 /* m */
aload 8 /* sniName */
invokevirtual javax.net.ssl.SNIServerName.getEncoded:()[B
invokestatic sun.security.ssl.Record.putBytes16:(Ljava/nio/ByteBuffer;[B)V
end local 8 // javax.net.ssl.SNIServerName sniName
25: .line 254
StackMap locals:
StackMap stack:
aload 9
invokeinterface java.util.Iterator.hasNext:()Z
ifne 22
26: .line 260
aload 3 /* chc */
aload 4 /* serverNames */
putfield sun.security.ssl.ClientHandshakeContext.requestedServerNames:Ljava/util/List;
27: .line 261
aload 3 /* chc */
getfield sun.security.ssl.ClientHandshakeContext.handshakeExtensions:Ljava/util/Map;
getstatic sun.security.ssl.SSLExtension.CH_SERVER_NAME:Lsun/security/ssl/SSLExtension;
28: .line 262
new sun.security.ssl.ServerNameExtension$CHServerNamesSpec
dup
aload 4 /* serverNames */
invokespecial sun.security.ssl.ServerNameExtension$CHServerNamesSpec.<init>:(Ljava/util/List;)V
29: .line 261
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
30: .line 264
aload 6 /* extData */
areturn
end local 7 // java.nio.ByteBuffer m
end local 6 // byte[] extData
end local 5 // int sniLen
31: .line 267
StackMap locals: sun.security.ssl.ServerNameExtension$CHServerNameProducer sun.security.ssl.ConnectionContext sun.security.ssl.SSLHandshake$HandshakeMessage sun.security.ssl.ClientHandshakeContext java.util.List
StackMap stack:
getstatic sun.security.ssl.SSLLogger.isOn:Z
ifeq 33
ldc "ssl,handshake"
invokestatic sun.security.ssl.SSLLogger.isOn:(Ljava/lang/String;)Z
ifeq 33
32: .line 268
ldc "Unable to indicate server name"
iconst_0
anewarray java.lang.Object
invokestatic sun.security.ssl.SSLLogger.warning:(Ljava/lang/String;[Ljava/lang/Object;)V
33: .line 270
StackMap locals:
StackMap stack:
aconst_null
areturn
end local 4 // java.util.List serverNames
end local 3 // sun.security.ssl.ClientHandshakeContext chc
end local 2 // sun.security.ssl.SSLHandshake$HandshakeMessage message
end local 1 // sun.security.ssl.ConnectionContext context
end local 0 // sun.security.ssl.ServerNameExtension$CHServerNameProducer this
LocalVariableTable:
Start End Slot Name Signature
0 34 0 this Lsun/security/ssl/ServerNameExtension$CHServerNameProducer;
0 34 1 context Lsun/security/ssl/ConnectionContext;
0 34 2 message Lsun/security/ssl/SSLHandshake$HandshakeMessage;
1 34 3 chc Lsun/security/ssl/ClientHandshakeContext;
9 10 4 serverNames Ljava/util/List<Ljavax/net/ssl/SNIServerName;>;
11 34 4 serverNames Ljava/util/List<Ljavax/net/ssl/SNIServerName;>;
13 31 5 sniLen I
15 17 6 sniName Ljavax/net/ssl/SNIServerName;
19 31 6 extData [B
20 31 7 m Ljava/nio/ByteBuffer;
23 25 8 sniName Ljavax/net/ssl/SNIServerName;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
context
message
}
SourceFile: "ServerNameExtension.java"
NestHost: sun.security.ssl.ServerNameExtension
InnerClasses:
abstract HandshakeMessage = sun.security.ssl.SSLHandshake$HandshakeMessage of sun.security.ssl.SSLHandshake
private final CHServerNameProducer = sun.security.ssl.ServerNameExtension$CHServerNameProducer of sun.security.ssl.ServerNameExtension
final CHServerNamesSpec = sun.security.ssl.ServerNameExtension$CHServerNamesSpec of sun.security.ssl.ServerNameExtension