This maybe helpfull -- Likely not. It's free, but not "open" and may not do
what you want anyway. SNACC for Java from www.alphaworks.ibm.com
http://www.alphaworks.ibm.com/formula.nsf/system/technologies/DB6B144E74CC28
8E88256563006D4C01?OpenDocument
License - You can use it, but don't distrubute it.
http://www.alphaworks.ibm.com/alphaw.nsf/system/htmlpages/alphaWorksLicenseA
greement
SNACC FOR JAVA by Andreas Schade and Thomas Eirich
A Java stub compiler for ASN.1 specifications
Snacc for Java is a Java stub compiler for ASN.1 specifications. It reads
ASN.1 specifications and generates a Java class per ASN.1 type definition.
These Java stub classes can be used to access, decode and, encode data
according to various ASN.1 encoding rules.
The generated Java classes act as mediators between the ASN.1 data and any
Java application that wishes to access ASN.1. All Java stub classes
implement the same Java interface ibm.asn1.ASN1Type which defines two
conceptual interfaces (access points) that are supported by each stub class:
a programming interface to be used by the Java application to access ASN.1
data, and
a decoding/encoding interface that can be used to read/write ASN.1 data
from/to a data stream
The decoding/encoding interface is independent of the particular ASN.1 type
definition for which the Java stub class has been generated. The abstract
base interface defines the two methods encode and decode which resemble the
encoding/decoding interface.
The programming interface depends on its corresponding ASN.1 type
definition. Snacc for Java distinguishes between six different sorts of
ASN.1 type definitions:
simple types,
SEQUENCE types,
SET types,
CHOICE types,
SET OF types, and
SEQUENCE OF types.
Redundant simple type definitions representing type aliases (without adding
additional tagging information) are not translated. For all other type
definitions, Java stub classes are automatically generated by Snacc for
Java. For SEQUENCE, SET, and CHOICE types these classes contain member
variables for each component. Java stubs for SET OF types inherit from
java.util.Hashtable, stubs for SEQUENCE OF types from
java.util.Vector.
Snacc for Java currently supports DER, BER and Indefinite BER encoding
rules. The generated Java classes use abstract classes for decoding and
encoding (com.ibm.asn1.ASN1Decoder, com.ibm.asn1.ASN1Encoder) and are,
hence, unaware of the particular encoding rules in use. The decision as to
which encoding rules are to be used depends on the Java application (i.e.
the user) which has to select one of concrete classes provided by the
run-time system.
Sean McEligot
[EMAIL PROTECTED]
http://www.smceligot.hostings.com
-----Original Message-----
From: Mark Benvenuto <[EMAIL PROTECTED]>
To: Classpath <[EMAIL PROTECTED]>
Date: Tuesday, March 23, 1999 3:46 PM
Subject: Need ASN.1, BER, and DER kit for Java
> I am coding some of the security classes and eventually I will need
>to work some of that back bone classes for DSA. The java.security
>specification requires everything to be stored in DER encoding which is
>a subset of ASN.1. If anybody knows where to find some software to do
>the conversions I would be happy and it would avoid duplicate effort.
>
>Mark Benvenuto