/**
 * Copyright © 2025 Nevis Security AG. All rights reserved.
 */

/**
 * This indicates the level of protection of the FIDO UAF keys in the device as defined
 * {@link https://source.android.com/docs/security/features/keystore/attestation#schema | here}.
 *
 * @group Common Objects
 */
export enum SecurityLevel {
	/**
	 * The key is stored in a Software environment. This is typically the environment where the
	 * emulators store keys.
	 */
	Software = 'SOFTWARE',

	/**
	 * The key is stored in a {@link https://developer.android.com/privacy-and-security/keystore#ExtractionPrevention |
	 * trusted execution environment (TEE)}.
	 */
	TrustedEnvironment = 'TRUSTED_ENVIRONMENT',

	/**
	 * The key is stored in a {@link https://developer.android.com/privacy-and-security/keystore#StrongBoxKeyMint | StrongBox}.
	 * This is currently the highest level of security where the SDK stores keys.
	 */
	StrongBox = 'STRONG_BOX',
}
