SecurityCapabilities

Detects device hardware security capabilities.

Used by WalletKeyManager to determine the best available security level and by the onboarding UI to inform users about their device's protection.

Constructors

Link copied to clipboard
constructor(context: Context)

Properties

Link copied to clipboard

Whether strong biometrics are available but not yet enrolled. Used to prompt the user to enroll via Settings.ACTION_BIOMETRIC_ENROLL.

Link copied to clipboard

Whether the device has any enrolled authenticator (biometric OR device credential). Returns true if at least a PIN/pattern/password is set.

Link copied to clipboard

Whether the device can authenticate with Class 3 (strong) biometrics. This is fingerprint, face, or iris that meets Android CDD requirements.

Link copied to clipboard

Whether the device has a dedicated StrongBox secure element (e.g., Google Titan M2, Samsung eSE, Qualcomm SPU).

Link copied to clipboard

Whether the device has no biometric hardware at all.

Functions

Link copied to clipboard

Query the actual security level of an existing Keystore key.

Link copied to clipboard

Whether a key's user authentication requirement is enforced by secure hardware.