Package com.codename1.secrets


package com.codename1.secrets

Secure, secure-by-default storage for app secrets (auth tokens, API keys, refresh tokens) that must never be written to Preferences or Storage as plaintext.

Secrets is the entry point: a small set/get/contains/delete/keys API. On a device with a platform keychain wired in (iOS Keychain Services, Android Keystore) values are protected by the OS secure enclave; otherwise a software fallback encrypts each value at rest with authenticated AES-256-GCM. The backend is pluggable through the SecretsStore SPI.

  • Class
    Description
    A simple, secure-by-default key/value store for app secrets (auth tokens, API keys, refresh tokens, anything you must not keep in Preferences or Storage as plaintext).
    The pluggable backend behind Secrets.