wiki:JavaSupport

Version 4 (modified by Mei, 12 years ago) (diff)

--

ABAC Java API is supported via JNI generated with SWIG.

Documentation

Main ABAC documentation still applies to Java as well as normal ABAC keystores and examples. Generated Java doc can be found here after installation of the Java subdirectory

Installation

The Java code all lives in the Java subdirectory of the main source tree.

Just Compile

ant all

Other Compile Options

The following ant targets are supported:

  • all: clean then compile and make docs
  • compile: build the library and test programs
  • run-setup: run a simple test program in SetupTest.java
  • run-test: run a simple test program in ProverTest.java(params in target)
  • jar: build jabac.jar in build/jar/jabac.jar
  • doc: generate API javadocs in ./doc
  • dev-doc create developer API javadocs in ./dev-doc (includes package/private/protected functions)
  • clean: remove created files (includes .der and .pem in this directory)