KeyProtectionLevel KeyProtectionLevel KeyProtectionLevel KeyProtectionLevel KeyProtectionLevel Enum


Specifies the key protection level. This enumeration type is used in the KeyProtectionLevel property of a CertificateRequestProperties object.

public : enum class KeyProtectionLevel
enum class winrt::Windows::Security::Cryptography::Certificates::KeyProtectionLevel : int32_t
public enum KeyProtectionLevel
Public Enum KeyProtectionLevel
var value = Windows.Security.Cryptography.Certificates.KeyProtectionLevel.consentOnly;
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)


ConsentOnly ConsentOnly ConsentOnly ConsentOnly ConsentOnly 1

The user is notified through a dialog box when the private key is created or used.

ConsentWithFingerprint ConsentWithFingerprint ConsentWithFingerprint ConsentWithFingerprint ConsentWithFingerprint 3

The user is prompted to enter a fingerprint verification for the key when the key is created or used.

ConsentWithPassword ConsentWithPassword ConsentWithPassword ConsentWithPassword ConsentWithPassword 2

The user is prompted to enter a password for the key when the key is created or used.

NoConsent NoConsent NoConsent NoConsent NoConsent 0

No strong key protection.

See Also