tools.codec.asn1
Class ASN1Show

java.lang.Object
  extended bytools.codec.asn1.ASN1Show

public class ASN1Show
extends Object

This is a small tool for decoding and printing ASN.1/DER encoded structures. It accepts the following command line options:

[-help]
Prints a help text.
-file file
The file to decode.
[-print]
Prints out the decoded ASN.1 structure.
[-BER]
Uses a BERDecoder for decoding instead of a DERDecoder.
[-class class]
Loads the class with the fully qualified name class and tries to decode an instance of this class from the DER stream read from the file specified by the file parameter.
[-out outfile]
Re-encodes the ASN.1 type read from file and writes the resulting DER stream to outfile.
The class passed in the class parameter must be a subclass of de.fhg.igd.codec.asn.ASN1Type.

Version:
"$Id: ASN1Show.java 1913 2007-08-08 02:41:53Z jpeters $"
Author:
Volker Roth

Field Summary
 String help_
           
static String OPT_DESCR
          The option descriptor for ArgsParser.
protected  ArgsParser p_
          The OptParser used for parsing command line options.
 
Constructor Summary
ASN1Show()
           
 
Method Summary
 void addOIDRegistries(String[] regs)
           
 void help()
           
static void main(String[] argv)
           
 void run()
           
 void run(String[] argv)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OPT_DESCR

public static final String OPT_DESCR
The option descriptor for ArgsParser.

See Also:
Constant Field Values

help_

public String help_

p_

protected ArgsParser p_
The OptParser used for parsing command line options.

Constructor Detail

ASN1Show

public ASN1Show()
Method Detail

help

public void help()

main

public static void main(String[] argv)

run

public void run(String[] argv)

addOIDRegistries

public void addOIDRegistries(String[] regs)
                      throws Exception
Throws:
Exception

run

public void run()
         throws Exception
Throws:
Exception


Copyright © Fraunhofer Gesellschaft. All Rights Reserved.