Imported Upstream version 0.9.2
[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 //ACL
28 const char * OIC_RSRC_TYPE_SEC_ACL = "oic.sec.acl";
29 const char * OIC_RSRC_ACL_URI =  "/oic/sec/acl";
30 const char * OIC_JSON_ACL_NAME = "acl";
31
32 //Pstat
33 const char * OIC_RSRC_TYPE_SEC_PSTAT = "oic.sec.pstat";
34 const char * OIC_RSRC_PSTAT_URI =  "/oic/sec/pstat";
35 const char * OIC_JSON_PSTAT_NAME = "pstat";
36
37 //doxm
38 const char * OIC_RSRC_TYPE_SEC_DOXM = "oic.sec.doxm";
39 const char * OIC_RSRC_DOXM_URI =  "/oic/sec/doxm";
40 const char * OIC_JSON_DOXM_NAME = "doxm";
41
42 //cred
43 const char * OIC_RSRC_TYPE_SEC_CRED = "oic.sec.cred";
44 const char * OIC_RSRC_CRED_URI =  "/oic/sec/cred";
45 const char * OIC_JSON_CRED_NAME = "cred";
46
47 const char * OIC_JSON_SUBJECT_NAME = "sub";
48 const char * OIC_JSON_RESOURCES_NAME = "rsrc";
49 const char * OIC_JSON_PERMISSION_NAME = "perms";
50 const char * OIC_JSON_OWNERS_NAME = "ownrs";
51 const char * OIC_JSON_OWNER_NAME = "ownr";
52 const char * OIC_JSON_OWNED_NAME = "owned";
53 const char * OIC_JSON_OXM_NAME = "oxm";
54 const char * OIC_JSON_OXM_TYPE_NAME = "oxmtype";
55 const char * OIC_JSON_OXM_SEL_NAME = "oxmsel";
56 const char * OIC_JSON_DEVICE_ID_FORMAT_NAME = "dvcidfrmt";
57 const char * OIC_JSON_ISOP_NAME = "isop";
58 const char * OIC_JSON_COMMIT_HASH_NAME = "ch";
59 const char * OIC_JSON_DEVICE_ID_NAME = "deviceid";
60 const char * OIC_JSON_CM_NAME = "cm";
61 const char * OIC_JSON_TM_NAME = "tm";
62 const char * OIC_JSON_OM_NAME = "om";
63 const char * OIC_JSON_SM_NAME = "sm";
64 const char * OIC_JSON_CREDID_NAME = "credid";
65 const char * OIC_JSON_SUBJECTID_NAME = "subid";
66 const char * OIC_JSON_ROLEIDS_NAME = "roleid";
67 const char * OIC_JSON_CREDTYPE_NAME = "credtyp";
68 const char * OIC_JSON_PUBLICDATA_NAME = "pbdata";
69 const char * OIC_JSON_PRIVATEDATA_NAME = "pvdata";
70 const char * OIC_JSON_PERIOD_NAME = "period";
71
72 OicUuid_t WILDCARD_SUBJECT_ID = {"*"};
73 size_t WILDCARD_SUBJECT_ID_LEN = 1;
74 const char * WILDCARD_RESOURCE_URI = "*";
75
76 //Ownership Transfer Methods
77 const char * OXM_JUST_WORKS = "oic.sec.doxm.jw";
78 const char * OXM_MODE_SWITCH = "oic.sec.doxm.ms";
79 const char * OXM_RANDOM_DEVICE_PIN = "oic.sec.doxm.rdp";
80 const char * OXM_PRE_PROVISIONED_DEVICE_PIN = "oic.sec.doxm.ppdp";
81 const char * OXM_PRE_PROVISIONED_STRONG_CREDENTIAL = "oic.sec.doxm.ppsc";
82
83 const char * OIC_SEC_TRUE = "true";
84 const char * OIC_SEC_FALSE = "false";
85
86 const char * OIC_SEC_REST_QUERY_SEPARATOR = "&";
87 char OIC_SEC_REST_QUERY_DELIMETER = '=';