Package io.objectbox.sync
Class SyncCredentials
java.lang.Object
io.objectbox.sync.SyncCredentials
- Direct Known Subclasses:
SyncCredentialsToken
,SyncCredentialsUserPassword
Use the static helper methods to build Sync credentials,
for example
SyncCredentials.sharedSecret("secret")
.-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptiongetType()
long
static SyncCredentials
Authenticate with a Google account ID token obtained via Google Sign-In.static SyncCredentials
none()
No authentication, unsecured.static SyncCredentials
sharedSecret
(byte[] secret) Authenticate with a shared secret.static SyncCredentials
sharedSecret
(String secret) Authenticate with a shared secret.static SyncCredentials
userAndPassword
(String user, String password)
-
Method Details
-
google
Authenticate with a Google account ID token obtained via Google Sign-In. -
userAndPassword
-
none
No authentication, unsecured. Use only for development and testing purposes. -
getType
-
getTypeId
public long getTypeId()