final class sun.security.ssl.AlpnExtension$SHAlpnConsumer implements sun.security.ssl.SSLExtension$ExtensionConsumer
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: sun.security.ssl.AlpnExtension$SHAlpnConsumer
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.AlpnExtension$SHAlpnConsumer this
0: .line 444
aload 0 /* this */
invokespecial java.lang.Object.<init>:()V
1: .line 446
return
end local 0 // sun.security.ssl.AlpnExtension$SHAlpnConsumer this
LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/security/ssl/AlpnExtension$SHAlpnConsumer;
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=7, args_size=4
start local 0 // sun.security.ssl.AlpnExtension$SHAlpnConsumer this
start local 1 // sun.security.ssl.ConnectionContext context
start local 2 // sun.security.ssl.SSLHandshake$HandshakeMessage message
start local 3 // java.nio.ByteBuffer buffer
0: .line 452
aload 1 /* context */
checkcast sun.security.ssl.ClientHandshakeContext
astore 4 /* chc */
start local 4 // sun.security.ssl.ClientHandshakeContext chc
1: .line 456
aload 4 /* chc */
getfield sun.security.ssl.ClientHandshakeContext.handshakeExtensions:Ljava/util/Map;
getstatic sun.security.ssl.SSLExtension.CH_ALPN:Lsun/security/ssl/SSLExtension;
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast sun.security.ssl.AlpnExtension$AlpnSpec
2: .line 455
astore 5 /* requestedAlps */
start local 5 // sun.security.ssl.AlpnExtension$AlpnSpec requestedAlps
3: .line 457
aload 5 /* requestedAlps */
ifnull 6
4: .line 458
aload 5 /* requestedAlps */
getfield sun.security.ssl.AlpnExtension$AlpnSpec.applicationProtocols:Ljava/util/List;
ifnull 6
5: .line 459
aload 5 /* requestedAlps */
getfield sun.security.ssl.AlpnExtension$AlpnSpec.applicationProtocols:Ljava/util/List;
invokeinterface java.util.List.isEmpty:()Z
ifeq 9
6: .line 460
StackMap locals: sun.security.ssl.ClientHandshakeContext sun.security.ssl.AlpnExtension$AlpnSpec
StackMap stack:
aload 4 /* chc */
getfield sun.security.ssl.ClientHandshakeContext.conContext:Lsun/security/ssl/TransportContext;
getstatic sun.security.ssl.Alert.UNEXPECTED_MESSAGE:Lsun/security/ssl/Alert;
7: .line 461
new java.lang.StringBuilder
dup
ldc "Unexpected "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
getstatic sun.security.ssl.SSLExtension.CH_ALPN:Lsun/security/ssl/SSLExtension;
getfield sun.security.ssl.SSLExtension.name:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc " extension"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
8: .line 460
invokevirtual sun.security.ssl.TransportContext.fatal:(Lsun/security/ssl/Alert;Ljava/lang/String;)Ljavax/net/ssl/SSLException;
athrow
9: .line 465
StackMap locals:
StackMap stack:
new sun.security.ssl.AlpnExtension$AlpnSpec
dup
aload 4 /* chc */
aload 3 /* buffer */
invokespecial sun.security.ssl.AlpnExtension$AlpnSpec.<init>:(Lsun/security/ssl/HandshakeContext;Ljava/nio/ByteBuffer;)V
astore 6 /* spec */
start local 6 // sun.security.ssl.AlpnExtension$AlpnSpec spec
10: .line 468
aload 6 /* spec */
getfield sun.security.ssl.AlpnExtension$AlpnSpec.applicationProtocols:Ljava/util/List;
invokeinterface java.util.List.size:()I
iconst_1
if_icmpeq 17
11: .line 469
aload 4 /* chc */
getfield sun.security.ssl.ClientHandshakeContext.conContext:Lsun/security/ssl/TransportContext;
getstatic sun.security.ssl.Alert.UNEXPECTED_MESSAGE:Lsun/security/ssl/Alert;
12: .line 470
new java.lang.StringBuilder
dup
ldc "Invalid "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
getstatic sun.security.ssl.SSLExtension.CH_ALPN:Lsun/security/ssl/SSLExtension;
getfield sun.security.ssl.SSLExtension.name:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc " extension: "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
13: .line 471
ldc "Only one application protocol name "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
14: .line 472
ldc "is allowed in ServerHello message"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
15: .line 470
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
16: .line 469
invokevirtual sun.security.ssl.TransportContext.fatal:(Lsun/security/ssl/Alert;Ljava/lang/String;)Ljavax/net/ssl/SSLException;
athrow
17: .line 476
StackMap locals: sun.security.ssl.AlpnExtension$AlpnSpec
StackMap stack:
aload 5 /* requestedAlps */
getfield sun.security.ssl.AlpnExtension$AlpnSpec.applicationProtocols:Ljava/util/List;
18: .line 477
aload 6 /* spec */
getfield sun.security.ssl.AlpnExtension$AlpnSpec.applicationProtocols:Ljava/util/List;
19: .line 476
invokeinterface java.util.List.containsAll:(Ljava/util/Collection;)Z
20: .line 477
ifne 27
21: .line 478
aload 4 /* chc */
getfield sun.security.ssl.ClientHandshakeContext.conContext:Lsun/security/ssl/TransportContext;
getstatic sun.security.ssl.Alert.UNEXPECTED_MESSAGE:Lsun/security/ssl/Alert;
22: .line 479
new java.lang.StringBuilder
dup
ldc "Invalid "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
getstatic sun.security.ssl.SSLExtension.CH_ALPN:Lsun/security/ssl/SSLExtension;
getfield sun.security.ssl.SSLExtension.name:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc " extension: "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
23: .line 480
ldc "Only client specified application protocol "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
24: .line 481
ldc "is allowed in ServerHello message"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
25: .line 479
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
26: .line 478
invokevirtual sun.security.ssl.TransportContext.fatal:(Lsun/security/ssl/Alert;Ljava/lang/String;)Ljavax/net/ssl/SSLException;
athrow
27: .line 485
StackMap locals:
StackMap stack:
aload 4 /* chc */
aload 6 /* spec */
getfield sun.security.ssl.AlpnExtension$AlpnSpec.applicationProtocols:Ljava/util/List;
iconst_0
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast java.lang.String
putfield sun.security.ssl.ClientHandshakeContext.applicationProtocol:Ljava/lang/String;
28: .line 486
aload 4 /* chc */
getfield sun.security.ssl.ClientHandshakeContext.conContext:Lsun/security/ssl/TransportContext;
aload 4 /* chc */
getfield sun.security.ssl.ClientHandshakeContext.applicationProtocol:Ljava/lang/String;
putfield sun.security.ssl.TransportContext.applicationProtocol:Ljava/lang/String;
29: .line 491
aload 4 /* chc */
getfield sun.security.ssl.ClientHandshakeContext.handshakeExtensions:Ljava/util/Map;
getstatic sun.security.ssl.SSLExtension.CH_ALPN:Lsun/security/ssl/SSLExtension;
invokeinterface java.util.Map.remove:(Ljava/lang/Object;)Ljava/lang/Object;
pop
30: .line 492
return
end local 6 // sun.security.ssl.AlpnExtension$AlpnSpec spec
end local 5 // sun.security.ssl.AlpnExtension$AlpnSpec requestedAlps
end local 4 // sun.security.ssl.ClientHandshakeContext chc
end local 3 // java.nio.ByteBuffer buffer
end local 2 // sun.security.ssl.SSLHandshake$HandshakeMessage message
end local 1 // sun.security.ssl.ConnectionContext context
end local 0 // sun.security.ssl.AlpnExtension$SHAlpnConsumer this
LocalVariableTable:
Start End Slot Name Signature
0 31 0 this Lsun/security/ssl/AlpnExtension$SHAlpnConsumer;
0 31 1 context Lsun/security/ssl/ConnectionContext;
0 31 2 message Lsun/security/ssl/SSLHandshake$HandshakeMessage;
0 31 3 buffer Ljava/nio/ByteBuffer;
1 31 4 chc Lsun/security/ssl/ClientHandshakeContext;
3 31 5 requestedAlps Lsun/security/ssl/AlpnExtension$AlpnSpec;
10 31 6 spec Lsun/security/ssl/AlpnExtension$AlpnSpec;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
context
message
buffer
}
SourceFile: "AlpnExtension.java"
NestHost: sun.security.ssl.AlpnExtension
InnerClasses:
final AlpnSpec = sun.security.ssl.AlpnExtension$AlpnSpec of sun.security.ssl.AlpnExtension
private final SHAlpnConsumer = sun.security.ssl.AlpnExtension$SHAlpnConsumer of sun.security.ssl.AlpnExtension
abstract ExtensionConsumer = sun.security.ssl.SSLExtension$ExtensionConsumer of sun.security.ssl.SSLExtension
abstract HandshakeMessage = sun.security.ssl.SSLHandshake$HandshakeMessage of sun.security.ssl.SSLHandshake