lib/mongo/protocol/msg.rb
# Possibly decrypt this message with libmongocrypt. Message will only be
# decrypted if the specified client exists, that client has been given
# auto-encryption options, and this message is eligible for decryption.
# A message is eligible for decryption if it represents one of the command
# types allow-listed by libmongocrypt and it contains data that is required
# to be encrypted by a local or remote json schema.
#
# @param [ Mongo::Operation::Context ] context The operation context.
#
# @return [ Mongo::Protocol::Msg ] The decrypted message, or the original
#   message if decryption was not possible or necessary.
Possibly decrypt this message with libmongocrypt. Message will only be
decrypted if the specified client exists, that client has been given
auto-encryption options, and this message is eligible for decryption.
A message is eligible for decryption if it represents one of the command
types allow-listed by libmongocrypt and it contains data that is required
to be encrypted by a local or remote json schema.
Possibly decrypt this message with libmongocrypt . Message will only be decrypted if the specified client exists that client has been given auto - encryption options and this message is eligible for decryption . A message is eligible for decryption if it represents one of the command types allow - listed by libmongocrypt and it contains data that is required to be encrypted by a local or remote json schema .
def maybe_decrypt(context)
        if context.decrypt?
          cmd = merge_sections
          enc_cmd = context.encrypter.decrypt(cmd)
          Msg.new(@flags, @options, enc_cmd)
        else
          self
        end
      end
def maybe_decrypt ( context ) if context . decrypt? cmd = merge_sections enc_cmd = context . encrypter . decrypt ( cmd ) Msg . new ( @flags , @options , enc_cmd ) else self end end
Possibly decrypt this message with libmongocrypt.
Possibly decrypt this message with libmongocrypt .
The decrypted message, or the original message if decryption was not possible or necessary.
The decrypted message or the original message if decryption was not possible or necessary .
 Mongo::Protocol::Msg 
context
<not_specific>
<not_specific>
context The operation context.
context The operation context .