final class sun.security.ssl.AlpnExtension$CHAlpnConsumer 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$CHAlpnConsumer
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$CHAlpnConsumer this
0: .line 244
aload 0 /* this */
invokespecial java.lang.Object.<init>:()V
1: .line 246
return
end local 0 // sun.security.ssl.AlpnExtension$CHAlpnConsumer this
LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/security/ssl/AlpnExtension$CHAlpnConsumer;
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=4, locals=14, args_size=4
start local 0 // sun.security.ssl.AlpnExtension$CHAlpnConsumer 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 252
aload 1 /* context */
checkcast sun.security.ssl.ServerHandshakeContext
astore 4 /* shc */
start local 4 // sun.security.ssl.ServerHandshakeContext shc
1: .line 255
aload 4 /* shc */
getfield sun.security.ssl.ServerHandshakeContext.sslConfig:Lsun/security/ssl/SSLConfiguration;
getstatic sun.security.ssl.SSLExtension.CH_ALPN:Lsun/security/ssl/SSLExtension;
invokevirtual sun.security.ssl.SSLConfiguration.isAvailable:(Lsun/security/ssl/SSLExtension;)Z
ifne 10
2: .line 256
aload 4 /* shc */
ldc ""
putfield sun.security.ssl.ServerHandshakeContext.applicationProtocol:Ljava/lang/String;
3: .line 257
aload 4 /* shc */
getfield sun.security.ssl.ServerHandshakeContext.conContext:Lsun/security/ssl/TransportContext;
ldc ""
putfield sun.security.ssl.TransportContext.applicationProtocol:Ljava/lang/String;
4: .line 258
getstatic sun.security.ssl.SSLLogger.isOn:Z
ifeq 9
ldc "ssl,handshake"
invokestatic sun.security.ssl.SSLLogger.isOn:(Ljava/lang/String;)Z
ifeq 9
5: .line 260
new java.lang.StringBuilder
dup
ldc "Ignore server unavailable extension: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
6: .line 261
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;
7: .line 260
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
iconst_0
anewarray java.lang.Object
8: .line 259
invokestatic sun.security.ssl.SSLLogger.info:(Ljava/lang/String;[Ljava/lang/Object;)V
9: .line 263
StackMap locals: sun.security.ssl.ServerHandshakeContext
StackMap stack:
return
10: .line 268
StackMap locals:
StackMap stack:
aload 4 /* shc */
getfield sun.security.ssl.ServerHandshakeContext.conContext:Lsun/security/ssl/TransportContext;
getfield sun.security.ssl.TransportContext.transport:Lsun/security/ssl/SSLTransport;
instanceof javax.net.ssl.SSLEngine
ifeq 15
11: .line 269
aload 4 /* shc */
getfield sun.security.ssl.ServerHandshakeContext.sslConfig:Lsun/security/ssl/SSLConfiguration;
getfield sun.security.ssl.SSLConfiguration.engineAPSelector:Ljava/util/function/BiFunction;
ifnonnull 12
iconst_1
goto 13
StackMap locals:
StackMap stack:
12: iconst_0
StackMap locals:
StackMap stack: int
13: istore 5 /* noAPSelector */
start local 5 // boolean noAPSelector
14: .line 270
goto 18
end local 5 // boolean noAPSelector
15: .line 271
StackMap locals:
StackMap stack:
aload 4 /* shc */
getfield sun.security.ssl.ServerHandshakeContext.sslConfig:Lsun/security/ssl/SSLConfiguration;
getfield sun.security.ssl.SSLConfiguration.socketAPSelector:Ljava/util/function/BiFunction;
ifnonnull 16
iconst_1
goto 17
StackMap locals:
StackMap stack:
16: iconst_0
StackMap locals:
StackMap stack: int
17: istore 5 /* noAPSelector */
start local 5 // boolean noAPSelector
18: .line 275
StackMap locals: int
StackMap stack:
aload 4 /* shc */
getfield sun.security.ssl.ServerHandshakeContext.sslConfig:Lsun/security/ssl/SSLConfiguration;
getfield sun.security.ssl.SSLConfiguration.applicationProtocols:[Ljava/lang/String;
ifnull 21
19: .line 276
aload 4 /* shc */
getfield sun.security.ssl.ServerHandshakeContext.sslConfig:Lsun/security/ssl/SSLConfiguration;
getfield sun.security.ssl.SSLConfiguration.applicationProtocols:[Ljava/lang/String;
arraylength
ifeq 21
20: .line 274
iconst_0
goto 22
StackMap locals:
StackMap stack:
21: iconst_1
StackMap locals:
StackMap stack: int
22: istore 6 /* noAlpnProtocols */
start local 6 // boolean noAlpnProtocols
23: .line 277
iload 5 /* noAPSelector */
ifeq 32
iload 6 /* noAlpnProtocols */
ifeq 32
24: .line 278
aload 4 /* shc */
ldc ""
putfield sun.security.ssl.ServerHandshakeContext.applicationProtocol:Ljava/lang/String;
25: .line 279
aload 4 /* shc */
getfield sun.security.ssl.ServerHandshakeContext.conContext:Lsun/security/ssl/TransportContext;
ldc ""
putfield sun.security.ssl.TransportContext.applicationProtocol:Ljava/lang/String;
26: .line 280
getstatic sun.security.ssl.SSLLogger.isOn:Z
ifeq 31
ldc "ssl,handshake"
invokestatic sun.security.ssl.SSLLogger.isOn:(Ljava/lang/String;)Z
ifeq 31
27: .line 282
new java.lang.StringBuilder
dup
ldc "Ignore server unenabled extension: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
28: .line 283
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;
29: .line 282
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
iconst_0
anewarray java.lang.Object
30: .line 281
invokestatic sun.security.ssl.SSLLogger.fine:(Ljava/lang/String;[Ljava/lang/Object;)V
31: .line 285
StackMap locals: int
StackMap stack:
return
32: .line 289
StackMap locals:
StackMap stack:
new sun.security.ssl.AlpnExtension$AlpnSpec
dup
aload 4 /* shc */
aload 3 /* buffer */
invokespecial sun.security.ssl.AlpnExtension$AlpnSpec.<init>:(Lsun/security/ssl/HandshakeContext;Ljava/nio/ByteBuffer;)V
astore 7 /* spec */
start local 7 // sun.security.ssl.AlpnExtension$AlpnSpec spec
33: .line 292
iload 5 /* noAPSelector */
ifeq 49
34: .line 293
aload 7 /* spec */
getfield sun.security.ssl.AlpnExtension$AlpnSpec.applicationProtocols:Ljava/util/List;
astore 8 /* protocolNames */
start local 8 // java.util.List protocolNames
35: .line 294
iconst_0
istore 9 /* matched */
start local 9 // boolean matched
36: .line 296
aload 4 /* shc */
getfield sun.security.ssl.ServerHandshakeContext.sslConfig:Lsun/security/ssl/SSLConfiguration;
getfield sun.security.ssl.SSLConfiguration.applicationProtocols:[Ljava/lang/String;
dup
astore 13
arraylength
istore 12
iconst_0
istore 11
goto 44
StackMap locals: sun.security.ssl.AlpnExtension$CHAlpnConsumer sun.security.ssl.ConnectionContext sun.security.ssl.SSLHandshake$HandshakeMessage java.nio.ByteBuffer sun.security.ssl.ServerHandshakeContext int int sun.security.ssl.AlpnExtension$AlpnSpec java.util.List int top int int java.lang.String[]
StackMap stack:
37: aload 13
iload 11
aaload
astore 10 /* ap */
start local 10 // java.lang.String ap
38: .line 297
aload 8 /* protocolNames */
aload 10 /* ap */
invokeinterface java.util.List.contains:(Ljava/lang/Object;)Z
ifeq 43
39: .line 298
aload 4 /* shc */
aload 10 /* ap */
putfield sun.security.ssl.ServerHandshakeContext.applicationProtocol:Ljava/lang/String;
40: .line 299
aload 4 /* shc */
getfield sun.security.ssl.ServerHandshakeContext.conContext:Lsun/security/ssl/TransportContext;
aload 10 /* ap */
putfield sun.security.ssl.TransportContext.applicationProtocol:Ljava/lang/String;
41: .line 300
iconst_1
istore 9 /* matched */
42: .line 301
goto 45
end local 10 // java.lang.String ap
43: .line 296
StackMap locals:
StackMap stack:
iinc 11 1
StackMap locals:
StackMap stack:
44: iload 11
iload 12
if_icmplt 37
45: .line 305
StackMap locals: sun.security.ssl.AlpnExtension$CHAlpnConsumer sun.security.ssl.ConnectionContext sun.security.ssl.SSLHandshake$HandshakeMessage java.nio.ByteBuffer sun.security.ssl.ServerHandshakeContext int int sun.security.ssl.AlpnExtension$AlpnSpec java.util.List int
StackMap stack:
iload 9 /* matched */
ifne 49
46: .line 306
aload 4 /* shc */
getfield sun.security.ssl.ServerHandshakeContext.conContext:Lsun/security/ssl/TransportContext;
getstatic sun.security.ssl.Alert.NO_APPLICATION_PROTOCOL:Lsun/security/ssl/Alert;
47: .line 307
ldc "No matching application layer protocol values"
48: .line 306
invokevirtual sun.security.ssl.TransportContext.fatal:(Lsun/security/ssl/Alert;Ljava/lang/String;)Ljavax/net/ssl/SSLException;
athrow
end local 9 // boolean matched
end local 8 // java.util.List protocolNames
49: .line 312
StackMap locals:
StackMap stack:
aload 4 /* shc */
getfield sun.security.ssl.ServerHandshakeContext.handshakeExtensions:Ljava/util/Map;
getstatic sun.security.ssl.SSLExtension.CH_ALPN:Lsun/security/ssl/SSLExtension;
aload 7 /* spec */
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
50: .line 322
return
end local 7 // sun.security.ssl.AlpnExtension$AlpnSpec spec
end local 6 // boolean noAlpnProtocols
end local 5 // boolean noAPSelector
end local 4 // sun.security.ssl.ServerHandshakeContext shc
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$CHAlpnConsumer this
LocalVariableTable:
Start End Slot Name Signature
0 51 0 this Lsun/security/ssl/AlpnExtension$CHAlpnConsumer;
0 51 1 context Lsun/security/ssl/ConnectionContext;
0 51 2 message Lsun/security/ssl/SSLHandshake$HandshakeMessage;
0 51 3 buffer Ljava/nio/ByteBuffer;
1 51 4 shc Lsun/security/ssl/ServerHandshakeContext;
14 15 5 noAPSelector Z
18 51 5 noAPSelector Z
23 51 6 noAlpnProtocols Z
33 51 7 spec Lsun/security/ssl/AlpnExtension$AlpnSpec;
35 49 8 protocolNames Ljava/util/List<Ljava/lang/String;>;
36 49 9 matched Z
38 43 10 ap Ljava/lang/String;
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 CHAlpnConsumer = sun.security.ssl.AlpnExtension$CHAlpnConsumer 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