Merge pull request #33 from cconlon/exampleREADME
Update README/README_JCE with notes about examplespull/36/head
commit
e575891b96
|
@ -128,6 +128,13 @@ the root wolfcrypt-jni directory. The test source code is located at:
|
||||||
|
|
||||||
`wolfcrypt-jni/src/test/com/wolfssl/wolfcrypt`
|
`wolfcrypt-jni/src/test/com/wolfssl/wolfcrypt`
|
||||||
|
|
||||||
|
JCE-specific examples can be found in the `examples/provider` sub-directory.
|
||||||
|
These examples will only be compiled with either `ant build-jce-debug` or
|
||||||
|
`ant build-jce-release` are used. Since these are JCE/provider-only examples,
|
||||||
|
they are not built for JNI-only builds (`ant build-jni-debug/release`).
|
||||||
|
|
||||||
|
For more details, see the [README_JCE.md](./README_JCE.md).
|
||||||
|
|
||||||
### JAR Code Signing
|
### JAR Code Signing
|
||||||
---------
|
---------
|
||||||
|
|
||||||
|
|
|
@ -71,9 +71,31 @@ The JCE provider currently supports the following algorithms:
|
||||||
### Example / Test Code
|
### Example / Test Code
|
||||||
---------
|
---------
|
||||||
|
|
||||||
Example code will be added in the near future. JUnit test code is located
|
JUnit test code can act as a good usage reference, and is located under the
|
||||||
under the "./src/test/java/com/wolfssl/provider/jce/test/" directory for
|
`./src/test/java/com/wolfssl/provider/jce/test/` directory for each wolfJCE
|
||||||
each wolfJCE engine class.
|
engine class.
|
||||||
|
|
||||||
|
There are some JCE examples located under the `examples/provider` directory,
|
||||||
|
including:
|
||||||
|
|
||||||
|
**ProviderTest**
|
||||||
|
|
||||||
|
This is an example that prints out all Security providers that are registered
|
||||||
|
in the system. It then programatically registers wolfJCE as the highest-level
|
||||||
|
provider and prints out the list again.
|
||||||
|
|
||||||
|
This example will be built when using the following ant targets:
|
||||||
|
|
||||||
|
```
|
||||||
|
$ ant build-jce-debug
|
||||||
|
$ ant build-jce-release
|
||||||
|
```
|
||||||
|
|
||||||
|
The example can then be run using:
|
||||||
|
|
||||||
|
```
|
||||||
|
$ ./examples/provider/ProviderTest.sh
|
||||||
|
```
|
||||||
|
|
||||||
### JAR Code Signing
|
### JAR Code Signing
|
||||||
---------
|
---------
|
||||||
|
|
Loading…
Reference in New Issue