Modifier and Type | Method and Description |
---|---|
static int |
DerInputStreamHelper.expectTag(byte expectedTag,
java.io.InputStream stream)
Reads next byte from the InputStream and verifies if the tag matches the expected tag.
|
static byte[] |
DerInputStreamHelper.readBitString(java.io.InputStream is)
Reads the next DER-encoded BitString value from the specified InputStream, and returns it as a byte[].
|
static boolean |
DerInputStreamHelper.readBoolean(java.io.InputStream is)
Reads the next DER-encoded Boolean value from the specified InputStream, and returns it as an boolean.
|
static int |
DerInputStreamHelper.readDERLength(java.io.InputStream in)
Reads a DER-encoded value length from an input stream.
|
static int |
DerInputStreamHelper.readInteger(java.io.InputStream is)
Reads the next DER-encoded Integer value from the specified InputStream, and returns it as an integer.
|
static void |
DerInputStreamHelper.readNull(java.io.InputStream is)
Reads the next DER-encoded NULL value from the specified InputStream, as a null value.
|
static java.lang.String |
DerInputStreamHelper.readOIDString(java.io.InputStream is)
Reads the next DER-encoded ObjectID value from the specified InputStream, and returns it as a String
representation in hexadecimal format.
|
static java.lang.String |
DerInputStreamHelper.readString(java.io.InputStream is)
Reads the next DER-encoded value from the specified InputStream, and returns it as a String.
|
static java.lang.String |
DerInputStreamHelper.readUTF8String(java.io.InputStream is)
Reads the next DER-encoded UTF8String value from the specified InputStream, and returns it as a String.
|
Constructor and Description |
---|
DerValueInputStream(java.io.InputStream in)
Constructs a fixed length input stream of a DER encoded stream.
|