com.mindbright.asn1
Interface ASN1Decoder

All Known Implementing Classes:
ASN1DER

public interface ASN1Decoder


Method Summary
 int decode(java.io.InputStream in, ASN1Object object)
           
 boolean decodeBoolean(java.io.InputStream in, int len)
           
 java.math.BigInteger decodeInteger(java.io.InputStream in, int len)
           
 void decodeNull(java.io.InputStream in, int len)
           
 int[] decodeOID(java.io.InputStream in, int len)
           
 byte[] decodeString(java.io.InputStream in, int len, ASN1String obj)
           
 void decodeStructure(java.io.InputStream in, int len, ASN1Structure struct)
           
 void decodeValue(java.io.InputStream in, int tag, int len, ASN1Object object)
           
 

Method Detail

decode

int decode(java.io.InputStream in,
           ASN1Object object)
           throws java.io.IOException
Throws:
java.io.IOException

decodeValue

void decodeValue(java.io.InputStream in,
                 int tag,
                 int len,
                 ASN1Object object)
                 throws java.io.IOException
Throws:
java.io.IOException

decodeBoolean

boolean decodeBoolean(java.io.InputStream in,
                      int len)
                      throws java.io.IOException
Throws:
java.io.IOException

decodeInteger

java.math.BigInteger decodeInteger(java.io.InputStream in,
                                   int len)
                                   throws java.io.IOException
Throws:
java.io.IOException

decodeNull

void decodeNull(java.io.InputStream in,
                int len)
                throws java.io.IOException
Throws:
java.io.IOException

decodeOID

int[] decodeOID(java.io.InputStream in,
                int len)
                throws java.io.IOException
Throws:
java.io.IOException

decodeString

byte[] decodeString(java.io.InputStream in,
                    int len,
                    ASN1String obj)
                    throws java.io.IOException
Throws:
java.io.IOException

decodeStructure

void decodeStructure(java.io.InputStream in,
                     int len,
                     ASN1Structure struct)
                     throws java.io.IOException
Throws:
java.io.IOException