123456789_123456789_123456789_123456789_123456789_

Class: Mongo::Crypt::KMS::KMIP::Credentials Private

Do not use. This class is for internal use only.
Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
self, Forwardable
Instance Chain:
Inherits: Object
Defined in: lib/mongo/crypt/kms/kmip/credentials.rb

Overview

::Mongo::Crypt::KMS::KMIP KMS Credentials object contains credentials for a remote ::Mongo::Crypt::KMS::KMIP KMS provider.

Constant Summary

Class Method Summary

Instance Attribute Summary

Instance Method Summary

::Mongo::Crypt::KMS::Validations - Included

#validate_param

Validate if a ::Mongo::Crypt::KMS parameter is valid.

#validate_tls_options

Validate KMS TLS options.

Instance Attribute Details

#endpointString (readonly)

Returns:

[ GitHub ]

  
# File 'lib/mongo/crypt/kms/kmip/credentials.rb', line 31

attr_reader :endpoint

Instance Method Details

#to_documentBSON::Document

Convert credentials object to a BSON document in libmongocrypt format.

Returns:

[ GitHub ]

  
# File 'lib/mongo/crypt/kms/kmip/credentials.rb', line 57

def to_document
  return BSON::Document.new({}) if empty?
  BSON::Document.new({
    endpoint: endpoint,
  })
end