Interface Encryption<S,T>

All Known Implementing Classes:
MongoClientEncryption

public interface Encryption<S,T>
Component responsible for encrypting and decrypting values.
Since:
4.1
Author:
Christoph Strobl
  • Method Summary

    Modifier and Type
    Method
    Description
    decrypt(T value)
    Decrypt the given value.
    encrypt(S value, EncryptionOptions options)
    Encrypt the given value.
  • Method Details

    • encrypt

      T encrypt(S value, EncryptionOptions options)
      Encrypt the given value.
      Parameters:
      value - must not be null.
      options - must not be null.
      Returns:
      the encrypted value.
    • decrypt

      S decrypt(T value)
      Decrypt the given value.
      Parameters:
      value - must not be null.
      Returns:
      the decrypted value.