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

Unified Diff: net/android/java/src/org/chromium/net/IRemoteAndroidKeyStore.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: rebase 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/IRemoteAndroidKeyStore.aidl
diff --git a/net/android/java/src/org/chromium/net/IRemoteAndroidKeyStore.aidl b/net/android/java/src/org/chromium/net/IRemoteAndroidKeyStore.aidl
new file mode 100644
index 0000000000000000000000000000000000000000..ee4c65d743eb647342a9823f97da99c8722be6c3
--- /dev/null
+++ b/net/android/java/src/org/chromium/net/IRemoteAndroidKeyStore.aidl
@@ -0,0 +1,33 @@
+// 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;
+
+import org.chromium.net.IRemoteAndroidKeyStoreCallbacks;
+
+/**
+ * Interface for communication with an Android KeyStore in another process.
+ */
+interface IRemoteAndroidKeyStore {
+ // Remote calls for SSlClientCertificateRequest - these allow retrieving
+ // the alias of the certificate to be used, its encoded chain and a handle
+ // for identifying a private key in the remote process.
+ String getClientCertificateAlias();
+ byte[] getEncodedCertificateChain(in String alias);
+ int getPrivateKeyHandle(in String alias);
+
+ // Registers callbacks for service->client communication.
+ void setClientCallbacks(IRemoteAndroidKeyStoreCallbacks callbacks);
+
+ // Remote calls for AndroidKeyStore - these functions are performing operations
+ // with a PrivateKey in the remote process using the handle provided by
+ // |getPrivateKeyHandle|.
+ byte[] getRSAKeyModulus(in int handle);
+ byte[] getPrivateKeyEncodedBytes(in int handle);
+ byte[] getDSAKeyParamQ(in int handle);
+ byte[] getECKeyOrder(in int handle);
+ byte[] rawSignDigestWithPrivateKey(in int handle, in byte[] message);
+ int getPrivateKeyType(in int handle);
+ void releaseKey(in int handle);
+}

Powered by Google App Engine
This is Rietveld 408576698