diff options
author | Polina Bondarenko <pbond@google.com> | 2019-09-20 14:29:15 +0200 |
---|---|---|
committer | Polina Bondarenko <pbond@google.com> | 2019-10-07 15:05:39 +0200 |
commit | a75bf0ca595116c1a6fa9e4ed4551a5b63a1b23a (patch) | |
tree | 9522756ae6c0a5ca2e604c57b12ed3d058b6469a /keystore/java/android | |
parent | 644c2bb97f492cc640fa740a6e22d5635251e8c1 (diff) |
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
Diffstat (limited to 'keystore/java/android')
-rw-r--r-- | keystore/java/android/security/KeyChain.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/keystore/java/android/security/KeyChain.java b/keystore/java/android/security/KeyChain.java index 1829d2f406b4..bf2363481f73 100644 --- a/keystore/java/android/security/KeyChain.java +++ b/keystore/java/android/security/KeyChain.java @@ -343,6 +343,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 * which case the user will be able to install credentials from |