2 * //******************************************************************
4 * // Copyright 2016 Samsung Electronics All Rights Reserved.
6 * //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
8 * // Licensed under the Apache License, Version 2.0 (the "License");
9 * // you may not use this file except in compliance with the License.
10 * // You may obtain a copy of the License at
12 * // http://www.apache.org/licenses/LICENSE-2.0
14 * // Unless required by applicable law or agreed to in writing, software
15 * // distributed under the License is distributed on an "AS IS" BASIS,
16 * // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 * // See the License for the specific language governing permissions and
18 * // limitations under the License.
20 * //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
22 package org.iotivity.cloud.ciserver;
24 import org.iotivity.cloud.base.OICConstants;
26 public class Constants extends OICConstants {
28 public static final int MIN_TO_LIVE = 10;
30 public static final String USER_ID = "uid";
31 public static final String DEVICE_ID = "di";
32 public static final String PRESENCE_STATE = "state";
34 public static final String REQ_LOGIN = "login";
36 public static final String ACCESS_TOKEN = "accesstoken";
37 public static final String REFRESH_TOKEN = "refreshtoken";
38 public static final String AUTH_CODE = "authcode";
39 public static final String AUTH_PROVIDER = "authprovider";
40 public static final String EXPIRES_IN = "expiresin";
42 public static final String REQ_GROUP_MASTER_ID = "gmid";
43 public static final String REQ_MEMBER_ID = "mid";
44 public static final String REQ_MEMBER_LIST = "midlist";
45 public static final String REQ_DEVICE_ID = "di";
46 public static final String REQ_DEVICE_LIST = "dilist";
47 public static final String REQ_INVITE = "invite";
48 public static final String REQ_PING_ARRAY = "inarray";
49 public static final String REQ_PING = "in";
50 public static final String REQ_SEARCH_USER_ID = "sid";
51 public static final String REQ_REQUEST_METHOD = "rm";
52 public static final String REQ_REQUEST_URI = "uri";
54 public static final String REQ_GROUP_DEVICES = "devices";
56 public static final String RESP_GRANT_POLICY = "gp";
57 public static final String RESP_ACL_ALLOWED = "Allowed";
58 public static final String RESP_ACL_DENIED = "Denied";
60 public static final String REQ_LINKS = "links";
61 public static final String REQ_HREF = "href";
62 public static final String REQ_CRL = "crl";
64 public static final String KEYFIELD_GROUPS = "groups";
65 public static final String KEYFIELD_DEVICES = "devices";