Package com.mongodb.crypt.capi
Class MongoExplicitEncryptOptions.Builder
- java.lang.Object
-
- com.mongodb.crypt.capi.MongoExplicitEncryptOptions.Builder
-
- Enclosing class:
- MongoExplicitEncryptOptions
public static class MongoExplicitEncryptOptions.Builder extends java.lang.ObjectThe builder for the options
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MongoExplicitEncryptOptions.Builderalgorithm(java.lang.String algorithm)Add the encryption algorithm.MongoExplicitEncryptOptionsbuild()Build the options.MongoExplicitEncryptOptions.BuilderkeyAltName(java.lang.String keyAltName)Add the key alternative name.MongoExplicitEncryptOptions.BuilderkeyId(org.bson.BsonBinary keyId)Add the key identifier.
-
-
-
Method Detail
-
keyId
public MongoExplicitEncryptOptions.Builder keyId(org.bson.BsonBinary keyId)
Add the key identifier.- Parameters:
keyId- the key idenfifier- Returns:
- this
-
keyAltName
public MongoExplicitEncryptOptions.Builder keyAltName(java.lang.String keyAltName)
Add the key alternative name.- Parameters:
keyAltName- the key alternative name- Returns:
- this
-
algorithm
public MongoExplicitEncryptOptions.Builder algorithm(java.lang.String algorithm)
Add the encryption algorithm.- Parameters:
algorithm- the encryption algorithm- Returns:
- this
-
build
public MongoExplicitEncryptOptions build()
Build the options.- Returns:
- the options
-
-