Credentials for logging into a Sync Server that are passed to SyncClient. Typically created using a factory method, e.g. SyncCredentials::none() or SyncCredentials::jwtIdToken(...).
More...
#include <objectbox-sync.hpp>
Credentials for logging into a Sync Server that are passed to SyncClient. Typically created using a factory method, e.g. SyncCredentials::none() or SyncCredentials::jwtIdToken(...).
◆ SyncCredentials() [1/3]
◆ SyncCredentials() [2/3]
◆ SyncCredentials() [3/3]
| obx::SyncCredentials::SyncCredentials |
( |
OBXSyncCredentialsType |
type, |
|
|
const std::string & |
username, |
|
|
const std::string & |
password |
|
) |
| |
|
inline |
◆ data()
| const uint8_t * obx::SyncCredentials::data |
( |
| ) |
const |
|
inline |
Only available if initialized with byte data (not username/password).
◆ dataSize()
| size_t obx::SyncCredentials::dataSize |
( |
| ) |
const |
|
inline |
Only available if initialized with byte data (not username/password).
◆ googleAuth()
| static SyncCredentials obx::SyncCredentials::googleAuth |
( |
const std::string & |
str | ) |
|
|
inlinestatic |
◆ jwtAccessToken()
| static SyncCredentials obx::SyncCredentials::jwtAccessToken |
( |
const std::string & |
token | ) |
|
|
inlinestatic |
◆ jwtCustomToken()
| static SyncCredentials obx::SyncCredentials::jwtCustomToken |
( |
const std::string & |
token | ) |
|
|
inlinestatic |
◆ jwtIdToken()
| static SyncCredentials obx::SyncCredentials::jwtIdToken |
( |
const std::string & |
token | ) |
|
|
inlinestatic |
◆ jwtRefreshToken()
| static SyncCredentials obx::SyncCredentials::jwtRefreshToken |
( |
const std::string & |
token | ) |
|
|
inlinestatic |
◆ none()
◆ 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 |