public class DER extends BaseCoder
Portions of this class's code are ported from the "Unsupported
Release of the Certificate Library" in C++ from Sun Microsystems'
Internet Commerce Group (see copyright notice later).
Copyright ©1997, 1998, 1999
Systemics Ltd on behalf of the
Cryptix Development Team.
All rights reserved.
$Revision: 1.3 $
| Modifier and Type | Class and Description |
|---|---|
(package private) class |
DER.Component |
DECODING, ENCODING, UNINITIALIZED| Constructor and Description |
|---|
DER() |
| Modifier and Type | Method and Description |
|---|---|
void |
decode(ASNAny obj,
java.io.InputStream in)
Decodes an ANY, represented as byte[] -- EKR
|
void |
decode(ASNBitString obj,
java.io.InputStream in)
Decodes a BIT STRING --internally represented as a byte[].
|
void |
decode(ASNBoolean obj,
java.io.InputStream in)
Decodes a BOOLEAN --internally represented as a Boolean.
|
void |
decode(ASNInteger obj,
java.io.InputStream in)
Decodes an INTEGER -- internally represented as a BigInteger.
|
void |
decode(ASNNull obj,
java.io.InputStream in)
Decodes a NULL --internally represented as a null.
|
void |
decode(ASNObjectIdentifier obj,
java.io.InputStream in)
Decodes an OID --internally represented as a dot-separated String.
|
void |
decode(ASNOctetString obj,
java.io.InputStream in)
Decodes an OCTET STRING --internally represented as a byte[].
|
void |
decode(ASNPrintableString obj,
java.io.InputStream in)
Decodes a PrintableString --internally represented as a String.
|
void |
decode(ASNSequence obj,
java.io.InputStream in)
Decodes a SEQUENCE --internally represented as an array.
|
void |
decode(ASNSequenceOf obj,
java.io.InputStream in)
Decodes a SEQUENCE OF --internally represented as an array.
|
void |
decode(ASNSet obj,
java.io.InputStream in)
Decodes a SET --internally represented as an array.
|
void |
decode(ASNSetOf obj,
java.io.InputStream in)
Decodes a SET OF --internally represented as an array.
|
void |
decode(ASNTaggedType obj,
java.io.InputStream in)
Decodes a Tagged Type -- rewritten by EKR
|
void |
decode(ASNTime obj,
java.io.InputStream in)
Decodes a UTCTime --internally represented as a Date.
|
void |
decode(java.io.InputStream in,
int level) |
void |
decodeExplicitTaggedType(ASNTaggedType obj,
java.io.InputStream in)
Decodes an EXPLICIT Tagged Type.
|
boolean |
decodeImplicitTaggedType(ASNTaggedType obj,
java.io.InputStream in)
Decodes an IMPLICIT Tagged Type.
|
void |
encode(ASNBoolean obj,
java.io.OutputStream out)
Encodes a BOOLEAN.
|
void |
encode(ASNNull obj,
java.io.OutputStream out)
Encodes a NULL.
|
void |
encode(ASNObjectIdentifier obj,
java.io.OutputStream out)
Encodes an OID.
|
void |
encode(ASNOctetString obj,
java.io.OutputStream out)
Encodes an OCTET STRING.
|
void |
encode(ASNSequence obj,
java.io.OutputStream out)
Encodes a SEQUENCE.
|
void |
encode(ASNTaggedType obj,
java.io.OutputStream out)
Encodes an ASN.1 Tagged type.
|
void |
encode(ASNTime obj,
java.io.OutputStream out)
Encodes a UTCTime.
|
decode, decode, encode, encode, encode, encode, encode, encode, encode, encode, encode, getInstance, getState, init, init, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visitInternalpublic void encode(ASNBoolean obj, java.io.OutputStream out) throws java.io.IOException
encode in interface CoderOperationsencode in class BaseCoderjava.io.IOExceptionpublic void encode(ASNOctetString obj, java.io.OutputStream out) throws java.io.IOException
encode in interface CoderOperationsencode in class BaseCoderjava.io.IOExceptionpublic void encode(ASNNull obj, java.io.OutputStream out) throws java.io.IOException
encode in interface CoderOperationsencode in class BaseCoderjava.io.IOExceptionpublic void encode(ASNObjectIdentifier obj, java.io.OutputStream out) throws java.io.IOException
encode in interface CoderOperationsencode in class BaseCoderjava.io.IOExceptionpublic void encode(ASNSequence obj, java.io.OutputStream out) throws java.io.IOException
encode in interface CoderOperationsencode in class BaseCoderjava.io.IOExceptionpublic void encode(ASNTaggedType obj, java.io.OutputStream out) throws java.io.IOException
encode in interface CoderOperationsencode in class BaseCoderjava.io.IOExceptionpublic void encode(ASNTime obj, java.io.OutputStream out) throws java.io.IOException
encode in interface CoderOperationsencode in class BaseCoderjava.io.IOExceptionpublic void decode(ASNBoolean obj, java.io.InputStream in) throws java.io.IOException
decode in interface CoderOperationsdecode in class BaseCoderjava.io.IOExceptionpublic void decode(ASNInteger obj, java.io.InputStream in) throws java.io.IOException
decode in interface CoderOperationsdecode in class BaseCoderjava.io.IOExceptionpublic void decode(ASNBitString obj, java.io.InputStream in) throws java.io.IOException
decode in interface CoderOperationsdecode in class BaseCoderjava.io.IOExceptionpublic void decode(ASNOctetString obj, java.io.InputStream in) throws java.io.IOException
decode in interface CoderOperationsdecode in class BaseCoderjava.io.IOExceptionpublic void decode(ASNNull obj, java.io.InputStream in) throws java.io.IOException
decode in interface CoderOperationsdecode in class BaseCoderjava.io.IOExceptionpublic void decode(ASNObjectIdentifier obj, java.io.InputStream in) throws java.io.IOException
decode in interface CoderOperationsdecode in class BaseCoderjava.io.IOExceptionpublic void decode(ASNSequence obj, java.io.InputStream in) throws java.io.IOException
decode in interface CoderOperationsdecode in class BaseCoderjava.io.IOExceptionpublic void decode(ASNSequenceOf obj, java.io.InputStream in) throws java.io.IOException
decode in interface CoderOperationsdecode in class BaseCoderjava.io.IOExceptionpublic void decode(ASNSet obj, java.io.InputStream in) throws java.io.IOException
decode in interface CoderOperationsdecode in class BaseCoderjava.io.IOExceptionpublic void decode(ASNSetOf obj, java.io.InputStream in) throws java.io.IOException
decode in interface CoderOperationsdecode in class BaseCoderjava.io.IOExceptionpublic void decode(ASNTaggedType obj, java.io.InputStream in) throws java.io.IOException
decode in interface CoderOperationsdecode in class BaseCoderjava.io.IOExceptionpublic void decode(ASNAny obj, java.io.InputStream in) throws java.io.IOException
decode in interface CoderOperationsdecode in class BaseCoderjava.io.IOExceptionpublic void decode(ASNPrintableString obj, java.io.InputStream in) throws java.io.IOException
decode in interface CoderOperationsdecode in class BaseCoderjava.io.IOExceptionpublic void decode(ASNTime obj, java.io.InputStream in) throws java.io.IOException
decode in interface CoderOperationsdecode in class BaseCoderjava.io.IOExceptionpublic void decodeExplicitTaggedType(ASNTaggedType obj, java.io.InputStream in) throws java.io.IOException
java.io.IOExceptionpublic boolean decodeImplicitTaggedType(ASNTaggedType obj, java.io.InputStream in) throws java.io.IOException
java.io.IOExceptionpublic void decode(java.io.InputStream in,
int level)
throws java.io.IOException
java.io.IOException