Uses of Class
io.objectbox.sync.SyncCredentials
Packages that use SyncCredentials
Package
Description
ObjectBox Sync allows to automatically synchronize local data with a sync
destination (e.g.
-
Uses of SyncCredentials in io.objectbox.sync
Subclasses of SyncCredentials in io.objectbox.syncModifier and TypeClassDescriptionfinal classInternal credentials implementation.final classInternal credentials implementation for user and password authentication.Fields in io.objectbox.sync with type parameters of type SyncCredentialsModifier and TypeFieldDescription(package private) final List<SyncCredentials> SyncBuilder.credentialsMethods in io.objectbox.sync that return SyncCredentialsModifier and TypeMethodDescription(package private) abstract SyncCredentialsSyncCredentials.createClone()Creates a copy of these credentials.(package private) SyncCredentialsSyncCredentialsUserPassword.createClone()static SyncCredentialsAuthenticate with a Google account ID token obtained via Google Sign-In.static SyncCredentialsSyncCredentials.jwtAccessToken(String jwtAccessToken) JSON Web Token (JWT): an access token that is used to access resources.static SyncCredentialsSyncCredentials.jwtCustomToken(String jwtCustomToken) JSON Web Token (JWT): a token that is neither an ID, access, nor refresh token.static SyncCredentialsSyncCredentials.jwtIdToken(String jwtIdToken) JSON Web Token (JWT): an ID token that typically provides identity information about the authenticated user.static SyncCredentialsSyncCredentials.jwtRefreshToken(String jwtRefreshToken) JSON Web Token (JWT): a refresh token that is used to obtain a new access token.static SyncCredentialsSyncCredentials.none()No authentication, unsecured.static SyncCredentialsSyncCredentials.obxAdminUser(String user, String password) ObjectBox admin users (username/password)static SyncCredentialsSyncCredentials.sharedSecret(byte[] secret) Authenticate with a shared secret.static SyncCredentialsSyncCredentials.sharedSecret(String secret) Authenticate with a shared secret.static SyncCredentialsSyncCredentials.userAndPassword(String user, String password) Generic credential type suitable for ObjectBox admin (and possibly others in the future)Methods in io.objectbox.sync with parameters of type SyncCredentialsModifier and TypeMethodDescriptionstatic SyncBuilderSync.client(BoxStore boxStore, String url, SyncCredentials credentials) Starts building aSyncClient.static SyncBuilderSync.client(BoxStore boxStore, String url, SyncCredentials[] multipleCredentials) Starts building aSyncClient.static SyncHybridBuilderSync.hybrid(BoxStoreBuilder storeBuilder, String url, SyncCredentials authenticatorCredentials) Starts building aSyncHybrid, a client/server hybrid typically used for embedded cluster setups.static SyncServerBuilderSync.server(BoxStore boxStore, String url, SyncCredentials authenticatorCredentials) Starts building aSyncServer.static SyncServerBuilderSync.server(BoxStore boxStore, String url, SyncCredentials[] multipleAuthenticatorCredentials) Starts building aSyncServer.voidSyncClient.setLoginCredentials(SyncCredentials credentials) Updates the login credentials.voidSyncClient.setLoginCredentials(SyncCredentials[] multipleCredentials) Updates the login credentials.voidSyncClientImpl.setLoginCredentials(SyncCredentials credentials) voidSyncClientImpl.setLoginCredentials(SyncCredentials[] multipleCredentials) Constructors in io.objectbox.sync with parameters of type SyncCredentialsModifierConstructorDescriptionSyncBuilder(BoxStore boxStore, SyncCredentials credentials) SyncBuilder(BoxStore boxStore, SyncCredentials[] multipleCredentials) SyncBuilder(BoxStore boxStore, String url, SyncCredentials credentials) SyncBuilder(BoxStore boxStore, String url, SyncCredentials[] multipleCredentials) (package private)SyncHybridBuilder(BoxStoreBuilder storeBuilder, String url, SyncCredentials authenticatorCredentials) Internal API; useSync.hybrid(BoxStoreBuilder, String, SyncCredentials)instead. -
Uses of SyncCredentials in io.objectbox.sync.server
Methods in io.objectbox.sync.server with parameters of type SyncCredentialsModifier and TypeMethodDescriptionSyncServerBuilder.authenticatorCredentials(SyncCredentials authenticatorCredentials) Adds additional authenticator credentials to authenticate clients or peers with.SyncServerBuilder.authenticatorCredentials(SyncCredentials[] multipleAuthenticatorCredentials) Adds additional authenticator credentials to authenticate clients or peers with.SyncServerBuilder.clusterPeer(String url, SyncCredentials credentials) Adds a (remote) cluster peer, to which this server should connect to as a client using the given credentials.SyncServerBuilder.peer(String url, SyncCredentials credentials) Deprecated.Constructors in io.objectbox.sync.server with parameters of type SyncCredentialsModifierConstructorDescriptionSyncServerBuilder(BoxStore boxStore, String url, SyncCredentials authenticatorCredentials) UseSync.server(BoxStore, String, SyncCredentials)instead.SyncServerBuilder(BoxStore boxStore, String url, SyncCredentials[] multipleAuthenticatorCredentials) UseSync.server(BoxStore, String, SyncCredentials)instead.
SyncServerBuilder.clusterPeer(String, SyncCredentials)instead.