InstallKeyFlags Enum
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Specifies options for a private key and certificate chain that InstallKeyPair(ComponentName, IPrivateKey, Certificate[], String, InstallKeyFlags) installs.
public enum InstallKeyFlags
type InstallKeyFlags =
- Inheritance
-
InstallKeyFlags
Fields
| Name | Value | Description |
|---|---|---|
| RequestCredentialsAccess | 1 | Specifies that the calling app should be granted access to the installed credentials immediately. Otherwise, access to the credentials will be gated by user approval. For use with installKeyPair(ComponentName,PrivateKey,Certificate[],String,int) Android reference for Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License. |
| SetUserSelectable | 2 | Specifies that a user can select the key via the Certificate Selection prompt. If this flag is not set when calling installKeyPair(ComponentName, PrivateKey, Certificate, String), the key can only be granted access by implementing DeviceAdminReceiver.onChoosePrivateKeyAlias(Context, Intent, int, Uri, String). For use with installKeyPair(ComponentName,PrivateKey,Certificate[],String,int) Android reference for Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License. |
Remarks
RequestCredentialsAccess grants the calling app access to the installed credentials immediately. SetUserSelectable lets the user select the key in the certificate selection prompt. Android accepts both options in the same flags value.