Class: Mongo::Crypt::KMS::MasterKeyDocument Private
Do not use. This class is for internal use only.
Relationships & Source Files | |
Inherits: | Object |
Defined in: | lib/mongo/crypt/kms/master_key_document.rb |
Overview
::Mongo::Crypt::KMS
master key document object contains ::Mongo::Crypt::KMS
master key parameters that are used for creation of data keys.
Constant Summary
-
KMS_PROVIDERS =
Known KMS provider names.
%w(aws azure gcp kmip local).freeze
Class Method Summary
-
.new(kms_provider, options) ⇒ 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/master_key_document.rb', line 59
def to_document @key_document.to_document end