MasterKeyDocument — Documentation by YARD 0.9.37 (original) (raw)

Class: Mongo::Crypt::KMS::Local::MasterKeyDocumentPrivate

Inherits:

Object

Defined in:

lib/mongo/crypt/kms/local/master_document.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Local KMS master key document object contains KMS master key parameters.

Instance Method Summarycollapse

Constructor Details

#initialize(_opts) ⇒ MasterKeyDocument

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

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

29 30 # File 'lib/mongo/crypt/kms/local/master_document.rb', line 29 def initialize(_opts) end

Instance Method Details

#to_document ⇒ BSON::Document

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

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

35 36 37 # File 'lib/mongo/crypt/kms/local/master_document.rb', line 35 def to_document BSON::Document.new({ provider: "local" }) end