Skip to main content
Class
class FallbackPolicy

Entries

MemoryOnly

Fall back to in-memory storage only. Tokens will not persist across app restarts but security is maintained.

InsecurePersistent

Fall back to insecure persistent storage. Tokens will persist but are stored in plaintext. Use with caution and only when persistence is critical.

Properties

entries

val entries: EnumEntries<FallbackPolicy>
Returns a representation of an immutable list of all enum entries, in the order they’re declared.

name

val name: String

ordinal

val ordinal: Int

Functions

valueOf

fun valueOf(value: String): FallbackPolicy
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

values

fun values(): Array<FallbackPolicy>
Returns an array containing the constants of this enum type, in the order they’re declared.