Language

InstallKeyFlags Enum

Definition

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

Requests that InstallKeyPair(ComponentName, IPrivateKey, Certificate[], String, InstallKeyFlags) grant the calling app access to the installed credentials immediately. Without this flag, installation does not automatically grant the caller access.

Android reference for android.app.admin.DevicePolicyManager.INSTALLKEY_REQUEST_CREDENTIALS_ACCESS.

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

Allows a user to select the key in the certificate selection prompt. Without this flag, an administrator can still choose an alias using OnChoosePrivateKeyAlias(Context, Intent, Int32, Uri, String), and RequestCredentialsAccess can grant the calling app access when the key is installed.

Android reference for android.app.admin.DevicePolicyManager.INSTALLKEY_SET_USER_SELECTABLE.

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.

Applies to