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()longstatic SyncCredentialsAuthenticate with a Google account ID token obtained via Google Sign-In.static SyncCredentialsnone()No authentication, unsecured.static SyncCredentialssharedSecret(byte[] secret) Authenticate with a shared secret.static SyncCredentialssharedSecret(String secret) Authenticate with a shared secret.static SyncCredentialsuserAndPassword(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()