Add KeyChain.KEY_ALIAS_SELECTION_DENIED constant.
Add KEY_ALIAS_SELECTION_DENIED contant to flag that no private key alias has been chosen in onChoosePrivateKeyAlias, but no KeyChainActivity selection dialog should be presented to the user. Bug: 136649900 Test: run cts --test MixedManagedProfileOwnerTest#testDelegationCertSelection Change-Id: I9aeea7be0c2a6172ca054f91d49183c843ecfa6e
This commit is contained in:
@@ -342,6 +342,16 @@ public final class KeyChain {
|
||||
*/
|
||||
public static final int KEY_ATTESTATION_FAILURE = 4;
|
||||
|
||||
/**
|
||||
* Used by DPC or delegated app in
|
||||
* {@link android.app.admin.DeviceAdminReceiver#onChoosePrivateKeyAlias} or
|
||||
* {@link android.app.admin.DelegatedAdminReceiver#onChoosePrivateKeyAlias} to identify that
|
||||
* the requesting app is not granted access to any key, and nor will the user be able to grant
|
||||
* access manually.
|
||||
*/
|
||||
public static final String KEY_ALIAS_SELECTION_DENIED =
|
||||
"alias-selection-denied-ef829e15-210a-409d-96c9-ee684fc41972";
|
||||
|
||||
/**
|
||||
* Returns an {@code Intent} that can be used for credential
|
||||
* installation. The intent may be used without any extras, in
|
||||
|
||||
Reference in New Issue
Block a user