Class MongoClientEncryption
java.lang.Object
org.springframework.data.mongodb.core.encryption.MongoClientEncryption
- All Implemented Interfaces:
Encryption<BsonValue, BsonBinary>
ClientEncryption based Encryption implementation.- Since:
- 4.1
- Author:
- Christoph Strobl, Ross Lawley
-
Method Summary
Modifier and TypeMethodDescriptiondecrypt(BsonBinary value) Decrypt the given value.encrypt(BsonValue value, EncryptionOptions options) Encrypt the given value.encryptExpression(BsonDocument value, EncryptionOptions options) Encrypt the given expression.static MongoClientEncryptionjust(ClientEncryption clientEncryption) Create a newMongoClientEncryptioninstance for the givenClientEncryption.protected RangeOptionsrangeOptions(Map<String, Object> attributes)
-
Method Details
-
just
Create a newMongoClientEncryptioninstance for the givenClientEncryption.- Parameters:
clientEncryption- must not be null.- Returns:
- new instance of
MongoClientEncryption.
-
decrypt
Description copied from interface:EncryptionDecrypt the given value.- Specified by:
decryptin interfaceEncryption<BsonValue, BsonBinary>- Parameters:
value- must not be null.- Returns:
- the decrypted value.
-
encrypt
Description copied from interface:EncryptionEncrypt the given value.- Specified by:
encryptin interfaceEncryption<BsonValue, BsonBinary>- Parameters:
value- must not be null.options- must not be null.- Returns:
- the encrypted value.
-
encryptExpression
Description copied from interface:EncryptionEncrypt the given expression.- Specified by:
encryptExpressionin interfaceEncryption<BsonValue, BsonBinary>- Parameters:
value- must not be null.options- must not be null.- Returns:
- the encrypted expression.
-
getClientEncryption
-
rangeOptions
-