Package io.objectbox.sync
Class SyncCredentialsToken
java.lang.Object
io.objectbox.sync.SyncCredentials
io.objectbox.sync.SyncCredentialsToken
Internal credentials implementation. Use
SyncCredentials
to build credentials.-
Nested Class Summary
Nested classes/interfaces inherited from class io.objectbox.sync.SyncCredentials
SyncCredentials.CredentialsType
-
Method Summary
Methods inherited from class io.objectbox.sync.SyncCredentials
getType, getTypeId, google, jwtAccessToken, jwtAccessTokenServer, jwtCustomToken, jwtCustomTokenServer, jwtIdToken, jwtIdTokenServer, jwtRefreshToken, jwtRefreshTokenServer, none, obxAdminUser, sharedSecret, sharedSecret, userAndPassword
-
Method Details
-
hasToken
public boolean hasToken() -
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.
-