Package io.objectbox.sync
Class SyncCredentialsUserPassword
java.lang.Object
io.objectbox.sync.SyncCredentials
io.objectbox.sync.SyncCredentialsUserPassword
Internal credentials implementation for user and password authentication.
Use
SyncCredentials to build credentials.-
Nested Class Summary
Nested classes/interfaces inherited from class io.objectbox.sync.SyncCredentials
SyncCredentials.CredentialsType -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSyncCredentialsUserPassword(SyncCredentials.CredentialsType type, String username, String password) -
Method Summary
Modifier and TypeMethodDescription(package private) SyncCredentialsCreates a copy of these credentials.Methods inherited from class io.objectbox.sync.SyncCredentials
getType, getTypeId, google, jwtAccessToken, jwtCustomToken, jwtIdToken, jwtRefreshToken, none, obxAdminUser, sharedSecret, sharedSecret, userAndPassword
-
Field Details
-
username
-
password
-
-
Constructor Details
-
SyncCredentialsUserPassword
SyncCredentialsUserPassword(SyncCredentials.CredentialsType type, String username, String password)
-
-
Method Details
-
getUsername
-
getPassword
-
createClone
SyncCredentials createClone()Description copied from class:SyncCredentialsCreates a copy of these credentials.This can be useful to use the same credentials when creating multiple clients or a server in combination with a client as some credentials may get cleared when building a client or server.
- Specified by:
createClonein classSyncCredentials
-