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); |
+} |