Merge "Merge branch 'master' into resource-manipulation" into resource-manipulation
[platform/upstream/iotivity.git] / resource / csdk / security / src / srmresourcestrings.c
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 #include <stdlib.h>
22 #include "securevirtualresourcetypes.h"
23
24 const char * SVR_DB_FILE_NAME = "oic_svr_db.json";
25 const char * OIC_MI_DEF = "oic.mi.def";
26
27 const char * OIC_RSRC_CORE_URI =  "/oic/res";
28 const char * OIC_RSRC_CORE_D_URI =  "/oic/res/d";
29 const char * OIC_RSRC_CORE_P_URI =  "/oic/p";
30 const char * OIC_RSRC_PRESENCE_URI =  "/oic/ad";
31 const char * OIC_RSRC_TYPES_D_URI =  "/oic/res/types/d";
32
33 //ACL
34 const char * OIC_RSRC_TYPE_SEC_ACL = "oic.sec.acl";
35 const char * OIC_RSRC_ACL_URI =  "/oic/sec/acl";
36 const char * OIC_JSON_ACL_NAME = "acl";
37
38 //Pstat
39 const char * OIC_RSRC_TYPE_SEC_PSTAT = "oic.sec.pstat";
40 const char * OIC_RSRC_PSTAT_URI =  "/oic/sec/pstat";
41 const char * OIC_JSON_PSTAT_NAME = "pstat";
42
43 //doxm
44 const char * OIC_RSRC_TYPE_SEC_DOXM = "oic.sec.doxm";
45 const char * OIC_RSRC_DOXM_URI =  "/oic/sec/doxm";
46 const char * OIC_JSON_DOXM_NAME = "doxm";
47
48 //cred
49 const char * OIC_RSRC_TYPE_SEC_CRED = "oic.sec.cred";
50 const char * OIC_RSRC_CRED_URI =  "/oic/sec/cred";
51 const char * OIC_JSON_CRED_NAME = "cred";
52
53 const char * OIC_JSON_SUBJECT_NAME = "sub";
54 const char * OIC_JSON_RESOURCES_NAME = "rsrc";
55 const char * OIC_JSON_PERMISSION_NAME = "perms";
56 const char * OIC_JSON_OWNERS_NAME = "ownrs";
57 const char * OIC_JSON_OWNER_NAME = "ownr";
58 const char * OIC_JSON_OWNED_NAME = "owned";
59 const char * OIC_JSON_OXM_NAME = "oxm";
60 const char * OIC_JSON_OXM_TYPE_NAME = "oxmtype";
61 const char * OIC_JSON_OXM_SEL_NAME = "oxmsel";
62 const char * OIC_JSON_DEVICE_ID_FORMAT_NAME = "dvcidfrmt";
63 const char * OIC_JSON_ISOP_NAME = "isop";
64 const char * OIC_JSON_COMMIT_HASH_NAME = "ch";
65 const char * OIC_JSON_DEVICE_ID_NAME = "deviceid";
66 const char * OIC_JSON_CM_NAME = "cm";
67 const char * OIC_JSON_TM_NAME = "tm";
68 const char * OIC_JSON_OM_NAME = "om";
69 const char * OIC_JSON_SM_NAME = "sm";
70 const char * OIC_JSON_CREDID_NAME = "credid";
71 const char * OIC_JSON_SUBJECTID_NAME = "subid";
72 const char * OIC_JSON_ROLEIDS_NAME = "roleid";
73 const char * OIC_JSON_CREDTYPE_NAME = "credtyp";
74 const char * OIC_JSON_PUBLICDATA_NAME = "pbdata";
75 const char * OIC_JSON_PRIVATEDATA_NAME = "pvdata";
76 const char * OIC_JSON_PERIOD_NAME = "period";
77
78 OicUuid_t WILDCARD_SUBJECT_ID = {"*"};
79 size_t WILDCARD_SUBJECT_ID_LEN = 1 ;
80
81 //Ownership Transfer Methods
82 const char * OXM_JUST_WORKS = "oic.sec.doxm.jw";
83 const char * OXM_MODE_SWITCH = "oic.sec.doxm.ms";
84 const char * OXM_RANDOM_DEVICE_PIN = "oic.sec.doxm.rdp";
85 const char * OXM_PRE_PROVISIONED_DEVICE_PIN = "oic.sec.doxm.ppdp";
86 const char * OXM_PRE_PROVISIONED_STRONG_CREDENTIAL = "oic.sec.doxm.ppsc";
87
88 const char * OIC_SEC_TRUE = "true";
89 const char * OIC_SEC_FALSE = "false";
90
91 const char * OIC_SEC_REST_QUERY_SEPARATOR = "&";
92 char OIC_SEC_REST_QUERY_DELIMETER = '=';