org.bouncycastle.asn1

Class DERInputStream

Implemented Interfaces:
DERTags
Known Direct Subclasses:
BERInputStream

public class DERInputStream
extends FilterInputStream
implements DERTags

Don't use this class. It will eventually disappear, use ASN1InputStream.
This class is scheduled for removal.

Fields inherited from interface org.bouncycastle.asn1.DERTags

APPLICATION, BIT_STRING, BMP_STRING, BOOLEAN, CONSTRUCTED, ENUMERATED, EXTERNAL, GENERALIZED_TIME, GENERAL_STRING, GRAPHIC_STRING, IA5_STRING, INTEGER, NULL, NUMERIC_STRING, OBJECT_IDENTIFIER, OCTET_STRING, PRINTABLE_STRING, SEQUENCE, SEQUENCE_OF, SET, SET_OF, T61_STRING, TAGGED, UNIVERSAL_STRING, UTC_TIME, UTF8_STRING, VIDEOTEX_STRING, VISIBLE_STRING

Constructor Summary

DERInputStream(InputStream is)
Deprecated. use ASN1InputStream

Method Summary

protected DERObject
buildObject(int tag, byte[] bytes)
build an object given its tag and a byte stream to construct it from.
protected void
readFully(byte[] bytes)
protected int
readLength()
DERObject
readObject()

Constructor Details

DERInputStream

public DERInputStream(InputStream is)

Deprecated. use ASN1InputStream

Method Details

buildObject

protected DERObject buildObject(int tag,
                                byte[] bytes)
            throws IOException
build an object given its tag and a byte stream to construct it from.


readFully

protected void readFully(byte[] bytes)
            throws IOException


readLength

protected int readLength()
            throws IOException


readObject

public DERObject readObject()
            throws IOException