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>