Token

class Token(val data: ByteArray)

A class to hold the login token. This class offers additional functionality to clear the data from memory, to avoid any potential memory attacks.

Constructors

Link copied to clipboard
constructor(data: ByteArray)

Properties

Link copied to clipboard

Functions

Link copied to clipboard

Returns the string representation of the token.

Link copied to clipboard
fun clear()

Clears the data, setting all bytes to 0. Once clear has been called, the token will no longer be in memory.