Added "GetSvrTypeFromUri()" and supporting code.
[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 extern const char * SVR_DB_FILE_NAME;
27 extern const char * SVR_DB_DAT_FILE_NAME;
28 extern const char * OIC_MI_DEF;
29
30 //AMACL
31 extern const char * OIC_RSRC_TYPE_SEC_AMACL;
32 extern const char * OIC_RSRC_AMACL_URI;
33 extern const char * OIC_JSON_AMACL_NAME;
34
35 //ACL
36 extern const char * OIC_RSRC_TYPE_SEC_ACL;
37 extern const char * OIC_RSRC_ACL_URI;
38 extern const char * OIC_JSON_ACL_NAME;
39
40 //PSTAT
41 extern const char * OIC_RSRC_TYPE_SEC_PSTAT;
42 extern const char * OIC_RSRC_PSTAT_URI;
43 extern const char * OIC_JSON_PSTAT_NAME;
44
45
46 //DOXM
47 extern const char * OIC_RSRC_TYPE_SEC_DOXM;
48 extern const char * OIC_RSRC_DOXM_URI;
49 extern const char * OIC_JSON_DOXM_NAME;
50
51 //cred
52 extern const char * OIC_RSRC_TYPE_SEC_CRED;
53 extern const char * OIC_RSRC_CRED_URI;
54 extern const char * OIC_JSON_CRED_NAME;
55
56 //CRL
57 extern const char * OIC_RSRC_TYPE_SEC_CRL;
58 extern const char * OIC_RSRC_CRL_URI;
59 extern const char * OIC_JSON_CRL_NAME;
60
61 //SACL
62 extern const char * OIC_RSRC_TYPE_SEC_SACL;
63 extern const char * OIC_RSRC_SACL_URI;
64 extern const char * OIC_JSON_SACL_NAME;
65
66 //SVC
67 extern const char * OIC_RSRC_TYPE_SEC_SVC;
68 extern const char * OIC_RSRC_SVC_URI;
69 extern const char * OIC_JSON_SVC_NAME;
70
71 //PCONF
72 extern const char * OIC_RSRC_TYPE_SEC_PCONF;
73 extern const char * OIC_RSRC_PCONF_URI;
74 extern const char * OIC_JSON_PCONF_NAME;
75
76 //DPAIRING
77 extern const char * OIC_RSRC_TYPE_SEC_DPAIRING;
78 extern const char * OIC_RSRC_DPAIRING_URI;
79 extern const char * OIC_JSON_DPAIRING_NAME;
80
81 extern const char * OIC_JSON_SUBJECT_NAME;
82 extern const char * OIC_JSON_RESOURCES_NAME;
83 extern const char * OIC_JSON_AMSS_NAME;
84 extern const char * OIC_JSON_PERMISSION_NAME;
85 extern const char * OIC_JSON_OWNERS_NAME;
86 extern const char * OIC_JSON_OWNER_NAME;
87 extern const char * OIC_JSON_OWNED_NAME;
88 extern const char * OIC_JSON_OXM_NAME;
89 extern const char * OIC_JSON_OXM_TYPE_NAME;
90 extern const char * OIC_JSON_OXM_SEL_NAME;
91 extern const char * OIC_JSON_DEVICE_ID_FORMAT_NAME;
92 extern const char * OIC_JSON_CREDID_NAME;
93 extern const char * OIC_JSON_ROLEIDS_NAME;
94 extern const char * OIC_JSON_CREDTYPE_NAME;
95 extern const char * OIC_JSON_PUBLICDATA_NAME;
96 extern const char * OIC_JSON_PRIVATEDATA_NAME;
97 extern const char * OIC_JSON_PERIOD_NAME;
98 extern const char * OIC_JSON_PERIODS_NAME;
99 extern const char * OIC_JSON_RECURRENCES_NAME;
100 extern const char * OIC_JSON_ISOP_NAME;
101 extern const char * OIC_JSON_COMMIT_HASH_NAME;
102 extern const char * OIC_JSON_DEVICE_ID_NAME;
103 extern const char * OIC_JSON_CM_NAME;
104 extern const char * OIC_JSON_TM_NAME;
105 extern const char * OIC_JSON_OM_NAME;
106 extern const char * OIC_JSON_SM_NAME;
107 extern const char * OIC_JSON_SERVICE_DEVICE_ID;
108 extern const char * OIC_JSON_SERVICE_TYPE;
109 extern const char * OIC_JSON_SUPPORTED_CRED_TYPE_NAME;
110 extern const char * OIC_JSON_DPC_NAME;
111 extern const char * OIC_JSON_EDP_NAME;
112 extern const char * OIC_JSON_PIN_NAME;
113 extern const char * OIC_JSON_PDACL_NAME;
114 extern const char * OIC_JSON_PDDEV_LIST_NAME;
115 extern const char * OIC_JSON_ROWNER_NAME;
116 extern const char * OIC_JSON_PRM_NAME;
117 extern const char * OIC_JSON_SPM_NAME;
118 extern const char * OIC_JSON_PDEVICE_ID_NAME;
119
120 extern OicUuid_t WILDCARD_SUBJECT_ID;
121 extern OicUuid_t WILDCARD_SUBJECT_B64_ID;
122 extern size_t WILDCARD_SUBJECT_ID_LEN;
123 extern const char * WILDCARD_RESOURCE_URI;
124
125 //Ownership Transfer Methods
126 extern const char * OXM_JUST_WORKS;
127 extern const char * OXM_RANDOM_DEVICE_PIN;
128 extern const char * OXM_MANUFACTURER_CERTIFICATE;
129
130 extern const char * OIC_SEC_TRUE;
131 extern const char * OIC_SEC_FALSE;
132
133 extern const char * OIC_SEC_REST_QUERY_SEPARATOR;
134 extern char OIC_SEC_REST_QUERY_DELIMETER;
135
136 #endif //IOTVT_SRM_RSRC_STRINGS_H
137