模块:Mongo::Crypt

定义于:
构建/ruby-driver-v2.19/lib/ mongo /crypt.rb
构建/ruby-driver-v2.19/lib/ mongo /crypt/ KMS .rb,
构建/ruby-driver-v2.19/lib/ mongo /crypt/hooks.rb,
构建/ruby-driver-v2.19/lib/ mongo /crypt/binary.rb,
构建/Ruby-driver-v2.19219219/lib/ mongo /crypt/ 处理.rb,
构建mongo ,
构建mongo ,
构建/ruby-driver-v2.19/lib/ mongo /crypt/context.rb,
构建/ruby-driver-v2.19/lib/ mongo /crypt/kms_context.rb,
构建/ruby-driver-v2.19/lib/ mongo /crypt/encryption_io.rb,
构建/ruby-driver-v2.19/lib/ mongo /crypt/auto_encrypter.rb,
构建/ruby-driver-v2.19/lib/ mongo /crypt/ KMS 凭证,
构建/ruby-driver-v2.19/lib/ mongo /crypt/data_key_context.rb,
构建/ruby-driver-v2.19/lib/ mongo /crypt/explicit_encrypter.rb,
构建/ruby-driver-v2.19/lib/ mongo /crypt/ KMS / Amazon Web Services / 凭证.rb,
构建/ruby-driver-v2.19/lib/ mongo /crypt/ KMS / GCP 凭证,
构建/ruby-driver-v2.19/lib/ mongo /crypt/ KMS 凭证,
构建/ruby-driver-v2.19/lib/ mongo /crypt/ KMS / Azure 凭证,
构建/ruby-driver-v2.19/lib/ mongo /crypt/ KMS 凭证,
构建/ruby-driver-v2.19/lib/ mongo /crypt/ KMS / Azure /access_token.rb,
构建/ruby-driver-v2.19/lib/ mongo /crypt/auto_decryption_context.rb,
构建/ruby-driver-v2.19/lib/ mongo /crypt/auto_encryption_context.rb,
构建/ruby-driver-v2.19/lib/ mongo /crypt/ KMS / Amazon Web Services /master_document.rb,
构建/ruby-driver-v2.19/lib/ mongo /crypt/ KMS / GCP /master_document.rb,
构建/ruby-driver-v2.19/lib/ mongo /crypt/ KMS /master_key_document.rb,
构建/ruby-driver-v2.19/lib/ mongo /crypt/ KMS /kmip/master_document.rb,
构建/ruby-driver-v2.19/lib/ mongo /crypt/ KMS / Azure /master_document.rb,
构建/ruby-driver-v2.19/lib/ mongo /crypt/ KMS /local/master_document.rb,
构建/ruby-driver-v2.19/lib/ mongo /crypt/explicit_decryption_context.rb,
构建/ruby-driver-v2.19/lib/ mongo /crypt/explicit_encryption_context.rb,
构建/ruby-driver-v2.19/lib/ mongo /crypt/rewrap_many_data_key_result.rb,
构建/ruby-driver-v2.19/lib/ mongo /crypt/rewrap_many_data_key_context.rb,
构建/ruby-driver-v2.19/lib/ mongo /crypt/ KMS / GCP /credentials_retriever.rb,
构建/ruby-driver-v2.19/lib/ mongo /crypt/ KMS / Azure /credentials_retriever.rb,
构建/ruby-driver-v2.19/lib/ mongo /crypt/explicit_encryption_expression_context.rb

在命名空间下定义

模块: 钩子KMS类: AutoDecryptionContextAutoEncrypterAutoEncryptionContextBinaryBindingContextDataKeyContextEncryptionIOExplicitDecryptionContextExplicitEncrypterExplicitEncryptionContextExplicitEncryptionExpressionContextHandleKmsContextRewrapManyDataKeyContextRewrapManyDataKeyResultStatus

类方法摘要折叠

类方法详细信息

reset_autoload对象

此方法是私有 API 的一部分。 您应尽可能避免使用此方法,因为它将来可能会被删除或更改。



49
50
51
52
# File 'build/Ruby-driver-v 2.19 /lib/mongo/crypt/bounding.rb', 第49行

def reset_autoload
  remove_const(:Binding)
  autoload(:Binding, ' mongo/crypt/Binding ')
end

.validate_ffi!Object



40
41
42
43
44
45
46
47
48
# File ' 构建/ruby-driver-v2.19/lib/ mongo /crypt.rb', line 40

def validate_ffi!
  return if 定义?(FFI)

  require 'ffi'
救援 LoadError => e
  提高 错误::UnmetDependency, '无法启用加密,因为 ffi gem ' \ "尚未安装。将\"gem 'ffi'\" 添加到您的 Gemfile 中,然后运行" \ " \"bundle install\" 以安装该 gem。 ( #{ e . class } : #{ e } ) " end