123456789_123456789_123456789_123456789_123456789_

Class: Mongo::Crypt::KMS::Local::MasterKeyDocument Private

Relationships & Source Files
Inherits: Object
Defined in: lib/mongo/crypt/kms/local/master_document.rb

Overview

::Mongo::Crypt::KMS::Local KMS master key document object contains ::Mongo::Crypt::KMS master key parameters.

Class Method Summary

Instance Method Summary

Constructor Details

.new(_opts) ⇒ MasterKeyDocument

Creates a master key document object form a parameters hash. This empty method is to keep a uniform interface for all ::Mongo::Crypt::KMS providers.

[ GitHub ]

  
# File 'lib/mongo/crypt/kms/local/master_document.rb', line 27

def initialize(_opts); end

Instance Method Details

#to_documentBSON::Document

Convert master key document object to a BSON document in libmongocrypt format.

Returns:

[ GitHub ]

  
# File 'lib/mongo/crypt/kms/local/master_document.rb', line 32

def to_document
  BSON::Document.new({ provider: 'local' })
end