Class: Couchbase::CertificateAuthenticator

Inherits:
Object
  • Object
show all
Defined in:
lib/couchbase/authenticator.rb,
/code/couchbase-ruby-client/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



61
62
63
64
# File 'lib/couchbase/authenticator.rb', line 61

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.



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

def certificate_path
  @certificate_path
end

#key_pathObject

Returns the value of attribute key_path.



55
56
57
# File 'lib/couchbase/authenticator.rb', line 55

def key_path
  @key_path
end