Class SyncCredentialsToken

java.lang.Object
io.objectbox.sync.SyncCredentials
io.objectbox.sync.SyncCredentialsToken

@Internal public final class SyncCredentialsToken extends SyncCredentials
Internal credentials implementation. Use SyncCredentials to build credentials.
  • 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.