Imported Upstream version 1.2.0
[platform/upstream/iotivity.git] / resource / csdk / security / include / internal / srmresourcestrings.h
1 //******************************************************************
2 //
3 // Copyright 2015 Intel Mobile Communications GmbH All Rights Reserved.
4 //
5 //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
6 //
7 // Licensed under the Apache License, Version 2.0 (the "License");
8 // you may not use this file except in compliance with the License.
9 // You may obtain a copy of the License at
10 //
11 //      http://www.apache.org/licenses/LICENSE-2.0
12 //
13 // Unless required by applicable law or agreed to in writing, software
14 // distributed under the License is distributed on an "AS IS" BASIS,
15 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 // See the License for the specific language governing permissions and
17 // limitations under the License.
18 //
19 //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
20
21 #ifndef IOTVT_SRM_RSRC_STRINGS_H
22 #define IOTVT_SRM_RSRC_STRINGS_H
23
24 #include "securevirtualresourcetypes.h"
25
26 #ifdef __cplusplus
27 extern "C" {
28 #endif
29
30 extern const char * SVR_DB_FILE_NAME;
31 extern const char * SVR_DB_DAT_FILE_NAME;
32
33 //AMACL
34 extern const char * OIC_RSRC_TYPE_SEC_AMACL;
35 extern const char * OIC_RSRC_AMACL_URI;
36 extern const char * OIC_JSON_AMACL_NAME;
37
38 //ACL
39 extern const char * OIC_RSRC_TYPE_SEC_ACL;
40 extern const char * OIC_RSRC_ACL_URI;
41 extern const char * OIC_JSON_ACL_NAME;
42 extern const char * OIC_JSON_ACLIST_NAME;
43 extern const char * OIC_JSON_ACES_NAME;
44
45 //PSTAT
46 extern const char * OIC_RSRC_TYPE_SEC_PSTAT;
47 extern const char * OIC_RSRC_PSTAT_URI;
48 extern const char * OIC_JSON_PSTAT_NAME;
49
50
51 //DOXM
52 extern const char * OIC_RSRC_TYPE_SEC_DOXM;
53 extern const char * OIC_RSRC_DOXM_URI;
54 extern const char * OIC_JSON_DOXM_NAME;
55
56 //cred
57 extern const char * OIC_RSRC_TYPE_SEC_CRED;
58 extern const char * OIC_RSRC_CRED_URI;
59 extern const char * OIC_JSON_CRED_NAME;
60 extern const char * OIC_JSON_CREDS_NAME;
61
62 //CRL
63 extern const char * OIC_RSRC_TYPE_SEC_CRL;
64 extern const char * OIC_RSRC_CRL_URI;
65 extern const char * OIC_JSON_CRL_NAME;
66
67 //SACL
68 extern const char * OIC_RSRC_TYPE_SEC_SACL;
69 extern const char * OIC_RSRC_SACL_URI;
70 extern const char * OIC_JSON_SACL_NAME;
71
72 //SVC
73 extern const char * OIC_RSRC_TYPE_SEC_SVC;
74 extern const char * OIC_RSRC_SVC_URI;
75 extern const char * OIC_JSON_SVC_NAME;
76
77 //PCONF
78 extern const char * OIC_RSRC_TYPE_SEC_PCONF;
79 extern const char * OIC_RSRC_PCONF_URI;
80 extern const char * OIC_JSON_PCONF_NAME;
81
82 //DPAIRING
83 extern const char * OIC_RSRC_TYPE_SEC_DPAIRING;
84 extern const char * OIC_RSRC_DPAIRING_URI;
85 extern const char * OIC_JSON_DPAIRING_NAME;
86
87 //version
88 extern const char * OIC_RSRC_TYPE_SEC_VER;
89 extern const char * OIC_RSRC_VER_URI;
90 extern const char * OIC_JSON_VER_NAME;
91
92 //reset profile
93 extern const char * OIC_JSON_RESET_PF_NAME;
94
95 extern const char * OIC_JSON_SUBJECT_NAME;
96 extern const char * OIC_JSON_SUBJECTID_NAME;
97 extern const char * OIC_JSON_RESOURCES_NAME;
98 extern const char * OIC_JSON_AMSS_NAME;
99 extern const char * OIC_JSON_AMS_NAME;
100 extern const char * OIC_JSON_PERMISSION_NAME;
101 extern const char * OIC_JSON_OWNERS_NAME;
102 extern const char * OIC_JSON_OWNER_NAME;
103 extern const char * OIC_JSON_DEVOWNERID_NAME;
104 #ifdef _ENABLE_MULTIPLE_OWNER_
105 extern const char * OIC_JSON_SUBOWNERID_NAME;
106 #endif //_ENABLE_MULTIPLE_OWNER_
107 extern const char * OIC_JSON_OWNED_NAME;
108 extern const char * OIC_JSON_OXM_NAME;
109 extern const char * OIC_JSON_OXMS_NAME;
110 #ifdef _ENABLE_MULTIPLE_OWNER_
111 extern const char * OIC_JSON_MOM_NAME;
112 #endif //_ENABLE_MULTIPLE_OWNER_
113 extern const char * OIC_JSON_OXM_TYPE_NAME;
114 extern const char * OIC_JSON_OXM_SEL_NAME;
115 extern const char * OIC_JSON_DEVICE_ID_FORMAT_NAME;
116 extern const char * OIC_JSON_CREDID_NAME;
117 extern const char * OIC_JSON_ROLEIDS_NAME;
118 extern const char * OIC_JSON_CREDTYPE_NAME;
119 extern const char * OIC_JSON_PUBLICDATA_NAME;
120 extern const char * OIC_JSON_PRIVATEDATA_NAME;
121 extern const char * OIC_JSON_PUBDATA_NAME;
122 extern const char * OIC_JSON_PRIVDATA_NAME;
123 extern const char * OIC_JSON_OPTDATA_NAME;
124 extern const char * OIC_JSON_CREDUSAGE_NAME;
125 extern const char * OIC_JSON_CRMS_NAME;
126 extern const char * OIC_JSON_VALIDITY_NAME;
127 extern const char * OIC_JSON_PERIOD_NAME;
128 extern const char * OIC_JSON_PERIODS_NAME;
129 extern const char * OIC_JSON_RECURRENCES_NAME;
130 extern const char * OIC_JSON_ISOP_NAME;
131 extern const char * OIC_JSON_COMMIT_HASH_NAME;
132 extern const char * OIC_JSON_DEVICE_ID_NAME;
133 extern const char * OIC_JSON_CM_NAME;
134 extern const char * OIC_JSON_TM_NAME;
135 extern const char * OIC_JSON_OM_NAME;
136 extern const char * OIC_JSON_SM_NAME;
137 extern const char * OIC_JSON_SERVICE_DEVICE_ID;
138 extern const char * OIC_JSON_SERVICE_TYPE;
139 extern const char * OIC_JSON_SUPPORTED_CRED_TYPE_NAME;
140 extern const char * OIC_JSON_DPC_NAME;
141 extern const char * OIC_JSON_EDP_NAME;
142 extern const char * OIC_JSON_PIN_NAME;
143 extern const char * OIC_JSON_PDACL_NAME;
144 extern const char * OIC_JSON_PDDEV_LIST_NAME;
145 extern const char * OIC_JSON_ROWNER_NAME;
146 extern const char * OIC_JSON_PRM_NAME;
147 extern const char * OIC_JSON_SPM_NAME;
148 extern const char * OIC_JSON_PDEVICE_ID_NAME;
149 extern const char * OIC_JSON_RLIST_NAME;
150 extern const char * OIC_JSON_HREF_NAME;
151 extern const char * OIC_JSON_REL_NAME;
152 extern const char * OIC_JSON_RT_NAME;
153 extern const char * OIC_JSON_IF_NAME;
154 extern const char * OIC_JSON_ROWNERID_NAME;
155 #ifdef _ENABLE_MULTIPLE_OWNER_
156 extern const char * OIC_JSON_EOWNERID_NAME;
157 #endif //_ENABLE_MULTIPLE_OWNER_
158 extern const char * OIC_JSON_ENCODING_NAME;
159 extern const char * OIC_JSON_DATA_NAME;
160 extern const char * OIC_JSON_SEC_V_NAME;
161
162 extern const char * OIC_JSON_EMPTY_STRING;
163
164 extern const char * TRUST_CA;
165 extern const char * PRIMARY_CERT;
166
167 extern OicUuid_t WILDCARD_SUBJECT_ID;
168 extern OicUuid_t WILDCARD_SUBJECT_B64_ID;
169 extern size_t WILDCARD_SUBJECT_ID_LEN;
170 extern const char * WILDCARD_RESOURCE_URI;
171
172 //Ownership Transfer Methods
173 extern const char * OXM_JUST_WORKS;
174 extern const char * OXM_RANDOM_DEVICE_PIN;
175 extern const char * OXM_MANUFACTURER_CERTIFICATE;
176 #ifdef _ENABLE_MULTIPLE_OWNER_
177 extern const char * OXM_PRECONF_PIN;
178 #endif //_ENABLE_MULTIPLE_OWNER_
179
180 extern const char * OIC_SEC_ENCODING_BASE64;
181 extern const char * OIC_SEC_ENCODING_RAW;
182 extern const char * OIC_SEC_ENCODING_PEM;
183 extern const char * OIC_SEC_ENCODING_DER;
184
185 extern const char * OIC_SEC_TRUE;
186 extern const char * OIC_SEC_FALSE;
187
188 extern const char * OIC_SEC_REST_QUERY_SEPARATOR;
189 extern char OIC_SEC_REST_QUERY_DELIMETER;
190
191 //Security Version
192 extern const char * DEFAULT_SEC_VERSION;
193
194 #ifdef __cplusplus
195 }
196 #endif
197
198 #endif //IOTVT_SRM_RSRC_STRINGS_H
199