class Mongo::Crypt::ExplicitDecryptionContext
A Context
object initialized for explicit decryption
@api private
Public Class Methods
new(mongocrypt, io, doc)
click to toggle source
Create a new ExplicitDecryptionContext
object
@param [ Mongo::Crypt::Handle
] mongocrypt a Handle
that
wraps a mongocrypt_t object used to create a new mongocrypt_ctx_t
@param [ ClientEncryption::IO ] io A instance of the IO class
that implements driver I/O methods required to run the state machine
@param [ BSON::Document ] doc A document to decrypt
Calls superclass method
Mongo::Crypt::Context::new
# File lib/mongo/crypt/explicit_decryption_context.rb, line 34 def initialize(mongocrypt, io, doc) super(mongocrypt, io) # Initialize the underlying mongocrypt_ctx_t object to perform # explicit decryption Binding.ctx_explicit_decrypt_init(self, doc) end