class com.mongodb.client.internal.KeyManagementService
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: com.mongodb.client.internal.KeyManagementService
super_class: java.lang.Object
{
private final javax.net.ssl.SSLContext sslContext;
descriptor: Ljavax/net/ssl/SSLContext;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final int defaultPort;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final int timeoutMillis;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
void <init>(javax.net.ssl.SSLContext, int, int);
descriptor: (Ljavax/net/ssl/SSLContext;II)V
flags: (0x0000)
Code:
stack=2, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
putfield com.mongodb.client.internal.KeyManagementService.sslContext:Ljavax/net/ssl/SSLContext;
2: aload 0
iload 2
putfield com.mongodb.client.internal.KeyManagementService.defaultPort:I
3: aload 0
iload 3
putfield com.mongodb.client.internal.KeyManagementService.timeoutMillis:I
4: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lcom/mongodb/client/internal/KeyManagementService;
0 5 1 sslContext Ljavax/net/ssl/SSLContext;
0 5 2 defaultPort I
0 5 3 timeoutMillis I
MethodParameters:
Name Flags
sslContext final
defaultPort final
timeoutMillis final
public java.io.InputStream stream(java.lang.String, java.nio.ByteBuffer);
descriptor: (Ljava/lang/String;Ljava/nio/ByteBuffer;)Ljava/io/InputStream;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=7, args_size=3
start local 0 start local 1 start local 2 0: aload 1
ldc ":"
invokevirtual java.lang.String.contains:(Ljava/lang/CharSequence;)Z
ifeq 1
new com.mongodb.ServerAddress
dup
aload 1
invokespecial com.mongodb.ServerAddress.<init>:(Ljava/lang/String;)V
goto 2
StackMap locals:
StackMap stack:
1: new com.mongodb.ServerAddress
dup
aload 1
aload 0
getfield com.mongodb.client.internal.KeyManagementService.defaultPort:I
invokespecial com.mongodb.ServerAddress.<init>:(Ljava/lang/String;I)V
StackMap locals:
StackMap stack: com.mongodb.ServerAddress
2: astore 3
start local 3 3: aload 0
getfield com.mongodb.client.internal.KeyManagementService.sslContext:Ljavax/net/ssl/SSLContext;
invokevirtual javax.net.ssl.SSLContext.getSocketFactory:()Ljavax/net/ssl/SSLSocketFactory;
invokevirtual javax.net.ssl.SSLSocketFactory.createSocket:()Ljava/net/Socket;
astore 4
start local 4 4: aload 4
aload 0
getfield com.mongodb.client.internal.KeyManagementService.timeoutMillis:I
invokevirtual java.net.Socket.setSoTimeout:(I)V
5: aload 4
aload 3
invokevirtual com.mongodb.ServerAddress.getSocketAddress:()Ljava/net/InetSocketAddress;
aload 0
getfield com.mongodb.client.internal.KeyManagementService.timeoutMillis:I
invokevirtual java.net.Socket.connect:(Ljava/net/SocketAddress;I)V
6: goto 10
StackMap locals: com.mongodb.client.internal.KeyManagementService java.lang.String java.nio.ByteBuffer com.mongodb.ServerAddress java.net.Socket
StackMap stack: java.io.IOException
7: astore 5
start local 5 8: aload 0
aload 4
invokevirtual com.mongodb.client.internal.KeyManagementService.closeSocket:(Ljava/net/Socket;)V
9: aload 5
athrow
end local 5 10: StackMap locals:
StackMap stack:
aload 4
invokevirtual java.net.Socket.getOutputStream:()Ljava/io/OutputStream;
astore 5
start local 5 11: aload 2
invokevirtual java.nio.ByteBuffer.remaining:()I
newarray 8
astore 6
start local 6 12: aload 2
aload 6
invokevirtual java.nio.ByteBuffer.get:([B)Ljava/nio/ByteBuffer;
pop
13: aload 5
aload 6
invokevirtual java.io.OutputStream.write:([B)V
end local 6 end local 5 14: goto 18
StackMap locals:
StackMap stack: java.io.IOException
15: astore 5
start local 5 16: aload 0
aload 4
invokevirtual com.mongodb.client.internal.KeyManagementService.closeSocket:(Ljava/net/Socket;)V
17: aload 5
athrow
end local 5 18: StackMap locals:
StackMap stack:
aload 4
invokevirtual java.net.Socket.getInputStream:()Ljava/io/InputStream;
19: areturn
20: StackMap locals:
StackMap stack: java.io.IOException
astore 5
start local 5 21: aload 0
aload 4
invokevirtual com.mongodb.client.internal.KeyManagementService.closeSocket:(Ljava/net/Socket;)V
22: aload 5
athrow
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 23 0 this Lcom/mongodb/client/internal/KeyManagementService;
0 23 1 host Ljava/lang/String;
0 23 2 message Ljava/nio/ByteBuffer;
3 23 3 serverAddress Lcom/mongodb/ServerAddress;
4 23 4 socket Ljava/net/Socket;
8 10 5 e Ljava/io/IOException;
11 14 5 outputStream Ljava/io/OutputStream;
12 14 6 bytes [B
16 18 5 e Ljava/io/IOException;
21 23 5 e Ljava/io/IOException;
Exception table:
from to target type
4 6 7 Class java.io.IOException
10 14 15 Class java.io.IOException
18 19 20 Class java.io.IOException
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
host final
message final
public int getDefaultPort();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.mongodb.client.internal.KeyManagementService.defaultPort:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/mongodb/client/internal/KeyManagementService;
private void closeSocket(java.net.Socket);
descriptor: (Ljava/net/Socket;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual java.net.Socket.close:()V
1: goto 3
StackMap locals:
StackMap stack: java.io.IOException
2: pop
3: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/mongodb/client/internal/KeyManagementService;
0 4 1 socket Ljava/net/Socket;
Exception table:
from to target type
0 1 2 Class java.io.IOException
MethodParameters:
Name Flags
socket final
}
SourceFile: "KeyManagementService.java"