class DerParser
extends java.lang.Object
Asn1Object.getParser()
.
There are many DER decoders in JRE but using them will tie this
program to a specific JCE/JVM.Modifier and Type | Field and Description |
---|---|
static int |
ANY |
static int |
APPLICATION |
static int |
BIT_STRING |
static int |
BMP_STRING |
static int |
BOOLEAN |
static int |
CONSTRUCTED |
static int |
CONTEXT |
static int |
ENUMERATED |
static int |
GENERAL_STRING |
static int |
GENERALIZED_TIME |
static int |
GRAPHIC_STRING |
static int |
IA5_STRING |
protected java.io.InputStream |
in |
static int |
INTEGER |
static int |
ISO646_STRING |
static int |
NULL |
static int |
NUMERIC_STRING |
static int |
OBJECT_IDENTIFIER |
static int |
OCTET_STRING |
static int |
PRINTABLE_STRING |
static int |
PRIVATE |
static int |
REAL |
static int |
RELATIVE_OID |
static int |
SEQUENCE |
static int |
SET |
static int |
T61_STRING |
static int |
UNIVERSAL |
static int |
UNIVERSAL_STRING |
static int |
UTC_TIME |
static int |
UTF8_STRING |
static int |
VIDEOTEX_STRING |
Constructor and Description |
---|
DerParser(byte[] bytes)
Create a new DER decoder from a byte array.
|
DerParser(java.io.InputStream in)
Create a new DER decoder from an input stream.
|
Modifier and Type | Method and Description |
---|---|
private int |
getLength()
Decode the length of the field.
|
Asn1Object |
read()
Read next object.
|
public static final int UNIVERSAL
public static final int APPLICATION
public static final int CONTEXT
public static final int PRIVATE
public static final int CONSTRUCTED
public static final int ANY
public static final int BOOLEAN
public static final int INTEGER
public static final int BIT_STRING
public static final int OCTET_STRING
public static final int NULL
public static final int OBJECT_IDENTIFIER
public static final int REAL
public static final int ENUMERATED
public static final int RELATIVE_OID
public static final int SEQUENCE
public static final int SET
public static final int NUMERIC_STRING
public static final int PRINTABLE_STRING
public static final int T61_STRING
public static final int VIDEOTEX_STRING
public static final int IA5_STRING
public static final int GRAPHIC_STRING
public static final int ISO646_STRING
public static final int GENERAL_STRING
public static final int UTF8_STRING
public static final int UNIVERSAL_STRING
public static final int BMP_STRING
public static final int UTC_TIME
public static final int GENERALIZED_TIME
protected java.io.InputStream in
public DerParser(java.io.InputStream in) throws java.io.IOException
in
- The DER encoded streamjava.io.IOException
public DerParser(byte[] bytes) throws java.io.IOException
The
- encoded bytesjava.io.IOException
public Asn1Object read() throws java.io.IOException
Asn1Object.getParser
.java.io.IOException
private int getLength() throws java.io.IOException
java.io.IOException