Is there a free package for reading, manipulating and writing ASN.1 in Java?
It must be:
- Free
- Lightweight
- Self-contained (without external dependencies on, e.g. Apache commons)
- Java 5 (not Java 6), and Java 4 is preferred.
Is there a free package for reading, manipulating and writing ASN.1 in Java?
It must be:
The free BouncyCastle library provides low-level ASN.1 parsing. You don't need to install BC as a provider to use the ASN.1 capabilities. It has different versions for 1.4 and up. It has no external dependencies. As the default bundle contains all of the BC provider classes, you may want to repackage it if you want something more compact.
The following project looks promising:
http://www.chaosinmotion.com/asn1.m
It is provided under a liberal BSD-style licence.
It is small, 41 classes compiling to 55KiB.
It compiled clean with no dependencies to Java 3.