Add ACLs to java SimpleService so examples run when SECURED=1
authorGeorge Nash <george.nash@intel.com>
Fri, 13 Jan 2017 00:54:58 +0000 (16:54 -0800)
committerRick Bell <richard.s.bell@intel.com>
Fri, 20 Jan 2017 17:26:11 +0000 (17:26 +0000)
commit472fbac69a762a9e2ddd0a396aec0ae58cfbaef9
treeee0cb7ed83d5750edf47de06f073028625e3b79f
parent659957b980674d08ffe8f5ecce1d49d811ed6c20
Add ACLs to java SimpleService so examples run when SECURED=1

The ModeType in SimpleClient is changed to CLIENT_SERVER
This is a work around for IOT-693

the ioc_svr_db_server ACL file is a copy of the ACL file from
resource/examples.

The example will run against the simpleservice simpleclient in
resource.

Build:
scons BUILD_JAVA=1

Run examples:
export LD_LIBRARY_PATH=<iotivity>/out/linux/x86_64/release/

java -cp java/examples-java/simpleserver/build/libs/simpleserver.jar:\
java/iotivity-linux/build/libs/iotivity-linux.jar \
org.iotivity.base.examples.SimpleServer

java -cp java/examples-java/simpleclient/build/libs/simpleclient.jar:\
java/iotivity-linux/build/libiotivity-linux.jar \
org.iotivity.base.examples.SimpleClient

Change-Id: I56b627a5edfac823934b5966a06e4bbd8ac561e2
Signed-off-by: George Nash <george.nash@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/16363
Reviewed-by: Phil Coval <philippe.coval@osg.samsung.com>
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/SConscript
java/examples-java/simpleclient/src/main/java/org/iotivity/base/examples/SimpleClient.java
java/examples-java/simpleserver/src/main/assets/oic_svr_db_server.dat [new file with mode: 0644]
java/examples-java/simpleserver/src/main/assets/oic_svr_db_server.json [changed mode: 0755->0644]
java/examples-java/simpleserver/src/main/java/org/iotivity/base/examples/SimpleServer.java