Módulo: Mongo::Crypt

Definido em:
build/ruby-driver-v2.19/lib/mongo/crypt.rb,
build/ruby-driver-v2.19/lib/mongo/crypt/KMS.rb,
build/ruby-driver-v2.19/lib/mongo/crypt/hooks.rb,
build/ruby-driver-v2.19/lib/mongo/crypt/binary.rb,
build/ruby-driver-v2.19/lib/mongo/crypt/handle.rb,
build/ruby-driver-v2.19/lib/mongo/crypt/status.rb,
build/ruby-driver-v2.19/lib/mongo/crypt/binding.rb,
build/ruby-driver-v2.19/lib/mongo/crypt/context.rb,
build/ruby-driver-v2.19/lib/mongo/crypt/kms_context.rb,
build/ruby-driver-v2.19/lib/mongo/crypt/encryption_io.rb,
build/ruby-driver-v2.19/lib/mongo/crypt/auto_encrypter.rb,
build/ruby-driver-v2.19/lib/mongo/crypt/KMS/credentials.rb,
build/ruby-driver-v2.19/lib/mongo/crypt/data_key_context.rb,
build/ruby-driver-v2.19/lib/mongo/crypt/explicit_encrypter.rb,
build/ruby-driver-v2.19/lib/mongo/crypt/KMS/Amazon Web Services/credentials.rb,
build/ruby-driver-v2.19/lib/mongo/crypt/KMS/GCP/credentials.rb,
build/ruby-driver-v2.19/lib/mongo/crypt/KMS/kmip/credentials.rb,
build/ruby-driver-v2.19/lib/mongo/crypt/KMS/Azure/credentials.rb,
build/ruby-driver-v2.19/lib/mongo/crypt/KMS/local/credentials.rb,
build/ruby-driver-v2.19/lib/mongo/crypt/KMS/Azure/access_token.rb,
build/ruby-driver-v2.19/lib/mongo/crypt/auto_decryption_context.rb,
build/ruby-driver-v2.19/lib/mongo/crypt/auto_encryption_context.rb,
build/ruby-driver-v2.19/lib/mongo/crypt/KMS/Amazon Web Services/master_document.rb,
build/ruby-driver-v2.19/lib/mongo/crypt/KMS/GCP/master_document.rb,
build/ruby-driver-v2.19/lib/mongo/crypt/KMS/master_key_document.rb,
build/ruby-driver-v2.19/lib/mongo/crypt/KMS/kmip/master_document.rb,
build/ruby-driver-v2.19/lib/mongo/crypt/KMS/Azure/master_document.rb,
build/ruby-driver-v2.19/lib/mongo/crypt/KMS/local/master_document.rb,
build/ruby-driver-v2.19/lib/mongo/crypt/explicit_decryption_context.rb,
build/ruby-driver-v2.19/lib/mongo/crypt/explicit_encryption_context.rb,
build/ruby-driver-v2.19/lib/mongo/crypt/rewrap_many_data_key_result.rb,
build/ruby-driver-v2.19/lib/mongo/crypt/rewrap_many_data_key_context.rb,
build/ruby-driver-v2.19/lib/mongo/crypt/KMS/GCP/credentials_retriever.rb,
build/ruby-driver-v2.19/lib/mongo/crypt/KMS/Azure/credentials_retriever.rb,
build/ruby-driver-v2.19/lib/mongo/crypt/explicit_encryption_expression_context.rb

Definido sob namespace

Módulos: Hooks,Classes KMS : AutoDecryptionContext, AutoEncrypter, AutoEncryptionContext, Binary, Binding, Contexto, DataKeyContext, EncryptionIO, ExplicitDecryptionContext, ExplicitEncrypter, ExplicitEncryptionContext, ExplicitEncryptionExpressionContext, Manipular, KmsContext, RewrapManyDataKeyContext, RewrapManyDataKeyResult, Status

Recolhimento do Resumo do método de classe

Detalhes do método de classe

.reinício_autoload ➤ Objeto

Este método faz parte de uma API privada. Evite usar esse método, se possível, pois ele pode ser removido ou alterado no futuro.



49
50
51
52
# File 'build/ruby-driver-v2.19/lib/mongo/crypt/binding.rb', linha 49

def reinício_autoload
  remove_const(:Binding)
  autoload(:Binding, 'mongo/crypt/binding')
end

.validate_ffi!Object



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

def validate_ffi!
  Método se definido?(FFI)

  exigir 'ffi'
salvar LoadError => e
  aumentar Erro::UnmetDependency, 'Não é possível ativar a criptografia porque a joia ffi ' \
                                "não foi instalada. Adicione \gem 'ffi'\ ao seu Gemfile e execute " \
                                "\bundle install\ para instalar a joia. (#{e.classe}: #{e})"
end