Sha256: 6f8ce69b30bb5a995d736d02104773ef29b5d3aabc2f3e6d955e4662fa13422c
Contents?: true
Size: 1.22 KB
Versions: 6
Compression:
Stored size: 1.22 KB
Contents
# Copyright 2020 Couchbase, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. module Couchbase # Authenticator for username/password credentials class PasswordAuthenticator attr_accessor :username attr_accessor :password def initialize(username, password) @username = username @password = password end end # Authenticator for TLS client certificate # # @see https://docs.couchbase.com/server/current/manage/manage-security/configure-client-certificates.html class CertificateAuthenticator attr_accessor :certificate_path attr_accessor :key_path def initialize(certificate_path, key_path) @certificate_path = certificate_path @key_path = key_path end end end
Version data entries
6 entries across 6 versions & 1 rubygems