Class: Mongo::Crypt::KMS::AWS::MasterKeyDocument Private
Do not use. This class is for internal use only.
| Relationships & Source Files | |
| Super Chains via Extension / Inclusion / Inheritance | |
|
Instance Chain:
|
|
| Inherits: | Object |
| Defined in: | lib/mongo/crypt/kms/aws/master_document.rb |
Overview
::Mongo::Crypt::KMS::AWS KMS master key document object contains ::Mongo::Crypt::KMS master key parameters.
Constant Summary
-
FORMAT_HINT =
# File 'lib/mongo/crypt/kms/aws/master_document.rb', line 37"AWS key document must be in the format: " + "{ region: 'REGION', key: 'KEY' }"
Class Method Summary
-
.new(opts) ⇒ MasterKeyDocument
constructor
Internal use only
Creates a master key document object form a parameters hash.
Instance Attribute Summary
- #endpoint ⇒ String | nil readonly Internal use only
- #key ⇒ String readonly Internal use only
- #region ⇒ String readonly Internal use only
Instance Method Summary
-
#to_document ⇒ BSON::Document
Internal use only
Convert master key document object to a BSON document in libmongocrypt format.
::Mongo::Crypt::KMS::Validations - Included
| #validate_param | Validate if a |
| #validate_tls_options | Validate KMS TLS options. |
Instance Attribute Details
#endpoint ⇒ String | nil (readonly)
# File 'lib/mongo/crypt/kms/aws/master_document.rb', line 35
attr_reader :endpoint
#key ⇒ String (readonly)
# File 'lib/mongo/crypt/kms/aws/master_document.rb', line 32
attr_reader :key
#region ⇒ String (readonly)
# File 'lib/mongo/crypt/kms/aws/master_document.rb', line 29
attr_reader :region
Instance Method Details
#to_document ⇒ BSON::Document
Convert master key document object to a BSON document in libmongocrypt format.