OLD | NEW |
(Empty) | |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 package org.chromium.net; |
| 6 |
| 7 /** |
| 8 * Interface for communication with an Android KeyStore in another process. |
| 9 */ |
| 10 interface IAndroidKeyStoreRemote { |
| 11 // Remote calls for SSlClientCertificateRequest - these allow retrieving |
| 12 // the alias of the certificate to be used and its encoded chain. |
| 13 String getClientCertificateAlias(); |
| 14 byte[] getEncodedCertificateChain(in String alias); |
| 15 String getPrivateKeyHandle(in String alias); |
| 16 |
| 17 // Remote calls for AndroidKeyStore - these functions are for remoting the |
| 18 // calls from AndroidKeyStore using the handle provided by |
| 19 // |getPrivateHandle|. |
| 20 byte[] getRSAKeyModulus(in String handle); |
| 21 byte[] getPrivateKeyEncodedBytes(in String handle); |
| 22 byte[] getDSAKeyParamQ(in String handle); |
| 23 byte[] getECKeyOrder(in String handle); |
| 24 byte[] rawSignDigestWithPrivateKey(in String handle, in byte[] message); |
| 25 int getPrivateKeyType(in String handle); |
| 26 void releaseKey(in String handle); |
| 27 } |
OLD | NEW |