ObjectBox C and C++ API  0.21.0
obx::SyncCredentials Class Reference

#include <objectbox-sync.hpp>

Public Member Functions

 SyncCredentials (OBXSyncCredentialsType type, std::vector< uint8_t > &&data)
 
 SyncCredentials (OBXSyncCredentialsType type, const std::string &data)
 
 SyncCredentials (OBXSyncCredentialsType type, const std::string &username, const std::string &password)
 

Static Public Member Functions

static SyncCredentials none ()
 
static SyncCredentials sharedSecret (std::vector< uint8_t > &&data)
 
static SyncCredentials sharedSecret (const std::string &str)
 
static SyncCredentials googleAuth (const std::string &str)
 
static SyncCredentials obxAdminUser (const std::string &username, const std::string &password)
 
static SyncCredentials userPassword (const std::string &username, const std::string &password)
 

Constructor & Destructor Documentation

◆ SyncCredentials() [1/3]

obx::SyncCredentials::SyncCredentials ( OBXSyncCredentialsType  type,
std::vector< uint8_t > &&  data 
)
inline

◆ SyncCredentials() [2/3]

obx::SyncCredentials::SyncCredentials ( OBXSyncCredentialsType  type,
const std::string &  data 
)
inline

◆ SyncCredentials() [3/3]

obx::SyncCredentials::SyncCredentials ( OBXSyncCredentialsType  type,
const std::string &  username,
const std::string &  password 
)
inline

Member Function Documentation

◆ googleAuth()

static SyncCredentials obx::SyncCredentials::googleAuth ( const std::string &  str)
inlinestatic

◆ none()

static SyncCredentials obx::SyncCredentials::none ( )
inlinestatic

◆ obxAdminUser()

static SyncCredentials obx::SyncCredentials::obxAdminUser ( const std::string &  username,
const std::string &  password 
)
inlinestatic

◆ sharedSecret() [1/2]

static SyncCredentials obx::SyncCredentials::sharedSecret ( const std::string &  str)
inlinestatic

◆ sharedSecret() [2/2]

static SyncCredentials obx::SyncCredentials::sharedSecret ( std::vector< uint8_t > &&  data)
inlinestatic

◆ userPassword()

static SyncCredentials obx::SyncCredentials::userPassword ( const std::string &  username,
const std::string &  password 
)
inlinestatic