Class: Couchbase::CertificateAuthenticator

Inherits:
Object
  • Object
show all
Defined in:
lib/couchbase/authenticator.rb,
/Users/sergey.auseyau/code/couchbase-ruby-client/lib/couchbase/authenticator.rb
more...

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

[View source]

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

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.


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

def certificate_path
  @certificate_path
end

#key_pathObject

Returns the value of attribute key_path.


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

def key_path
  @key_path
end