SecureHardwarePreference

Controls whether keys generated by the hardware-backed key factories are backed by a dedicated secure hardware element.

This preference is interpreted platform-specifically:

  • Android: controls use of StrongBox (a dedicated secure element separate from the default Trusted Execution Environment). Requires API 28+.

  • Apple (iOS/macOS): controls use of the Secure Enclave for ES256 (P-256) keys. Keys stored in the Secure Enclave never leave the secure element even during signing operations.

Entries

Link copied to clipboard

Do not request dedicated secure-hardware key storage. Default behaviour.

Link copied to clipboard

Use secure hardware when available, falling back silently to the default storage otherwise.

Link copied to clipboard

Require dedicated secure-hardware key storage; throw if unavailable.

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
expect val name: String
Link copied to clipboard
expect val ordinal: Int

Functions

Link copied to clipboard

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.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.