[IOT-2538] Add NONSECURE to the ResourceProperty
authorGeorge Nash <george.nash@intel.com>
Mon, 24 Jul 2017 20:02:50 +0000 (13:02 -0700)
committerRick Bell <richard.s.bell@intel.com>
Wed, 26 Jul 2017 18:27:20 +0000 (18:27 +0000)
This matches the OCResourceProperty value OC_NONSECURE
from octypes.h.

Bug: https://jira.iotivity.org/browse/IOT-2538
Change-Id: I9e536dbb4c3db5c8be9f219a8b95df1176859138
Signed-off-by: George Nash <george.nash@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/21605
Tested-by: jenkins-iotivity <jenkins@iotivity.org>
Reviewed-by: Larry Sachs <larry.j.sachs@intel.com>
Reviewed-by: Rick Bell <richard.s.bell@intel.com>
java/common/src/main/java/org/iotivity/base/ResourceProperty.java

index b259014..e6ade14 100644 (file)
@@ -60,7 +60,11 @@ public enum ResourceProperty {
      * if discovery request contains an explicit querystring.
      * Ex: GET /oic/res?rt=oic.sec.acl
      */
-    EXPLICIT_DISCOVERABLE(1 << 5);
+    EXPLICIT_DISCOVERABLE(1 << 5),
+    /**
+     * When this bit is set, the resource supports access via non-secure endpoints.
+     */
+    NONSECURE(1 << 6);
 
     private int value;