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, setVerifypublic DerInputStream(byte[] encoded)
throws IOException
IOExceptionpublic DerInputStream(byte[] encoded,
int offset,
int encodingLen)
throws IOException
IOExceptionpublic DerInputStream(InputStream in) throws IOException
IOExceptionpublic int next()
throws IOException
BerInputStreamnext in class BerInputStreamIOException - if error occuredpublic void readBitString()
throws IOException
BerInputStreamreadBitString in class BerInputStreamIOExceptionpublic void readBoolean()
throws IOException
BerInputStreamreadBoolean in class BerInputStreamIOExceptionpublic void readOctetString()
throws IOException
BerInputStreamreadOctetString in class BerInputStreamIOExceptionpublic void readSequence(ASN1Sequence sequence) throws IOException
BerInputStreamreadSequence in class BerInputStreamIOExceptionpublic void readSetOf(ASN1SetOf setOf) throws IOException
BerInputStreamreadSetOf in class BerInputStreamIOExceptionpublic void readString(ASN1StringType type) throws IOException
BerInputStreamreadString in class BerInputStreamIOException - if an I/O error occurs or the end of the stream is reachedpublic void readUTCTime()
throws IOException
BerInputStreamreadUTCTime in class BerInputStreamIOException - if an I/O error occurs or the end of the stream is reachedpublic void readGeneralizedTime()
throws IOException
BerInputStreamreadGeneralizedTime in class BerInputStreamIOException - if error occured