Język

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

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 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

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 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