Class: Mongo::Crypt::RewrapManyDataKeyContext Private
- Defined in:
- lib/mongo/crypt/rewrap_many_data_key_context.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
A Context object initialized specifically for the purpose of rewrapping data keys (decrypting and re-rencryting using a new KEK).
Instance Attribute Summary
Attributes inherited from Context
Instance Method Summary collapse
-
#initialize(mongocrypt, io, filter, master_key_document) ⇒ RewrapManyDataKeyContext
constructor
private
Create a new RewrapManyDataKeyContext object.
Methods inherited from Context
Constructor Details
#initialize(mongocrypt, io, filter, master_key_document) ⇒ RewrapManyDataKeyContext
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Create a new RewrapManyDataKeyContext object
37 38 39 40 41 42 43 |
# File 'lib/mongo/crypt/rewrap_many_data_key_context.rb', line 37 def initialize(mongocrypt, io, filter, master_key_document) super(mongocrypt, io) if master_key_document Binding.ctx_setopt_key_encryption_key(self, master_key_document.to_document) end Binding.ctx_rewrap_many_datakey_init(self, filter) end |