Method: Mongo::ClientEncryption#rewrap_many_data_key

Defined in:
lib/mongo/client_encryption.rb

#rewrap_many_data_key(filter, opts = {}) ⇒ Crypt::RewrapManyDataKeyResult

Decrypts multiple data keys and (re-)encrypts them with a new master_key,

or with their current master_key if a new one is not given.

Parameters:

  • filter (Hash)

    Filter used to find keys to be updated.

  • options (Hash)

Returns:



247
248
249
# File 'lib/mongo/client_encryption.rb', line 247

def rewrap_many_data_key(filter, opts = {})
  @encrypter.rewrap_many_data_key(filter, opts)
end