public final class com.mongodb.client.internal.Crypts
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: com.mongodb.client.internal.Crypts
super_class: java.lang.Object
{
public static com.mongodb.client.internal.Crypt createCrypt(com.mongodb.client.internal.SimpleMongoClient, com.mongodb.AutoEncryptionSettings);
descriptor: (Lcom/mongodb/client/internal/SimpleMongoClient;Lcom/mongodb/AutoEncryptionSettings;)Lcom/mongodb/client/internal/Crypt;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=8, locals=2, args_size=2
start local 0 start local 1 0: new com.mongodb.client.internal.Crypt
dup
aload 1
invokevirtual com.mongodb.AutoEncryptionSettings.getKmsProviders:()Ljava/util/Map;
1: aload 1
invokevirtual com.mongodb.AutoEncryptionSettings.getSchemaMap:()Ljava/util/Map;
2: invokestatic com.mongodb.internal.capi.MongoCryptHelper.createMongoCryptOptions:(Ljava/util/Map;Ljava/util/Map;)Lcom/mongodb/crypt/capi/MongoCryptOptions;
invokestatic com.mongodb.crypt.capi.MongoCrypts.create:(Lcom/mongodb/crypt/capi/MongoCryptOptions;)Lcom/mongodb/crypt/capi/MongoCrypt;
3: new com.mongodb.client.internal.CollectionInfoRetriever
dup
aload 0
invokespecial com.mongodb.client.internal.CollectionInfoRetriever.<init>:(Lcom/mongodb/client/internal/SimpleMongoClient;)V
4: new com.mongodb.client.internal.CommandMarker
dup
aload 1
invokevirtual com.mongodb.AutoEncryptionSettings.isBypassAutoEncryption:()Z
aload 1
invokevirtual com.mongodb.AutoEncryptionSettings.getExtraOptions:()Ljava/util/Map;
invokespecial com.mongodb.client.internal.CommandMarker.<init>:(ZLjava/util/Map;)V
5: aload 0
aload 1
invokevirtual com.mongodb.AutoEncryptionSettings.getKeyVaultMongoClientSettings:()Lcom/mongodb/MongoClientSettings;
aload 1
invokevirtual com.mongodb.AutoEncryptionSettings.getKeyVaultNamespace:()Ljava/lang/String;
invokestatic com.mongodb.client.internal.Crypts.createKeyRetriever:(Lcom/mongodb/client/internal/SimpleMongoClient;Lcom/mongodb/MongoClientSettings;Ljava/lang/String;)Lcom/mongodb/client/internal/KeyRetriever;
6: invokestatic com.mongodb.client.internal.Crypts.createKeyManagementService:()Lcom/mongodb/client/internal/KeyManagementService;
7: aload 1
invokevirtual com.mongodb.AutoEncryptionSettings.isBypassAutoEncryption:()Z
8: invokespecial com.mongodb.client.internal.Crypt.<init>:(Lcom/mongodb/crypt/capi/MongoCrypt;Lcom/mongodb/client/internal/CollectionInfoRetriever;Lcom/mongodb/client/internal/CommandMarker;Lcom/mongodb/client/internal/KeyRetriever;Lcom/mongodb/client/internal/KeyManagementService;Z)V
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 client Lcom/mongodb/client/internal/SimpleMongoClient;
0 9 1 options Lcom/mongodb/AutoEncryptionSettings;
MethodParameters:
Name Flags
client final
options final
static com.mongodb.client.internal.Crypt create(com.mongodb.client.internal.SimpleMongoClient, com.mongodb.ClientEncryptionSettings);
descriptor: (Lcom/mongodb/client/internal/SimpleMongoClient;Lcom/mongodb/ClientEncryptionSettings;)Lcom/mongodb/client/internal/Crypt;
flags: (0x0008) ACC_STATIC
Code:
stack=6, locals=2, args_size=2
start local 0 start local 1 0: new com.mongodb.client.internal.Crypt
dup
1: aload 1
invokevirtual com.mongodb.ClientEncryptionSettings.getKmsProviders:()Ljava/util/Map;
aconst_null
invokestatic com.mongodb.internal.capi.MongoCryptHelper.createMongoCryptOptions:(Ljava/util/Map;Ljava/util/Map;)Lcom/mongodb/crypt/capi/MongoCryptOptions;
2: invokestatic com.mongodb.crypt.capi.MongoCrypts.create:(Lcom/mongodb/crypt/capi/MongoCryptOptions;)Lcom/mongodb/crypt/capi/MongoCrypt;
3: aload 0
iconst_0
aload 1
invokevirtual com.mongodb.ClientEncryptionSettings.getKeyVaultNamespace:()Ljava/lang/String;
invokestatic com.mongodb.client.internal.Crypts.createKeyRetriever:(Lcom/mongodb/client/internal/SimpleMongoClient;ZLjava/lang/String;)Lcom/mongodb/client/internal/KeyRetriever;
4: invokestatic com.mongodb.client.internal.Crypts.createKeyManagementService:()Lcom/mongodb/client/internal/KeyManagementService;
5: invokespecial com.mongodb.client.internal.Crypt.<init>:(Lcom/mongodb/crypt/capi/MongoCrypt;Lcom/mongodb/client/internal/KeyRetriever;Lcom/mongodb/client/internal/KeyManagementService;)V
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 keyVaultClient Lcom/mongodb/client/internal/SimpleMongoClient;
0 6 1 options Lcom/mongodb/ClientEncryptionSettings;
MethodParameters:
Name Flags
keyVaultClient final
options final
private static com.mongodb.client.internal.KeyRetriever createKeyRetriever(com.mongodb.client.internal.SimpleMongoClient, com.mongodb.MongoClientSettings, java.lang.String);
descriptor: (Lcom/mongodb/client/internal/SimpleMongoClient;Lcom/mongodb/MongoClientSettings;Ljava/lang/String;)Lcom/mongodb/client/internal/KeyRetriever;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 1
ifnull 4
1: aload 1
invokestatic com.mongodb.client.MongoClients.create:(Lcom/mongodb/MongoClientSettings;)Lcom/mongodb/client/MongoClient;
invokestatic com.mongodb.client.internal.SimpleMongoClients.create:(Lcom/mongodb/client/MongoClient;)Lcom/mongodb/client/internal/SimpleMongoClient;
astore 3
start local 3 2: iconst_1
istore 4
start local 4 3: goto 6
end local 4 end local 3 4: StackMap locals:
StackMap stack:
aload 0
astore 3
start local 3 5: iconst_0
istore 4
start local 4 6: StackMap locals: com.mongodb.client.internal.SimpleMongoClient int
StackMap stack:
aload 3
iload 4
aload 2
invokestatic com.mongodb.client.internal.Crypts.createKeyRetriever:(Lcom/mongodb/client/internal/SimpleMongoClient;ZLjava/lang/String;)Lcom/mongodb/client/internal/KeyRetriever;
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 defaultKeyVaultClient Lcom/mongodb/client/internal/SimpleMongoClient;
0 7 1 keyVaultMongoClientSettings Lcom/mongodb/MongoClientSettings;
0 7 2 keyVaultNamespaceString Ljava/lang/String;
2 4 3 keyVaultClient Lcom/mongodb/client/internal/SimpleMongoClient;
5 7 3 keyVaultClient Lcom/mongodb/client/internal/SimpleMongoClient;
3 4 4 keyRetrieverOwnsClient Z
6 7 4 keyRetrieverOwnsClient Z
MethodParameters:
Name Flags
defaultKeyVaultClient final
keyVaultMongoClientSettings final
keyVaultNamespaceString final
private static com.mongodb.client.internal.KeyRetriever createKeyRetriever(com.mongodb.client.internal.SimpleMongoClient, boolean, java.lang.String);
descriptor: (Lcom/mongodb/client/internal/SimpleMongoClient;ZLjava/lang/String;)Lcom/mongodb/client/internal/KeyRetriever;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=7, locals=3, args_size=3
start local 0 start local 1 start local 2 0: new com.mongodb.client.internal.KeyRetriever
dup
aload 0
iload 1
new com.mongodb.MongoNamespace
dup
aload 2
invokespecial com.mongodb.MongoNamespace.<init>:(Ljava/lang/String;)V
invokespecial com.mongodb.client.internal.KeyRetriever.<init>:(Lcom/mongodb/client/internal/SimpleMongoClient;ZLcom/mongodb/MongoNamespace;)V
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 keyVaultClient Lcom/mongodb/client/internal/SimpleMongoClient;
0 1 1 keyRetrieverOwnsClient Z
0 1 2 keyVaultNamespaceString Ljava/lang/String;
MethodParameters:
Name Flags
keyVaultClient final
keyRetrieverOwnsClient final
keyVaultNamespaceString final
private static com.mongodb.client.internal.KeyManagementService createKeyManagementService();
descriptor: ()Lcom/mongodb/client/internal/KeyManagementService;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=0, args_size=0
0: new com.mongodb.client.internal.KeyManagementService
dup
invokestatic com.mongodb.client.internal.Crypts.getSslContext:()Ljavax/net/ssl/SSLContext;
sipush 443
sipush 10000
invokespecial com.mongodb.client.internal.KeyManagementService.<init>:(Ljavax/net/ssl/SSLContext;II)V
areturn
LocalVariableTable:
Start End Slot Name Signature
private static javax.net.ssl.SSLContext getSslContext();
descriptor: ()Ljavax/net/ssl/SSLContext;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=2, args_size=0
0: invokestatic javax.net.ssl.SSLContext.getDefault:()Ljavax/net/ssl/SSLContext;
astore 0
start local 0 1: goto 4
end local 0 StackMap locals:
StackMap stack: java.security.NoSuchAlgorithmException
2: astore 1
start local 1 3: new com.mongodb.MongoClientException
dup
ldc "Unable to create default SSLContext"
aload 1
invokespecial com.mongodb.MongoClientException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 1 start local 0 4: StackMap locals: javax.net.ssl.SSLContext
StackMap stack:
aload 0
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
1 2 0 sslContext Ljavax/net/ssl/SSLContext;
4 5 0 sslContext Ljavax/net/ssl/SSLContext;
3 4 1 e Ljava/security/NoSuchAlgorithmException;
Exception table:
from to target type
0 1 2 Class java.security.NoSuchAlgorithmException
private void <init>();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/mongodb/client/internal/Crypts;
}
SourceFile: "Crypts.java"