|
XCMS Toolkit | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectschemajic.codec.DumpASN1
public class DumpASN1
Runs Peter Gutmann's dumpasn1 tool if it is in the operating system's executable/binary path.
| 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 |
|---|
public DumpASN1()
| Method Detail |
|---|
public java.lang.String dump(java.io.File file)
throws java.io.IOException
file -
java.io.IOException
public java.lang.String dump(byte[] encoding)
throws java.io.IOException
encoding - the BER or DER encoding of an ASN.1 value
java.io.IOExceptionpublic void setShowHex(boolean on)
on - a boolean switch to turn hexadecimal display on or offpublic static void main(java.lang.String[] args)
args - command line arguments the the dumpasn1 program
|
XCMS Toolkit | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||