public final class DerInputStream extends BerInputStream
buffer, choiceIndex, content, contentOffset, INDEFINIT_LENGTH, isIndefinedLength, isVerify, length, offset, oidElement, tag, tagOffset, times
Constructor and Description |
---|
DerInputStream(byte[] encoded) |
DerInputStream(byte[] encoded,
int offset,
int encodingLen) |
DerInputStream(InputStream in) |
Modifier and Type | Method and Description |
---|---|
int |
next()
Decodes next encoded type.
|
void |
readBitString()
Decodes ASN.1 bitstring type
|
void |
readBoolean()
Decodes ASN.1 boolean type
|
void |
readGeneralizedTime()
Decodes ASN.1 GeneralizedTime type
|
void |
readOctetString()
Decodes ASN.1 Octetstring type
|
void |
readSequence(ASN1Sequence sequence)
Decodes ASN.1 Sequence type
|
void |
readSetOf(ASN1SetOf setOf)
Decodes ASN.1 SetOf type
|
void |
readString(ASN1StringType type)
Decodes ASN.1 String type
|
void |
readUTCTime()
Decodes ASN.1 UTCTime type
|
compactBuffer, get, getBuffer, getEncoded, getEndOffset, getLength, getLength, getOffset, getTagOffset, put, read, readContent, readEnumerated, readInteger, readOID, readSequenceOf, readSet, reset, setVerify
public DerInputStream(byte[] encoded) throws IOException
IOException
public DerInputStream(byte[] encoded, int offset, int encodingLen) throws IOException
IOException
public DerInputStream(InputStream in) throws IOException
IOException
public int next() throws IOException
BerInputStream
next
in class BerInputStream
IOException
- if error occuredpublic void readBitString() throws IOException
BerInputStream
readBitString
in class BerInputStream
IOException
public void readBoolean() throws IOException
BerInputStream
readBoolean
in class BerInputStream
IOException
public void readOctetString() throws IOException
BerInputStream
readOctetString
in class BerInputStream
IOException
public void readSequence(ASN1Sequence sequence) throws IOException
BerInputStream
readSequence
in class BerInputStream
IOException
public void readSetOf(ASN1SetOf setOf) throws IOException
BerInputStream
readSetOf
in class BerInputStream
IOException
public void readString(ASN1StringType type) throws IOException
BerInputStream
readString
in class BerInputStream
IOException
- if an I/O error occurs or the end of the stream is reachedpublic void readUTCTime() throws IOException
BerInputStream
readUTCTime
in class BerInputStream
IOException
- if an I/O error occurs or the end of the stream is reachedpublic void readGeneralizedTime() throws IOException
BerInputStream
readGeneralizedTime
in class BerInputStream
IOException
- if error occured