Uses of Class
io.objectbox.sync.SyncCredentials
-
Packages that use SyncCredentials Package Description io.objectbox.sync ObjectBox Sync allows to automatically synchronize local data with a sync destination (e.g.io.objectbox.sync.server -
-
Uses of SyncCredentials in io.objectbox.sync
Subclasses of SyncCredentials in io.objectbox.sync Modifier and Type Class Description classSyncCredentialsTokenInternal credentials implementation.classSyncCredentialsUserPasswordInternal credentials implementation for user and password authentication.Fields in io.objectbox.sync with type parameters of type SyncCredentials Modifier and Type Field Description (package private) java.util.List<SyncCredentials>SyncBuilder. credentialsMethods in io.objectbox.sync that return SyncCredentials Modifier and Type Method Description (package private) abstract SyncCredentialsSyncCredentials. createClone()Creates a copy of these credentials.(package private) SyncCredentialsSyncCredentialsUserPassword. createClone()static SyncCredentialsSyncCredentials. google(java.lang.String idToken)Authenticate with a Google account ID token obtained via Google Sign-In.static SyncCredentialsSyncCredentials. jwtAccessToken(java.lang.String jwtAccessToken)JSON Web Token (JWT): an access token that is used to access resources.static SyncCredentialsSyncCredentials. jwtCustomToken(java.lang.String jwtCustomToken)JSON Web Token (JWT): a token that is neither an ID, access, nor refresh token.static SyncCredentialsSyncCredentials. jwtIdToken(java.lang.String jwtIdToken)JSON Web Token (JWT): an ID token that typically provides identity information about the authenticated user.static SyncCredentialsSyncCredentials. jwtRefreshToken(java.lang.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(java.lang.String user, java.lang.String password)ObjectBox admin users (username/password)static SyncCredentialsSyncCredentials. sharedSecret(byte[] secret)Authenticate with a shared secret.static SyncCredentialsSyncCredentials. sharedSecret(java.lang.String secret)Authenticate with a shared secret.static SyncCredentialsSyncCredentials. userAndPassword(java.lang.String user, java.lang.String password)Generic credential type suitable for ObjectBox admin (and possibly others in the future)Methods in io.objectbox.sync with parameters of type SyncCredentials Modifier and Type Method Description static SyncBuilderSync. client(BoxStore boxStore, java.lang.String url, SyncCredentials credentials)Starts building aSyncClient.static SyncBuilderSync. client(BoxStore boxStore, java.lang.String url, SyncCredentials[] multipleCredentials)Starts building aSyncClient.static SyncHybridBuilderSync. hybrid(BoxStoreBuilder storeBuilder, java.lang.String url, SyncCredentials authenticatorCredentials)Starts building aSyncHybrid, a client/server hybrid typically used for embedded cluster setups.static SyncServerBuilderSync. server(BoxStore boxStore, java.lang.String url, SyncCredentials authenticatorCredentials)Starts building aSyncServer.static SyncServerBuilderSync. server(BoxStore boxStore, java.lang.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 SyncCredentials Constructor Description SyncBuilder(BoxStore boxStore, SyncCredentials credentials)SyncBuilder(BoxStore boxStore, SyncCredentials[] multipleCredentials)SyncBuilder(BoxStore boxStore, java.lang.String url, SyncCredentials credentials)SyncBuilder(BoxStore boxStore, java.lang.String url, SyncCredentials[] multipleCredentials)SyncHybridBuilder(BoxStoreBuilder storeBuilder, java.lang.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 SyncCredentials Modifier and Type Method Description SyncServerBuilderSyncServerBuilder. authenticatorCredentials(SyncCredentials authenticatorCredentials)Adds additional authenticator credentials to authenticate clients or peers with.SyncServerBuilderSyncServerBuilder. authenticatorCredentials(SyncCredentials[] multipleAuthenticatorCredentials)Adds additional authenticator credentials to authenticate clients or peers with.SyncServerBuilderSyncServerBuilder. clusterPeer(java.lang.String url, SyncCredentials credentials)Adds a (remote) cluster peer, to which this server should connect to as a client using the given credentials.SyncServerBuilderSyncServerBuilder. peer(java.lang.String url, SyncCredentials credentials)Deprecated.Constructors in io.objectbox.sync.server with parameters of type SyncCredentials Constructor Description SyncServerBuilder(BoxStore boxStore, java.lang.String url, SyncCredentials authenticatorCredentials)UseSync.server(BoxStore, String, SyncCredentials)instead.SyncServerBuilder(BoxStore boxStore, java.lang.String url, SyncCredentials[] multipleAuthenticatorCredentials)UseSync.server(BoxStore, String, SyncCredentials)instead.
-