Couchbase Lite C++
Couchbase Lite C++ API
Loading...
Searching...
No Matches
cbl::Authenticator Class Reference

Authentication credentials for a remote server. More...

#include <cbl++/Replicator.hh>

Static Public Member Functions

static Authenticator basicAuthenticator (std::string_view username, std::string_view password)
 Creates a basic authenticator authenticator using username/password credentials.
static Authenticator sessionAuthenticator (std::string_view sessionId, std::optional< std::string_view > cookieName=std::nullopt)
 Creates a sesssion authenticator using a Couchbase Sync Gateway login session identifier, and optionally a cookie name.

Protected Member Functions

CBLAuthenticator *_Nullable ref () const

Friends

class ReplicatorConfiguration

Detailed Description

Authentication credentials for a remote server.

Member Function Documentation

◆ basicAuthenticator()

Authenticator cbl::Authenticator::basicAuthenticator ( std::string_view username,
std::string_view password )
inlinestatic

Creates a basic authenticator authenticator using username/password credentials.

◆ ref()

CBLAuthenticator *_Nullable cbl::Authenticator::ref ( ) const
inlineprotected

◆ sessionAuthenticator()

Authenticator cbl::Authenticator::sessionAuthenticator ( std::string_view sessionId,
std::optional< std::string_view > cookieName = std::nullopt )
inlinestatic

Creates a sesssion authenticator using a Couchbase Sync Gateway login session identifier, and optionally a cookie name.

◆ ReplicatorConfiguration

friend class ReplicatorConfiguration
friend

The documentation for this class was generated from the following file: