Class: Mongo::Crypt::KMS::Local::MasterKeyDocument Private
Do not use. This class is for internal use only.
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
-
.new(_opts) ⇒ MasterKeyDocument
constructor
Internal use only
Creates a master key document object form a parameters hash.
Instance Method Summary
-
#to_document ⇒ BSON::Document
Internal use only
Convert master key document object to a BSON document in libmongocrypt format.
Instance Method Details
#to_document ⇒ BSON::Document
Convert master key document object to a BSON document in libmongocrypt format.
# File 'lib/mongo/crypt/kms/local/master_document.rb', line 35
def to_document BSON::Document.new({ provider: "local" }) end