Package io.objectbox.sync
Class SyncCredentialsToken
- java.lang.Object
-
- io.objectbox.sync.SyncCredentials
-
- io.objectbox.sync.SyncCredentialsToken
-
@Internal public final class SyncCredentialsToken extends SyncCredentials
Internal credentials implementation. UseSyncCredentials
to build credentials.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class io.objectbox.sync.SyncCredentials
SyncCredentials.CredentialsType
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
Clear after usage.byte[]
getTokenBytes()
-
Methods inherited from class io.objectbox.sync.SyncCredentials
getType, getTypeId, google, none, sharedSecret, sharedSecret, userAndPassword
-
-
-
-
Method Detail
-
getTokenBytes
@Nullable public byte[] getTokenBytes()
-
clear
public void clear()
Clear after usage.Note that when the token is passed as a String, that String is removed from memory at the earliest with the next garbage collector run.
Also note that while the token is removed from the Java heap, it is present on the native heap of the Sync component using it.
-
-