abstract class jdk.internal.net.http.AbstractAsyncSSLConnection extends jdk.internal.net.http.HttpConnection
minor version: 0
major version: 59
flags: flags: (0x0420) ACC_SUPER, ACC_ABSTRACT
this_class: jdk.internal.net.http.AbstractAsyncSSLConnection
super_class: jdk.internal.net.http.HttpConnection
{
protected final javax.net.ssl.SSLEngine engine;
descriptor: Ljavax/net/ssl/SSLEngine;
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
protected final java.lang.String serverName;
descriptor: Ljava/lang/String;
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
protected final javax.net.ssl.SSLParameters sslParameters;
descriptor: Ljavax/net/ssl/SSLParameters;
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
private static final boolean disableHostnameVerification;
descriptor: Z
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: invokestatic jdk.internal.net.http.common.Utils.isHostnameVerificationDisabled:()Z
1: putstatic jdk.internal.net.http.AbstractAsyncSSLConnection.disableHostnameVerification:Z
2: return
LocalVariableTable:
Start End Slot Name Signature
void <init>(java.net.InetSocketAddress, jdk.internal.net.http.HttpClientImpl, jdk.internal.net.http.common.Utils$ServerName, int, java.lang.String[]);
descriptor: (Ljava/net/InetSocketAddress;Ljdk/internal/net/http/HttpClientImpl;Ljdk/internal/net/http/common/Utils$ServerName;I[Ljava/lang/String;)V
flags: (0x0000)
Code:
stack=5, locals=7, args_size=6
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 0: aload 0
aload 1
aload 2
invokespecial jdk.internal.net.http.HttpConnection.<init>:(Ljava/net/InetSocketAddress;Ljdk/internal/net/http/HttpClientImpl;)V
1: aload 0
aload 3
invokevirtual jdk.internal.net.http.common.Utils$ServerName.getName:()Ljava/lang/String;
putfield jdk.internal.net.http.AbstractAsyncSSLConnection.serverName:Ljava/lang/String;
2: aload 2
invokevirtual jdk.internal.net.http.HttpClientImpl.theSSLContext:()Ljavax/net/ssl/SSLContext;
astore 6
start local 6 3: aload 0
aload 2
aload 3
aload 5
invokestatic jdk.internal.net.http.AbstractAsyncSSLConnection.createSSLParameters:(Ljdk/internal/net/http/HttpClientImpl;Ljdk/internal/net/http/common/Utils$ServerName;[Ljava/lang/String;)Ljavax/net/ssl/SSLParameters;
putfield jdk.internal.net.http.AbstractAsyncSSLConnection.sslParameters:Ljavax/net/ssl/SSLParameters;
4: aload 0
getfield jdk.internal.net.http.AbstractAsyncSSLConnection.sslParameters:Ljavax/net/ssl/SSLParameters;
invokestatic jdk.internal.net.http.common.Log.logParams:(Ljavax/net/ssl/SSLParameters;)V
5: aload 0
aload 6
aload 3
invokevirtual jdk.internal.net.http.common.Utils$ServerName.getName:()Ljava/lang/String;
iload 4
aload 0
getfield jdk.internal.net.http.AbstractAsyncSSLConnection.sslParameters:Ljavax/net/ssl/SSLParameters;
invokestatic jdk.internal.net.http.AbstractAsyncSSLConnection.createEngine:(Ljavax/net/ssl/SSLContext;Ljava/lang/String;ILjavax/net/ssl/SSLParameters;)Ljavax/net/ssl/SSLEngine;
putfield jdk.internal.net.http.AbstractAsyncSSLConnection.engine:Ljavax/net/ssl/SSLEngine;
6: return
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 7 0 this Ljdk/internal/net/http/AbstractAsyncSSLConnection;
0 7 1 addr Ljava/net/InetSocketAddress;
0 7 2 client Ljdk/internal/net/http/HttpClientImpl;
0 7 3 serverName Ljdk/internal/net/http/common/Utils$ServerName;
0 7 4 port I
0 7 5 alpn [Ljava/lang/String;
3 7 6 context Ljavax/net/ssl/SSLContext;
MethodParameters:
Name Flags
addr
client
serverName
port
alpn
abstract jdk.internal.net.http.common.SSLTube getConnectionFlow();
descriptor: ()Ljdk/internal/net/http/common/SSLTube;
flags: (0x0400) ACC_ABSTRACT
final java.util.concurrent.CompletableFuture<java.lang.String> getALPN();
descriptor: ()Ljava/util/concurrent/CompletableFuture;
flags: (0x0010) ACC_FINAL
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual jdk.internal.net.http.AbstractAsyncSSLConnection.getConnectionFlow:()Ljdk/internal/net/http/common/SSLTube;
invokevirtual jdk.internal.net.http.common.SSLTube.getALPN:()Ljava/util/concurrent/CompletableFuture;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/net/http/AbstractAsyncSSLConnection;
Signature: ()Ljava/util/concurrent/CompletableFuture<Ljava/lang/String;>;
final javax.net.ssl.SSLEngine getEngine();
descriptor: ()Ljavax/net/ssl/SSLEngine;
flags: (0x0010) ACC_FINAL
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.internal.net.http.AbstractAsyncSSLConnection.engine:Ljavax/net/ssl/SSLEngine;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/net/http/AbstractAsyncSSLConnection;
private static boolean contains(java.lang.String[], java.lang.String);
descriptor: ([Ljava/lang/String;Ljava/lang/String;)Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=6, args_size=2
start local 0 start local 1 0: aload 0
dup
astore 5
arraylength
istore 4
iconst_0
istore 3
goto 5
StackMap locals: java.lang.String[] java.lang.String top int int java.lang.String[]
StackMap stack:
1: aload 5
iload 3
aaload
astore 2
start local 2 2: aload 1
aload 2
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifeq 4
3: iconst_1
ireturn
end local 2 4: StackMap locals:
StackMap stack:
iinc 3 1
StackMap locals:
StackMap stack:
5: iload 3
iload 4
if_icmplt 1
6: iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 rr [Ljava/lang/String;
0 7 1 target Ljava/lang/String;
2 4 2 s Ljava/lang/String;
MethodParameters:
Name Flags
rr
target
private static javax.net.ssl.SSLParameters createSSLParameters(jdk.internal.net.http.HttpClientImpl, jdk.internal.net.http.common.Utils$ServerName, java.lang.String[]);
descriptor: (Ljdk/internal/net/http/HttpClientImpl;Ljdk/internal/net/http/common/Utils$ServerName;[Ljava/lang/String;)Ljavax/net/ssl/SSLParameters;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=10, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokevirtual jdk.internal.net.http.HttpClientImpl.sslParameters:()Ljavax/net/ssl/SSLParameters;
astore 3
start local 3 1: aload 3
invokestatic jdk.internal.net.http.common.Utils.copySSLParameters:(Ljavax/net/ssl/SSLParameters;)Ljavax/net/ssl/SSLParameters;
astore 4
start local 4 2: aload 2
ifnull 12
aload 2
arraylength
ifeq 12
aload 2
ldc "http/1.1"
invokestatic jdk.internal.net.http.AbstractAsyncSSLConnection.contains:([Ljava/lang/String;Ljava/lang/String;)Z
ifne 12
3: new java.util.ArrayDeque
dup
invokespecial java.util.ArrayDeque.<init>:()V
astore 5
start local 5 4: aload 4
invokevirtual javax.net.ssl.SSLParameters.getProtocols:()[Ljava/lang/String;
dup
astore 9
arraylength
istore 8
iconst_0
istore 7
goto 9
StackMap locals: jdk.internal.net.http.HttpClientImpl jdk.internal.net.http.common.Utils$ServerName java.lang.String[] javax.net.ssl.SSLParameters javax.net.ssl.SSLParameters java.util.ArrayDeque top int int java.lang.String[]
StackMap stack:
5: aload 9
iload 7
aaload
astore 6
start local 6 6: aload 6
ldc "SSL"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifne 8
aload 6
ldc "v1.1"
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ifne 8
aload 6
ldc "v1"
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ifne 8
7: aload 5
aload 6
invokevirtual java.util.ArrayDeque.add:(Ljava/lang/Object;)Z
pop
end local 6 8: StackMap locals:
StackMap stack:
iinc 7 1
StackMap locals:
StackMap stack:
9: iload 7
iload 8
if_icmplt 5
10: aload 5
iconst_0
anewarray java.lang.String
invokevirtual java.util.ArrayDeque.toArray:([Ljava/lang/Object;)[Ljava/lang/Object;
checkcast java.lang.String[]
astore 6
start local 6 11: aload 4
aload 6
invokevirtual javax.net.ssl.SSLParameters.setProtocols:([Ljava/lang/String;)V
end local 6 end local 5 12: StackMap locals: jdk.internal.net.http.HttpClientImpl jdk.internal.net.http.common.Utils$ServerName java.lang.String[] javax.net.ssl.SSLParameters javax.net.ssl.SSLParameters
StackMap stack:
getstatic jdk.internal.net.http.AbstractAsyncSSLConnection.disableHostnameVerification:Z
ifne 14
13: aload 4
ldc "HTTPS"
invokevirtual javax.net.ssl.SSLParameters.setEndpointIdentificationAlgorithm:(Ljava/lang/String;)V
14: StackMap locals:
StackMap stack:
aload 2
ifnull 20
15: ldc "AbstractAsyncSSLConnection: Setting application protocols: {0}"
iconst_1
anewarray java.lang.Object
dup
iconst_0
16: aload 2
invokestatic java.util.Arrays.toString:([Ljava/lang/Object;)Ljava/lang/String;
aastore
17: invokestatic jdk.internal.net.http.common.Log.logSSL:(Ljava/lang/String;[Ljava/lang/Object;)V
18: aload 4
aload 2
invokevirtual javax.net.ssl.SSLParameters.setApplicationProtocols:([Ljava/lang/String;)V
19: goto 21
20: StackMap locals:
StackMap stack:
ldc "AbstractAsyncSSLConnection: no applications set!"
iconst_0
anewarray java.lang.Object
invokestatic jdk.internal.net.http.common.Log.logSSL:(Ljava/lang/String;[Ljava/lang/Object;)V
21: StackMap locals:
StackMap stack:
aload 1
invokevirtual jdk.internal.net.http.common.Utils$ServerName.isLiteral:()Z
ifne 25
22: aload 1
invokevirtual jdk.internal.net.http.common.Utils$ServerName.getName:()Ljava/lang/String;
astore 5
start local 5 23: aload 5
ifnull 25
aload 5
invokevirtual java.lang.String.length:()I
ifle 25
24: aload 4
new javax.net.ssl.SNIHostName
dup
aload 5
invokespecial javax.net.ssl.SNIHostName.<init>:(Ljava/lang/String;)V
invokestatic java.util.List.of:(Ljava/lang/Object;)Ljava/util/List;
invokevirtual javax.net.ssl.SSLParameters.setServerNames:(Ljava/util/List;)V
end local 5 25: StackMap locals:
StackMap stack:
aload 4
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 26 0 client Ljdk/internal/net/http/HttpClientImpl;
0 26 1 serverName Ljdk/internal/net/http/common/Utils$ServerName;
0 26 2 alpn [Ljava/lang/String;
1 26 3 sslp Ljavax/net/ssl/SSLParameters;
2 26 4 sslParameters Ljavax/net/ssl/SSLParameters;
4 12 5 l Ljava/util/ArrayDeque<Ljava/lang/String;>;
6 8 6 proto Ljava/lang/String;
11 12 6 a1 [Ljava/lang/String;
23 25 5 name Ljava/lang/String;
MethodParameters:
Name Flags
client
serverName
alpn
private static javax.net.ssl.SSLEngine createEngine(javax.net.ssl.SSLContext, java.lang.String, int, javax.net.ssl.SSLParameters);
descriptor: (Ljavax/net/ssl/SSLContext;Ljava/lang/String;ILjavax/net/ssl/SSLParameters;)Ljavax/net/ssl/SSLEngine;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
aload 1
iload 2
invokevirtual javax.net.ssl.SSLContext.createSSLEngine:(Ljava/lang/String;I)Ljavax/net/ssl/SSLEngine;
astore 4
start local 4 1: aload 4
iconst_1
invokevirtual javax.net.ssl.SSLEngine.setUseClientMode:(Z)V
2: aload 4
aload 3
invokevirtual javax.net.ssl.SSLEngine.setSSLParameters:(Ljavax/net/ssl/SSLParameters;)V
3: aload 4
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 context Ljavax/net/ssl/SSLContext;
0 4 1 serverName Ljava/lang/String;
0 4 2 port I
0 4 3 sslParameters Ljavax/net/ssl/SSLParameters;
1 4 4 engine Ljavax/net/ssl/SSLEngine;
MethodParameters:
Name Flags
context
serverName
port
sslParameters
final boolean isSecure();
descriptor: ()Z
flags: (0x0010) ACC_FINAL
Code:
stack=1, locals=1, args_size=1
start local 0 0: iconst_1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/net/http/AbstractAsyncSSLConnection;
jdk.internal.net.http.common.FlowTube getConnectionFlow();
descriptor: ()Ljdk/internal/net/http/common/FlowTube;
flags: (0x1040) ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
0: aload 0
invokevirtual jdk.internal.net.http.AbstractAsyncSSLConnection.getConnectionFlow:()Ljdk/internal/net/http/common/SSLTube;
areturn
LocalVariableTable:
Start End Slot Name Signature
}
SourceFile: "AbstractAsyncSSLConnection.java"
InnerClasses:
public ServerName = jdk.internal.net.http.common.Utils$ServerName of jdk.internal.net.http.common.Utils