diff options
author | Zoltan Szatmary-Ban <szatmz@google.com> | 2014-08-15 12:52:35 +0000 |
---|---|---|
committer | Zoltan Szatmary-Ban <szatmz@google.com> | 2014-08-15 12:58:37 +0000 |
commit | f8d72cc14f70f5af13342c4c7b107a8ab60dfe23 (patch) | |
tree | 57ac8e36c84cb0d3628535c9ffc96094c5bda61f /keystore | |
parent | f75aadc028f2e79541a269bf2c74dcb3482e2ec7 (diff) | |
download | frameworks_base-f8d72cc14f70f5af13342c4c7b107a8ab60dfe23.zip frameworks_base-f8d72cc14f70f5af13342c4c7b107a8ab60dfe23.tar.gz frameworks_base-f8d72cc14f70f5af13342c4c7b107a8ab60dfe23.tar.bz2 |
Revert "Revert "Revert "Revert "Update Trusted Credentials screen in settings""""
This reverts commit 87efe74e092236c372d3b6909009641123aa416a.
This should be fine now with all the dependency CLs +2-ed
Change-Id: I96ad14ad5ff81e6b5391035cb6c5a62339c6cc40
Diffstat (limited to 'keystore')
-rw-r--r-- | keystore/java/android/security/IKeyChainService.aidl | 7 | ||||
-rw-r--r-- | keystore/java/android/security/KeyChain.java | 3 |
2 files changed, 9 insertions, 1 deletions
diff --git a/keystore/java/android/security/IKeyChainService.aidl b/keystore/java/android/security/IKeyChainService.aidl index 60fd7f7..a93891a 100644 --- a/keystore/java/android/security/IKeyChainService.aidl +++ b/keystore/java/android/security/IKeyChainService.aidl @@ -15,6 +15,8 @@ */ package android.security; +import android.content.pm.ParceledListSlice; + /** * Caller is required to ensure that {@link KeyStore#unlock * KeyStore.unlock} was successful. @@ -32,6 +34,11 @@ interface IKeyChainService { // APIs used by Settings boolean deleteCaCertificate(String alias); boolean reset(); + ParceledListSlice getUserCaAliases(); + ParceledListSlice getSystemCaAliases(); + boolean containsCaAlias(String alias); + byte[] getEncodedCaCertificate(String alias, boolean includeDeletedSystem); + List<String> getCaCertificateChainAliases(String rootAlias, boolean includeDeletedSystem); // APIs used by KeyChainActivity void setGrant(int uid, String alias, boolean value); diff --git a/keystore/java/android/security/KeyChain.java b/keystore/java/android/security/KeyChain.java index 0da2b99..131e689 100644 --- a/keystore/java/android/security/KeyChain.java +++ b/keystore/java/android/security/KeyChain.java @@ -397,7 +397,8 @@ public final class KeyChain { return KeyStore.getInstance().isHardwareBacked(algorithm); } - private static X509Certificate toCertificate(byte[] bytes) { + /** @hide */ + public static X509Certificate toCertificate(byte[] bytes) { if (bytes == null) { throw new IllegalArgumentException("bytes == null"); } |