gnu.crypto.der
public final class DERReader extends Object implements DER
Constructor Summary | |
---|---|
DERReader(byte[] in)
Create a new DER reader from a byte array.
| |
DERReader(byte[] in, int off, int len) | |
DERReader(InputStream in)
Create a new DER readed from an input stream.
|
Method Summary | |
---|---|
static DERValue | read(byte[] encoded)
Convenience method for reading a single primitive value from the
given byte array.
|
DERValue | read()
Decode a single value from the input stream, returning it in a new
DERValue. |
void | skip(int bytes) |
Parameters: in The encoded bytes.
Parameters: in The encoded bytes.
Parameters: encoded The encoded bytes.
Throws: IOException If the bytes do not represent an encoded object.
Returns: The parsed DER structure.
Throws: IOException If an error occurs reading from the input stream. DEREncodingException If the input does not represent a valid DER stream.