Package com.mongodb
Class ClientEncryptionSettings.Builder
- java.lang.Object
-
- com.mongodb.ClientEncryptionSettings.Builder
-
- Enclosing class:
- ClientEncryptionSettings
@NotThreadSafe @Deprecated(since="2021-05-27") public static final class ClientEncryptionSettings.Builder extends java.lang.Object
Deprecated.Usage of this API is not supported in AEM as a Cloud Service.A builder forClientEncryptionSettings
so thatClientEncryptionSettings
can be immutable, and to support easier construction through chaining.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ClientEncryptionSettings
build()
Deprecated.Build an instance ofClientEncryptionSettings
.ClientEncryptionSettings.Builder
keyVaultMongoClientSettings(MongoClientSettings keyVaultMongoClientSettings)
Deprecated.Sets the key vault settings.ClientEncryptionSettings.Builder
keyVaultNamespace(java.lang.String keyVaultNamespace)
Deprecated.Sets the key vault namespaceClientEncryptionSettings.Builder
kmsProviders(java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.Object>> kmsProviders)
Deprecated.Sets the KMS providers map.
-
-
-
Method Detail
-
keyVaultMongoClientSettings
public ClientEncryptionSettings.Builder keyVaultMongoClientSettings(MongoClientSettings keyVaultMongoClientSettings)
Deprecated.Sets the key vault settings.- Parameters:
keyVaultMongoClientSettings
- the key vault mongo client settings, which may be null.- Returns:
- this
- See Also:
ClientEncryptionSettings.getKeyVaultMongoClientSettings()
-
keyVaultNamespace
public ClientEncryptionSettings.Builder keyVaultNamespace(java.lang.String keyVaultNamespace)
Deprecated.Sets the key vault namespace- Parameters:
keyVaultNamespace
- the key vault namespace, which may not be null- Returns:
- this
- See Also:
ClientEncryptionSettings.getKeyVaultNamespace()
-
kmsProviders
public ClientEncryptionSettings.Builder kmsProviders(java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.Object>> kmsProviders)
Deprecated.Sets the KMS providers map.- Parameters:
kmsProviders
- the KMS providers map, which may not be null- Returns:
- this
- See Also:
ClientEncryptionSettings.getKmsProviders()
-
build
public ClientEncryptionSettings build()
Deprecated.Build an instance ofClientEncryptionSettings
.- Returns:
- the settings from this builder
-
-