Changes between Version 6 and Version 7 of JavaSupport
- Timestamp:
- May 21, 2013 11:33:42 AM (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
JavaSupport
v6 v7 1 = Jabac = 1 2 2 3 [[TOC]] 3 4 4 ABAC Java API is supported via SWIG generated JNI 5 jabac is a native java implementation of libabac, based on the Jung graph libraries. It developed alongside the C libabac library, and the API is the same in general, but there are some differences in detail. Some calls take slightly different parameters and the whole thing takes more advantage of the java object framework. The jibrary has complete [http://abac.deterlab.net/javadoc/index.html javadocs on the site] as well as in the distribution. 5 6 6 == Documentation == 7 The java is distributed in the [http://abac.deterlab.net/src/abac-0.1.4.tar.gz main source distribution] and full sources are in [WikiStart#TrackingDevelopment the usual source code reops]. 7 8 8 * Main ABAC documentation still applies to Java as well as normal ABAC keystores and examples9 * Generated Java doc can be found at /swig/java/doc after installation of the [source:/swig/java@mei_rt2 Java subdirectory]10 9 11 Special Note: An explicit call to free context (free_context_now()) is needed to workaround a Java GC problem using libstrongswan in ABAC 10 == Installing from Source == 12 11 13 == Installation == 14 15 The Java code all lives in the [source:/swig/java@mei_rt2 Java subdirectory] of the main source tree. 16 17 === Just Compile === 12 Download the [http://abac.deterlab.net/src/abac-0.1.4.tar.gz main distribution] and [WikiStart#SoftwareDependencies install the java dependencies.] Those are a JVM and the ant build system. Everythine else is in the distribution. From there you can build the distribution: 18 13 19 14 {{{ 20 ant all 15 $ cd abac-0.1.4/java 16 $ ant all 21 17 }}} 22 18 23 === Other Compile Options === 19 That target creates the jabac jar file (in {{{build/jabac-1.4.jar}}}) and the java docs for users (in {{{doc}}}) and developers (in {{{dev-doc}}}). You can run regression tests using: 24 20 25 The following {{{ ant }}} targets are supported: 21 {{{ 22 $ ant regression-test 23 }}} 26 24 27 * {{{all}}}: clean then compile and make docs 28 * {{{compile}}}: build the library and test programs 29 * {{{run-setup}}}: run a simple test program in !SetupTest.java 30 * {{{run-test}}}: run a simple test program in !ProverTest.java(params in target) 31 * {{{jar}}}: build jabac.jar in build/jar/jabac.jar 32 * {{{doc}}}: generate API javadocs in ./doc 33 * {{{dev-doc}}} create developer API javadocs in ./dev-doc (includes package/private/protected functions) 34 * {{{clean}}}: remove created files (includes .der and .pem in this directory) 25 The regression tests (in {{{net/deterlab/abac/regression}}}) show jabac in action, as does the [CrudgeDocs crudge browser]. 26