XCMS Toolkit

schemajic.codec
Class DumpASN1

java.lang.Object
  extended by schemajic.codec.DumpASN1

public class DumpASN1
extends java.lang.Object

Runs Peter Gutmann's dumpasn1 tool if it is in the operating system's executable/binary path.

Version:
1.00 - 2006/02/12
Author:
support@phillipgriffin.com

Constructor Summary
DumpASN1()
           
 
Method Summary
 java.lang.String dump(byte[] encoding)
          Writes an ASN.1 encoding to a temporary file, executes the dumpasn1 program on this file, and returns the program output listing.
 java.lang.String dump(java.io.File file)
          TODO NEED DESCRIPTION HERE
static void main(java.lang.String[] args)
          Main allows this class to be run as an application from the command line.
 void setShowHex(boolean on)
          Switches hexadecimal display on or off.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DumpASN1

public DumpASN1()
Method Detail

dump

public java.lang.String dump(java.io.File file)
                      throws java.io.IOException
TODO NEED DESCRIPTION HERE

Parameters:
file -
Returns:
a buffer
Throws:
java.io.IOException

dump

public java.lang.String dump(byte[] encoding)
                      throws java.io.IOException
Writes an ASN.1 encoding to a temporary file, executes the dumpasn1 program on this file, and returns the program output listing.

Parameters:
encoding - the BER or DER encoding of an ASN.1 value
Returns:
output from the dumpasn1 program
Throws:
java.io.IOException

setShowHex

public void setShowHex(boolean on)
Switches hexadecimal display on or off.

Parameters:
on - a boolean switch to turn hexadecimal display on or off

main

public static void main(java.lang.String[] args)
Main allows this class to be run as an application from the command line.

Parameters:
args - command line arguments the the dumpasn1 program

XCMS Toolkit


Copyright © 2005-2006 GRIFFIN Consulting. All Rights Reserved.