Class: Couchbase::CertificateAuthenticator

Inherits:
Object
  • Object
show all
Defined in:
lib/couchbase/authenticator.rb

Overview

Authenticator for TLS client certificate

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(certificate_path, key_path) ⇒ CertificateAuthenticator

Creates a new authenticator with certificate and key paths

Parameters:

  • certificate_path (String)

    path to certificate

  • key_path (String)

    path to private key



59
60
61
62
# File 'lib/couchbase/authenticator.rb', line 59

def initialize(certificate_path, key_path)
  @certificate_path = certificate_path
  @key_path = key_path
end

Instance Attribute Details

#certificate_pathObject

Returns the value of attribute certificate_path.



52
53
54
# File 'lib/couchbase/authenticator.rb', line 52

def certificate_path
  @certificate_path
end

#key_pathObject

Returns the value of attribute key_path.



53
54
55
# File 'lib/couchbase/authenticator.rb', line 53

def key_path
  @key_path
end