1 /* |
|
2 * Copyright (c) 2007-2008 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of the License "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: Models trust information |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 #ifndef _CTRUSTINFO_H_ |
|
25 #define _CTRUSTINFO_H_ |
|
26 |
|
27 #include <rtsecmgrcommondef.h> |
|
28 |
|
29 /** |
|
30 * CTrustInfo models trust data structure. |
|
31 * |
|
32 * The runtime security manager evaluates trustedness of a |
|
33 * runtime content/script/executable based on the trust information |
|
34 * passed by runtimes. The definition of this type is currently |
|
35 * incomplete, with state information such as |
|
36 * |
|
37 * - Origin of the script |
|
38 * - Certificate chain of the signed trusted contents |
|
39 * |
|
40 * @lib rtsecmgrclient.lib |
|
41 */ |
|
42 NONSHARABLE_CLASS(CTrustInfo) : public CBase |
|
43 { |
|
44 public: |
|
45 /** |
|
46 * Two-phased constructor |
|
47 * |
|
48 * Constructs a CTrustInfo instance |
|
49 * |
|
50 * @return pointer to an instance of CTrustInfo |
|
51 */ |
|
52 IMPORT_C static CTrustInfo* NewL(); |
|
53 |
|
54 /** |
|
55 * Two-phased constructor |
|
56 * |
|
57 * Constructs a CTrustInfo instance and leaves the created instance |
|
58 * on the cleanupstack |
|
59 * |
|
60 * @return pointer to an instance of CTrustInfo |
|
61 */ |
|
62 IMPORT_C static CTrustInfo* NewLC(); |
|
63 |
|
64 /** |
|
65 * Destructor |
|
66 * |
|
67 */ |
|
68 IMPORT_C ~CTrustInfo(); |
|
69 private: |
|
70 /* |
|
71 * Default private constructor |
|
72 */ |
|
73 CTrustInfo(); |
|
74 }; |
|
75 |
|
76 #endif //_CTRUSTINFO_H_ |
|
77 |
|
78 // End of file |
|