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