Class SyncCredentialsToken

    • Field Detail

      • token

        @Nullable
        private byte[] token
      • cleared

        private volatile boolean cleared
    • 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.

      • createClone

        SyncCredentialsToken createClone()
        Description copied from class: SyncCredentials
        Creates 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:
        createClone in class SyncCredentials