Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a free package for reading, manipulating and writing ASN.1 in Java?

Is there a free package for reading, manipulating and writing ASN.1 in Java?

It must be:

  1. Free
  2. Lightweight
  3. Self-contained (without external dependencies on, e.g. Apache commons)
  4. Java 5 (not Java 6), and Java 4 is preferred.
like image 423
Lawrence Dol Avatar asked May 01 '09 20:05

Lawrence Dol


2 Answers

The following project looks promising:

http://www.chaosinmotion.com/wiki/index.php?title=ASN.1_Library

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.

like image 183
Lawrence Dol Avatar answered Nov 15 '22 21:11

Lawrence Dol


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.

like image 28
erickson Avatar answered Nov 15 '22 21:11

erickson