public class Asn1StreamParser extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Asn1StreamParser.MyInt |
| Modifier and Type | Field and Description |
|---|---|
static int |
TAG_CONSTRUCTED_SEQUENCE |
static int |
TAG_CONSTRUCTED_SET |
| Constructor and Description |
|---|
Asn1StreamParser() |
| Modifier and Type | Method and Description |
|---|---|
static void |
assertTag(int expectedTag,
int tag,
String name) |
static int |
markAndReadTag(InputStream instream) |
static byte[] |
readBlock(BufferedInputStream instream,
String name) |
static byte[] |
readBlock(int expectedTag,
BufferedInputStream instream,
String name) |
static int |
readLength(Asn1StreamParser.MyInt lenBytesSize,
InputStream instream) |
static Date |
readTime(org.bouncycastle.asn1.ASN1Encodable obj) |
static Date |
readTime(Asn1StreamParser.MyInt bytesLen,
BufferedInputStream instream,
String name) |
static byte[] |
readValue(int expectedTag,
BufferedInputStream instream,
String name) |
static void |
skip(InputStream instream,
long count) |
public static final int TAG_CONSTRUCTED_SEQUENCE
public static final int TAG_CONSTRUCTED_SET
public static byte[] readBlock(int expectedTag,
BufferedInputStream instream,
String name)
throws IOException
IOExceptionpublic static byte[] readBlock(BufferedInputStream instream, String name) throws IOException
IOExceptionpublic static byte[] readValue(int expectedTag,
BufferedInputStream instream,
String name)
throws IOException
IOExceptionpublic static int markAndReadTag(InputStream instream) throws IOException
IOExceptionpublic static int readLength(Asn1StreamParser.MyInt lenBytesSize, InputStream instream) throws IOException
IOExceptionpublic static void assertTag(int expectedTag,
int tag,
String name)
public static Date readTime(org.bouncycastle.asn1.ASN1Encodable obj)
public static Date readTime(Asn1StreamParser.MyInt bytesLen, BufferedInputStream instream, String name) throws IOException
IOExceptionpublic static void skip(InputStream instream, long count) throws IOException
IOExceptionCopyright © 2022. All rights reserved.