Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(47)

Unified Diff: net/android/java/src/org/chromium/net/IAndroidKeyStoreRemote.aidl

Issue 166143002: Refactoring AndroidKeyStore to support a KeyStore running in another process (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: net/android/java/src/org/chromium/net/IAndroidKeyStoreRemote.aidl
diff --git a/net/android/java/src/org/chromium/net/IAndroidKeyStoreRemote.aidl b/net/android/java/src/org/chromium/net/IAndroidKeyStoreRemote.aidl
new file mode 100644
index 0000000000000000000000000000000000000000..c64a91d922589fd456737ee221b55ddde0fdacf8
--- /dev/null
+++ b/net/android/java/src/org/chromium/net/IAndroidKeyStoreRemote.aidl
@@ -0,0 +1,27 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+package org.chromium.net;
+
+/**
+ * Interface for communication with an Android KeyStore in another process.
+ */
+interface IAndroidKeyStoreRemote {
+ // Remote calls for SSlClientCertificateRequest - these allow retrieving
+ // the alias of the certificate to be used and its encoded chain.
+ String getClientCertificateAlias();
+ byte[] getEncodedCertificateChain(in String alias);
+ String getPrivateKeyHandle(in String alias);
+
+ // Remote calls for AndroidKeyStore - these functions are for remoting the
+ // calls from AndroidKeyStore using the handle provided by
+ // |getPrivateHandle|.
+ byte[] getRSAKeyModulus(in String handle);
+ byte[] getPrivateKeyEncodedBytes(in String handle);
+ byte[] getDSAKeyParamQ(in String handle);
+ byte[] getECKeyOrder(in String handle);
+ byte[] rawSignDigestWithPrivateKey(in String handle, in byte[] message);
+ int getPrivateKeyType(in String handle);
+ void releaseKey(in String handle);
+}

Powered by Google App Engine
This is Rietveld 408576698