commiting uncommited changes on live site
[weblabels.fsf.org.git] / crm.fsf.org / 20131203 / files / sites / all / modules-old / civicrm / vendor / civicrm / civicrm-cxn-rpc / src / AppStore / AppStoreInterface.php
1 <?php
2
3 /*
4 * This file is part of the civicrm-cxn-rpc package.
5 *
6 * Copyright (c) CiviCRM LLC <info@civicrm.org>
7 *
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this package.
10 */
11
12 namespace Civi\Cxn\Rpc\AppStore;
13
14 use Civi\Cxn\Rpc\AppMeta;
15
16 interface AppStoreInterface {
17
18 /**
19 * @return array
20 * List of App IDs.
21 */
22 public function getAppIds();
23
24 /**
25 * @param string $appId
26 * The application's globally unique ID.
27 * @return array
28 * The application metadata.
29 * @see AppMeta
30 */
31 public function getAppMeta($appId);
32
33 /**
34 * @param string $appId
35 * The application's globally unique ID.
36 * @return string
37 * PEM-encoded.
38 */
39 public function getPublicKey($appId);
40
41 /**
42 * @param string $appId
43 * The application's globally unique ID.
44 * @return string
45 * PEM-encoded.
46 */
47 public function getPrivateKey($appId);
48
49 /**
50 * @param string $appId
51 * The application's globally unique ID.
52 * @return array
53 * Array with elements:
54 * - publickey: string, pem.
55 * - privatekey: string, pem
56 */
57 public function getKeyPair($appId);
58 }